NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21? | CREATE TABLE table_name_29 (
lap_by_lap VARCHAR,
year VARCHAR,
ratings VARCHAR
) | SELECT lap_by_lap FROM table_name_29 WHERE year < 1994 AND ratings = "8.0/21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
14941,
834,
969,
834,
8478,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
9712,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
14941,
834,
969,
834,
8478,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
215,
3,
2,
7520,
3430,
9712,
3274,
96,
27376,
87,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the assembled date of the parliament with an unknown 2nd member who was elected in 1482/83? | CREATE TABLE table_61935 (
"Summoned" text,
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
) | SELECT "Assembled" FROM table_61935 WHERE "2nd member" = 'unknown' AND "Elected" = '1482/83' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2294,
2469,
41,
96,
134,
440,
2157,
15,
26,
121,
1499,
6,
96,
21543,
15,
26,
121,
1499,
6,
96,
188,
7,
7,
8312,
15,
26,
121,
1499,
6,
96,
308,
159,
6065,
15,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
7,
7,
8312,
15,
26,
121,
21680,
953,
834,
948,
2294,
2469,
549,
17444,
427,
96,
357,
727,
1144,
121,
3274,
3,
31,
202,
5661,
31,
3430,
96,
21543,
15,
26,
121,
3274,
3,
31,
24748,
15896,
4591,
31,
1,
-... |
What's the center of the Artsakh province? | CREATE TABLE table_23887174_1 (
center VARCHAR,
province__ashkharh_ VARCHAR
) | SELECT center FROM table_23887174_1 WHERE province__ashkharh_ = "Artsakh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4060,
4450,
4581,
834,
536,
41,
1530,
584,
4280,
28027,
6,
7985,
834,
834,
3198,
157,
3272,
107,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1530,
21680,
953,
834,
2773,
4060,
4450,
4581,
834,
536,
549,
17444,
427,
7985,
834,
834,
3198,
157,
3272,
107,
834,
3274,
96,
7754,
7,
18965,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which team has the most titles at the great lakes invitational ? | CREATE TABLE table_203_502 (
id number,
"team" text,
"titles" number,
"runner-up" number,
"third place" number,
"fourth place" number,
"years participated" number
) | SELECT "team" FROM table_203_502 ORDER BY "titles" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
357,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
21869,
7,
121,
381,
6,
96,
10806,
18,
413,
121,
381,
6,
96,
14965,
286,
121,
381,
6,
96,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
23330,
834,
1752,
357,
4674,
11300,
272,
476,
96,
21869,
7,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where was the Ivy League conference tournament? | CREATE TABLE table_21091982_3 (
tournament_venue__city_ VARCHAR,
conference VARCHAR
) | SELECT tournament_venue__city_ FROM table_21091982_3 WHERE conference = "Ivy League" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
17304,
2294,
4613,
834,
519,
41,
5892,
834,
15098,
834,
834,
6726,
834,
584,
4280,
28027,
6,
2542,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
834,
15098,
834,
834,
6726,
834,
21680,
953,
834,
357,
17304,
2294,
4613,
834,
519,
549,
17444,
427,
2542,
3274,
96,
196,
208,
63,
3815,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Year, when Award is "Outer Critics Circle Award", and when Nominee is "Nathan Lane"? | CREATE TABLE table_name_84 (year INTEGER, award VARCHAR, nominee VARCHAR) | SELECT SUM(year) FROM table_name_84 WHERE award = "outer critics circle award" AND nominee = "nathan lane" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1201,
3,
21342,
17966,
6,
2760,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
2929,
6,
116,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
2760,
3274,
96,
670,
49,
6800,
7,
8196,
2760,
121,
3430,
21077,
3274,
96,
29,
9,
6736,
3,
8102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average of the swimsuit smaller than 9.545 , of Iowa, with an evening gown larger than 9.625? | CREATE TABLE table_54692 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT AVG("Average") FROM table_54692 WHERE "Swimsuit" < '9.545' AND "State" = 'iowa' AND "Evening Gown" > '9.625' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3951,
357,
41,
96,
134,
4748,
121,
1499,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
53,
350,
9197,
121,
490,
6,
96,
188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
624,
545,
8512,
21680,
953,
834,
5062,
3951,
357,
549,
17444,
427,
96,
134,
210,
603,
7628,
121,
3,
2,
3,
31,
22321,
2128,
31,
3430,
96,
134,
4748,
121,
3274,
3,
31,
23,
2381,
9,
31,
... |
how many patients whose marital status is widowed and drug route is neb? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "WIDOWED" AND prescriptions.route = "NEB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what is the home city for the stadion src mladost? | CREATE TABLE table_name_29 (home_city VARCHAR, stadium VARCHAR) | SELECT home_city FROM table_name_29 WHERE stadium = "stadion src mladost" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
5515,
834,
6726,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
234,
690,
21,
8,
3342,
26,
23,
106,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
6726,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
14939,
3274,
96,
2427,
26,
23,
106,
3,
7,
52,
75,
3,
51,
40,
14073,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many characters where actor/actress is larry lamb? | CREATE TABLE table_25831483_1 (character VARCHAR, actor_actress VARCHAR) | SELECT COUNT(character) FROM table_25831483_1 WHERE actor_actress = "Larry Lamb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4591,
2534,
4591,
834,
536,
41,
31886,
584,
4280,
28027,
6,
7556,
834,
2708,
9377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2850,
213,
7556,
87,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
31886,
61,
21680,
953,
834,
1828,
4591,
2534,
4591,
834,
536,
549,
17444,
427,
7556,
834,
2708,
9377,
3274,
96,
434,
291,
651,
19211,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
With which kind of payment method were the least number of payments processed? | CREATE TABLE customer_policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
)
CREATE TABLE settlements (
settlement_id number,
claim_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settl... | SELECT payment_method_code FROM payments GROUP BY payment_method_code ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
3003,
6267,
7,
41,
1291,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
1291,
834,
6137,
834,
4978,
1499,
6,
456,
834,
5522,
97,
6,
414,
834,
5522,
97,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1942,
834,
23152,
834,
4978,
21680,
4364,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
834,
4978,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What number of patients under the age of 67 died? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.age < "67" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
3430,
14798,
5,
545,
3,
2,
96,
3708,
121,
1,... |
What was the score against New Orleans? | CREATE TABLE table_23248967_5 (
score VARCHAR,
team VARCHAR
) | SELECT score FROM table_23248967_5 WHERE team = "New Orleans" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
3708,
834,
755,
41,
2604,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
581,
368,
14433,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2773,
2266,
3914,
3708,
834,
755,
549,
17444,
427,
372,
3274,
96,
6861,
14433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest Matches, when Against is less than 7, and when Wins is greater than 1? | CREATE TABLE table_name_74 (matches INTEGER, against VARCHAR, wins VARCHAR) | SELECT MIN(matches) FROM table_name_74 WHERE against < 7 AND wins > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
19515,
15,
7,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
12296,
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,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19515,
15,
7,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
581,
3,
2,
489,
3430,
9204,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show different locations and the number of performances at each location. | CREATE TABLE performance (
LOCATION VARCHAR
) | SELECT LOCATION, COUNT(*) FROM performance GROUP BY LOCATION | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
301,
5618,
8015,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3111,
315,
3248,
11,
8,
381,
13,
7357,
44,
284,
1128,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
301,
5618,
8015,
6,
2847,
17161,
599,
1935,
61,
21680,
821,
350,
4630,
6880,
272,
476,
301,
5618,
8015,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When they played at the Bankatlantic Center, what was their record? | CREATE TABLE table_17360840_5 (
record VARCHAR,
location VARCHAR
) | SELECT record FROM table_17360840_5 WHERE location = "BankAtlantic Center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
19208,
26311,
834,
755,
41,
1368,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
79,
1944,
44,
8,
1925,
31767,
1166,
6,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
2517,
19208,
26311,
834,
755,
549,
17444,
427,
1128,
3274,
96,
21347,
188,
17,
1618,
1225,
1166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the cities which have exactly two airports. | CREATE TABLE airports (city VARCHAR) | SELECT city FROM airports GROUP BY city HAVING COUNT(*) = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3761,
7,
41,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
3119,
84,
43,
1776,
192,
3761,
7,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
3761,
7,
350,
4630,
6880,
272,
476,
690,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which order year has a Fleet Series (Quantity) of 12081-12090 (10)? | CREATE TABLE table_71696 (
"Builder" text,
"Model" text,
"Length (ft/m)" text,
"Order Year" text,
"Fuel Propulsion" text,
"Fleet Series (Quantity)" text
) | SELECT "Order Year" FROM table_71696 WHERE "Fleet Series (Quantity)" = '12081-12090 (10)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2938,
4314,
41,
96,
24752,
49,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
434,
4606,
189,
41,
89,
17,
87,
51,
61,
121,
1499,
6,
96,
7395,
588,
2929,
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,
7395,
588,
2929,
121,
21680,
953,
834,
940,
2938,
4314,
549,
17444,
427,
96,
371,
109,
15,
17,
4531,
41,
5991,
288,
485,
61,
121,
3274,
3,
31,
15518,
4959,
18,
15518,
2394,
41,
16968,
31,
1,
-100,
-100,
-100,
... |
Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″? | CREATE TABLE table_name_3 (constellation VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR) | SELECT constellation FROM table_name_3 WHERE ngc_number < 2775 AND declination___j2000__ = "°05′07″" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
8056,
6714,
257,
584,
4280,
28027,
6,
3,
1725,
75,
834,
5525,
1152,
584,
4280,
28027,
6,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30872,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
3,
1725,
75,
834,
5525,
1152,
3,
2,
2307,
3072,
3430,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
3274,
96,
1956,
3076,
17774,
4560,
7079,
121,
1,
... |
How many picks did Central State have before round 2? | CREATE TABLE table_name_29 (pick VARCHAR, school VARCHAR, round VARCHAR) | SELECT COUNT(pick) FROM table_name_29 WHERE school = "central state" AND round < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
17967,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1432,
7,
410,
2808,
1015,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17967,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
496,
3274,
96,
20071,
538,
121,
3430,
1751,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ACL papers in 2012 on parsing | CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE field (
fieldid int
)
C... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2012 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
6378,
23,
26,
16,
17,
6,
6378,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
17953,
41,
17953,
23,
26,
16,
17,
6,
17953,
4350,
3,
4331,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1040,
5,
19587,
23,
26,
21680,
843,
27111,
6,
1040,
6,
1040,
4397,
27111,
6,
5669,
549,
17444,
427,
843,
27111,
5,
4397,
27111,
4350,
3274,
3,
31,
1893,
7,
53,
31,
3430,
1040,
4397,
27111,
5... |
Which outgoing manager has tabled 16th position? | CREATE TABLE table_name_83 (outgoing_manager VARCHAR, position_in_table VARCHAR) | SELECT outgoing_manager FROM table_name_83 WHERE position_in_table = "16th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
670,
9545,
834,
24185,
584,
4280,
28027,
6,
1102,
834,
77,
834,
3869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
91,
9545,
2743,
65,
953,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
91,
9545,
834,
24185,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
1102,
834,
77,
834,
3869,
3274,
96,
2938,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount. | CREATE TABLE settlements (
settlement_id number,
claim_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number,
customer_policy_id number
)
CREATE TABLE payments (
payment_id number,
settlement_id number,
payment_method_code text,
... | SELECT amount_settled, amount_claimed FROM claims ORDER BY amount_settled LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7025,
7,
41,
7025,
834,
23,
26,
381,
6,
1988,
834,
23,
26,
381,
6,
833,
834,
15085,
834,
4725,
97,
6,
833,
834,
15085,
834,
2244,
17,
1361,
97,
6,
866,
834,
20471,
381,
6,
866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
866,
834,
2244,
17,
1361,
6,
866,
834,
20471,
21680,
3213,
4674,
11300,
272,
476,
866,
834,
2244,
17,
1361,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Density that has a Population larger than 290,458, and an Area of 91.6? | CREATE TABLE table_42486 (
"Rank" real,
"Province" text,
"Population" real,
"Area" real,
"Density" real
) | SELECT SUM("Density") FROM table_42486 WHERE "Population" > '290,458' AND "Area" = '91.6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2266,
3840,
41,
96,
22557,
121,
490,
6,
96,
3174,
2494,
565,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
188,
864,
121,
490,
6,
96,
308,
35,
7,
485,
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,
180,
6122,
599,
121,
308,
35,
7,
485,
8512,
21680,
953,
834,
591,
2266,
3840,
549,
17444,
427,
96,
27773,
7830,
121,
2490,
3,
31,
23838,
6,
2128,
927,
31,
3430,
96,
188,
864,
121,
3274,
3,
31,
1298,
15062,
31,
1... |
what is bb - blind bear where ba - running bear is tc - tile chariot? | CREATE TABLE table_2603017_2 (bb___blind_bear VARCHAR, ba___running_bear VARCHAR) | SELECT bb___blind_bear FROM table_2603017_2 WHERE ba___running_bear = "TC - Tile Chariot" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
1458,
2517,
834,
357,
41,
115,
115,
834,
834,
834,
21746,
26,
834,
346,
291,
584,
4280,
28027,
6,
4698,
834,
834,
834,
24549,
834,
346,
291,
584,
4280,
28027,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
115,
115,
834,
834,
834,
21746,
26,
834,
346,
291,
21680,
953,
834,
18365,
1458,
2517,
834,
357,
549,
17444,
427,
4698,
834,
834,
834,
24549,
834,
346,
291,
3274,
96,
3838,
3,
18,
16485,
3643,
12884,
121,
1,
-1... |
What award is featured in 1992? | CREATE TABLE table_name_18 (
award VARCHAR,
year VARCHAR
) | SELECT award FROM table_name_18 WHERE year = 1992 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
2760,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2760,
19,
4510,
16,
9047,
58,
1,
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,
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... | [
3,
23143,
14196,
2760,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
215,
3274,
9047,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Number of Households that have a Per Capita Income of $21,345? | CREATE TABLE table_name_59 (
number_of_households INTEGER,
per_capita_income VARCHAR
) | SELECT AVG(number_of_households) FROM table_name_59 WHERE per_capita_income = "$21,345" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
381,
834,
858,
834,
1840,
6134,
7,
3,
21342,
17966,
6,
399,
834,
4010,
155,
9,
834,
15759,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
5525,
1152,
834,
858,
834,
1840,
6134,
7,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
399,
834,
4010,
155,
9,
834,
15759,
3274,
96,
3229,
2658,
6,
3710,
17395,
1,
-100,
-100,
-100,
-100,
... |
Which captain has billy bonds as the manager? | CREATE TABLE table_name_34 (captain VARCHAR, manager VARCHAR) | SELECT captain FROM table_name_34 WHERE manager = "billy bonds" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
4010,
17,
9,
77,
584,
4280,
28027,
6,
2743,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14268,
65,
2876,
63,
13237,
38,
8,
2743,
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,
14268,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
2743,
3274,
96,
3727,
120,
13237,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of bronzes with totals under 4 and ranks of 10? | CREATE TABLE table_9504 (
"Rank" text,
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" real,
"Total" real
) | SELECT COUNT("Bronze") FROM table_9504 WHERE "Total" < '4' AND "Rank" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3301,
6348,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
3301,
6348,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
591,
31,
3430,
96,
22557,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the location/attendance for the w 95-93 score? | CREATE TABLE table_64758 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_64758 WHERE "Score" = 'w 95-93' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3072,
927,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
22497,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
4389,
3072,
927,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
210,
11923,
18,
4271,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the home team with tie number 9? | CREATE TABLE table_50842 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Home team" FROM table_50842 WHERE "Tie no" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
4608,
357,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
19040,
372,
121,
21680,
953,
834,
1752,
4608,
357,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country has a To par of +1 and the score of 71-76-70=217? | CREATE TABLE table_name_25 (country VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT country FROM table_name_25 WHERE to_par = "+1" AND score = 71 - 76 - 70 = 217 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
17529,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
9,
304,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
12,
834,
1893,
3274,
96,
18446,
121,
3430,
2604,
3274,
3,
4450,
3,
18,
3,
3959,
3,
18,
2861,
3274,
204,
2517,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the average age of patients whose admission type is urgent that stayed in hospital for 5 days? | 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 AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.days_stay = "5" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
17395,
1,
-100,
-100,
-100,
... |
Find the name and id of the top 3 expensive rooms. | CREATE TABLE Rooms (
RoomId VARCHAR,
roomName VARCHAR,
basePrice VARCHAR
) | SELECT RoomId, roomName FROM Rooms ORDER BY basePrice DESC LIMIT 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
584,
4280,
28027,
6,
562,
23954,
584,
4280,
28027,
6,
1247,
345,
4920,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4181,
196,
26,
6,
562,
23954,
21680,
4181,
7,
4674,
11300,
272,
476,
1247,
345,
4920,
309,
25067,
8729,
12604,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the number of 2012 passengers in millions that have traveled a distance of 1075km? | CREATE TABLE table_name_56 (
distance VARCHAR
) | SELECT COUNT(2012 AS _passengers__in_millions_) FROM table_name_56 WHERE distance = "1075km" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
2357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
1673,
9234,
16,
4040,
24,
43,
15458,
3,
9,
2357,
13,
335,
3072,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
12172,
6157,
3,
834,
3968,
4606,
277,
834,
834,
77,
834,
17030,
7,
834,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
2357,
3274,
96,
1714,
3072,
5848,
121,
1,
-100,
-100,
-100,
-100,
-100... |
how many times had patient 015-15167 until 2102 visited the icu? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
... | SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-15167') AND STRFTIME('%y', patient.unitadmittime) <= '2102' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8209,
41,
8209,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
8209,
4350,
1499,
6,
8209,
715,
97,
6,
3,
447,
26,
1298,
4978,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
10061,
15129,
21545,
23,
26,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
... |
Name the venue for geelong away team | CREATE TABLE table_name_54 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_54 WHERE away_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5669,
21,
873,
15,
2961,
550,
372,
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,
5669,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
550,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What did the Home team score when the Away team scored 8.14 (62)? | CREATE TABLE table_54925 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Home team score" FROM table_54925 WHERE "Away team score" = '8.14 (62)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
28456,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
5062,
28456,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
20677,
591,
11372,
7318,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all calendar dates and day Numbers Plot them as line chart, list by the X-axis in asc please. | CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)... | SELECT Calendar_Date, Day_Number FROM Ref_Calendar ORDER BY Calendar_Date | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2158,
965,
41,
2158,
109,
834,
22737,
3,
28027,
599,
1808,
201,
2158,
109,
834,
23954,
584,
4280,
28027,
599,
25502,
201,
2158,
109,
834,
2962,
11830,
584,
4280,
28027,
599,
25502,
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,
18783,
834,
308,
342,
6,
1430,
834,
567,
5937,
49,
21680,
419,
89,
834,
14318,
35,
3439,
4674,
11300,
272,
476,
18783,
834,
308,
342,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the game where the high points is by manu gin bili (26)? | CREATE TABLE table_27715173_8 (
game VARCHAR,
high_points VARCHAR
) | SELECT game FROM table_27715173_8 WHERE high_points = "Manu Ginóbili (26)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4013,
26578,
4552,
834,
927,
41,
467,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
467,
213,
8,
306,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
21680,
953,
834,
357,
4013,
26578,
4552,
834,
927,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
7296,
76,
15079,
4922,
3727,
23,
4743,
10938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the writers for production code 2t6268? | CREATE TABLE table_17467447_1 (written_by VARCHAR, production_code VARCHAR) | SELECT written_by FROM table_17467447_1 WHERE production_code = "2T6268" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4448,
4581,
4177,
834,
536,
41,
14973,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
5943,
21,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1545,
834,
969,
21680,
953,
834,
2517,
4448,
4581,
4177,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
96,
357,
382,
4056,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those payments processed with Visa, show me the number of payments of each year using a bar chart, show in descending by the how many date payment made please. | CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
... | SELECT Date_Payment_Made, COUNT(Date_Payment_Made) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY COUNT(Date_Payment_Made) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7327,
834,
8931,
447,
725,
41,
7587,
834,
4309,
3,
21342,
17966,
6,
7327,
834,
4309,
3,
21342,
17966,
6,
7587,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
3273,
834,
308,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
19702,
297,
834,
329,
9,
221,
6,
2847,
17161,
599,
308,
342,
834,
19702,
297,
834,
329,
9,
221,
61,
21680,
12248,
7,
549,
17444,
427,
12248,
834,
23351,
107,
32,
26,
834,
22737,
3274,
3,
31,
553,
159,
... |
What is the game number on April 7? | CREATE TABLE table_name_43 (game VARCHAR, date VARCHAR) | SELECT COUNT(game) FROM table_name_43 WHERE date = "april 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
7261,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
467,
381,
30,
1186,
489,
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,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
in what year did the eighth place team have no wins ? | CREATE TABLE table_204_110 (
id number,
"year" number,
"champion" text,
"city" text,
"llws" text,
"record" text
) | SELECT "year" FROM table_204_110 WHERE "llws" = 'eighth place' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19277,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
17788,
12364,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
195,
210,
7,
121,
1499,
6,
96,
60,
7621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
121,
21680,
953,
834,
26363,
834,
19277,
549,
17444,
427,
96,
195,
210,
7,
121,
3274,
3,
31,
15,
2632,
107,
286,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When did indiana play? | CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_8 WHERE opponent = "indiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
16,
8603,
9,
577,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
15264,
3274,
96,
77,
8603,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the point with points for of 255 | CREATE TABLE table_name_67 (
points VARCHAR,
points_for VARCHAR
) | SELECT points FROM table_name_67 WHERE points_for = "255" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
979,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
500,
28,
979,
21,
13,
3,
25502,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
979,
834,
1161,
3274,
96,
25502,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the exit date of the player who transferred to Cardiff City? | CREATE TABLE table_35477 (
"Exit date" text,
"Pos." text,
"Player" text,
"To club" text,
"Transfer fee" text
) | SELECT "Exit date" FROM table_35477 WHERE "To club" = 'cardiff city' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
591,
4013,
41,
96,
5420,
155,
833,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
3696,
1886,
121,
1499,
6,
96,
18474,
1010,
2572,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5420,
155,
833,
121,
21680,
953,
834,
2469,
591,
4013,
549,
17444,
427,
96,
3696,
1886,
121,
3274,
3,
31,
6043,
5982,
690,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Losses has an Against of 1101, and a Byes smaller than 0? | CREATE TABLE table_name_52 (
losses VARCHAR,
against VARCHAR,
byes VARCHAR
) | SELECT COUNT(losses) FROM table_name_52 WHERE against = 1101 AND byes < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
8467,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3144,
2260,
65,
46,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
581,
3274,
850,
4542,
3430,
57,
15,
7,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the population of Krager ? | CREATE TABLE table_name_17 (
population INTEGER,
city VARCHAR
) | SELECT MIN(population) FROM table_name_17 WHERE city = "kragerø" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
2074,
3,
21342,
17966,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2074,
13,
7356,
1304,
3,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9791,
7830,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
690,
3274,
96,
9669,
1304,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the fewest wins for Thomas in events he had entered exactly 9 times? | CREATE TABLE table_name_13 (
wins INTEGER,
events VARCHAR
) | SELECT MIN(wins) FROM table_name_13 WHERE events = 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
9204,
3,
21342,
17966,
6,
984,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
360,
222,
9204,
21,
3576,
16,
984,
3,
88,
141,
513... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
984,
3274,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
in 2105 patient 006-202432 underwent any laboratory tests? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
... | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-202432')) AND STRFTIME('%y', lab.labresulttime) = '2105' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
On what Date is Delta 0:40? | CREATE TABLE table_name_7 (date VARCHAR, delta VARCHAR) | SELECT date FROM table_name_7 WHERE delta = "0:40" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
5522,
584,
4280,
28027,
6,
25110,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
19,
13057,
3,
632,
10,
2445,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
25110,
3274,
96,
632,
10,
2445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the total number of r for coppa italia larger than 1.0 | CREATE TABLE table_2782 (
"R" real,
"Player" text,
"Position" text,
"League" real,
"Champions League" real,
"Coppa Italia" real,
"Super Coppa" real,
"Total" real
) | SELECT COUNT("R") FROM table_2782 WHERE "Coppa Italia" > '1.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4613,
41,
96,
448,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
3541,
4624,
2865,
3815,
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,
2847,
17161,
599,
121,
448,
8512,
21680,
953,
834,
2555,
4613,
549,
17444,
427,
96,
3881,
1572,
9,
94,
5434,
121,
2490,
3,
31,
12734,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many points have utenis utena as the club, with loses less than 16? | CREATE TABLE table_12174 (
"Position" real,
"Club" text,
"Games played" text,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
) | SELECT SUM("Points") FROM table_12174 WHERE "Club" = 'utenis utena' AND "Loses" > '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
27693,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
1944,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22512,
7,
8512,
21680,
953,
834,
2122,
27693,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
76,
324,
159,
3,
76,
324,
9,
31,
3430,
96,
434,
32,
2260,
121,
2490,
3,
31,
2938,
31,
1,
-1... |
how many patients whose year of birth is less than 1846 and procedure icd9 code is 9960? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "1846" AND procedures.icd9_code = "9960" | [
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 winning score at Burdine's Invitational? | CREATE TABLE table_name_66 (winning_score VARCHAR, tournament VARCHAR) | SELECT winning_score FROM table_name_66 WHERE tournament = "burdine's invitational" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
8163,
834,
7,
9022,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3447,
2604,
44,
4152,
26,
630,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
5892,
3274,
96,
5808,
26,
630,
31,
7,
7146,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return me the paper in PVLDB with more than 200 citations . | CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE domain_keyword (
did int,
kid int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE cite (
cited int,... | SELECT publication.title FROM journal, publication WHERE journal.name = 'PVLDB' AND publication.citation_num > 200 AND publication.jid = journal.jid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
834,
4397,
6051,
41,
4984,
16,
17,
6,
3,
12417,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3303,
834,
4397,
6051,
41,
410,
16,
17,
6,
4984,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5707,
5,
21869,
21680,
6378,
6,
5707,
549,
17444,
427,
6378,
5,
4350,
3274,
3,
31,
345,
553,
9815,
279,
31,
3430,
5707,
5,
13903,
834,
5525,
2490,
2382,
3430,
5707,
5,
354,
23,
26,
3274,
6378,
5,
354,
23,
26,
1,... |
What game was released before 2010 with a Metacritic of 85/100? | CREATE TABLE table_name_48 (game_title VARCHAR, metacritic VARCHAR, year_released VARCHAR) | SELECT game_title FROM table_name_48 WHERE metacritic = "85/100" AND year_released < 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
7261,
834,
21869,
584,
4280,
28027,
6,
10531,
2685,
1225,
584,
4280,
28027,
6,
215,
834,
21019,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
21869,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
10531,
2685,
1225,
3274,
96,
4433,
87,
2915,
121,
3430,
215,
834,
21019,
26,
3,
2,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What kind of Week 6 has a Week 2 of see notes 2 , 3 , 4? | CREATE TABLE table_name_80 (week_6 VARCHAR, week_2 VARCHAR) | SELECT week_6 FROM table_name_80 WHERE week_2 = "see notes 2 , 3 , 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
8041,
834,
948,
584,
4280,
28027,
6,
471,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
773,
13,
6551,
431,
65,
3,
9,
6551,
204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
948,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
471,
834,
357,
3274,
96,
2338,
3358,
204,
3,
6,
220,
3,
6,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Give me a histogram for what are the statuses and average populations of each city?, rank in ascending by the x-axis. | CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE farm_... | SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY Status | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3797,
41,
4990,
834,
4309,
16,
17,
6,
2929,
16,
17,
6,
9273,
834,
566,
127,
2260,
490,
6,
7301,
834,
566,
127,
2260,
490,
6,
9273,
834,
254,
9,
8692,
490,
6,
20919,
35,
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,
19318,
6,
71,
17217,
599,
27773,
7830,
61,
21680,
690,
350,
4630,
6880,
272,
476,
19318,
4674,
11300,
272,
476,
19318,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose primary disease is guillain barre syndrome and year of death is less than or equal to 2138? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND demographic.dod_year <= "2138.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
13961,
10781,
13570,
272,
4280,
4386,
180,
476,
10604,
13103,
427,
121,
... |
what is the state for reason for change is resigned may 15, 1820? | CREATE TABLE table_225099_3 (
state__class_ VARCHAR,
reason_for_change VARCHAR
) | SELECT state__class_ FROM table_225099_3 WHERE reason_for_change = "Resigned May 15, 1820" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
11434,
3264,
834,
519,
41,
538,
834,
834,
4057,
834,
584,
4280,
28027,
6,
1053,
834,
1161,
834,
13073,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
834,
834,
4057,
834,
21680,
953,
834,
357,
11434,
3264,
834,
519,
549,
17444,
427,
1053,
834,
1161,
834,
13073,
3274,
96,
1649,
15532,
932,
10725,
507,
1755,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what year is at least on the list ? | CREATE TABLE table_204_117 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
) | SELECT "season" FROM table_204_117 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20275,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
381,
6,
96,
4563,
121,
1499,
6,
96,
26,
23,
6610,
121,
1499,
6,
96,
14309,
121,
1499,
6,
96,
4718,
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,
9476,
121,
21680,
953,
834,
26363,
834,
20275,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Team, when Qual 1 is 1:16.417? | CREATE TABLE table_name_65 (
team VARCHAR,
qual_1 VARCHAR
) | SELECT team FROM table_name_65 WHERE qual_1 = "1:16.417" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
372,
584,
4280,
28027,
6,
3,
11433,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2271,
6,
116,
2415,
138,
209,
19,
19520,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
372,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
3,
11433,
834,
536,
3274,
96,
536,
10,
536,
27869,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each party, return the name of the party and the number of delegates from that party Plot them as bar chart, and sort bar from high to low order. | CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
... | SELECT T2.Party, AVG(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY T2.Party DESC | [
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... |
What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent? | CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) | SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
5522,
834,
858,
834,
29685,
584,
4280,
28027,
6,
3107,
834,
858,
834,
221,
2274,
1462,
584,
4280,
28027,
6,
833,
834,
858,
834,
9,
102,
2700,
297,
584,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
858,
834,
29685,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
3107,
834,
858,
834,
221,
2274,
1462,
3274,
96,
4246,
3471,
6641,
121,
3430,
833,
834,
858,
834,
9,
102,
2700,
297,
3274,
96,
357,
3,
5... |
Name the national rank for medical university of south carolina | CREATE TABLE table_27956_3 (
national_rank VARCHAR,
institution VARCHAR
) | SELECT national_rank FROM table_27956_3 WHERE institution = "Medical University of South Carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4440,
4834,
834,
519,
41,
1157,
834,
6254,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1157,
11003,
21,
1035,
3819,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
834,
6254,
21680,
953,
834,
357,
4440,
4834,
834,
519,
549,
17444,
427,
6568,
3274,
96,
15789,
138,
636,
13,
1013,
5089,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the average age of students living in each city with a bar chart, and sort bar in ascending order. | CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEG... | SELECT city_code, AVG(Age) FROM Student GROUP BY city_code ORDER BY city_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4498,
834,
9,
904,
485,
41,
103,
52,
6983,
3,
21342,
17966,
6,
183,
35,
23,
26,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3306,
7,
834,
77,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
834,
4978,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
690,
834,
4978,
4674,
11300,
272,
476,
690,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many games played have 4.7 points per game? | CREATE TABLE table_2387461_1 (games_played VARCHAR, points_per_game VARCHAR) | SELECT COUNT(games_played) FROM table_2387461_1 WHERE points_per_game = "4.7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
4581,
4241,
834,
536,
41,
7261,
7,
834,
4895,
15,
26,
584,
4280,
28027,
6,
979,
834,
883,
834,
7261,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
7,
834,
4895,
15,
26,
61,
21680,
953,
834,
357,
3747,
4581,
4241,
834,
536,
549,
17444,
427,
979,
834,
883,
834,
7261,
3274,
96,
25211,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What circuit was on the date 4 May? | CREATE TABLE table_12186237_1 (
circuit VARCHAR,
date VARCHAR
) | SELECT circuit FROM table_12186237_1 WHERE date = "4 May" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2606,
4056,
4118,
834,
536,
41,
4558,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4558,
47,
30,
8,
833,
314,
932,
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,
4558,
21680,
953,
834,
2122,
2606,
4056,
4118,
834,
536,
549,
17444,
427,
833,
3274,
96,
591,
932,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
From patients who had other diagnostic procedures on nasal sinuses, calculate the total number of those who died in or before 2111. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2111.0" AND procedures.long_title = "Other diagnostic procedures on nasal sinuses" | [
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,... |
provide the number of patients whose death status is 0 and lab test name is hemoglobin? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.expire_flag = "0" AND lab.label = "Hemoglobin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the lowest position number when goals against was 59, and a goals for is smaller than 24? | CREATE TABLE table_60870 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Position") FROM table_60870 WHERE "Goals against" = '59' AND "Goals for" < '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
927,
2518,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
3328,
927,
2518,
549,
17444,
427,
96,
6221,
5405,
581,
121,
3274,
3,
31,
3390,
31,
3430,
96,
6221,
5405,
21,
121,
3,
2,
3,
31,
2266,
31,
1,
-100,
-1... |
What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001? | CREATE TABLE table_name_87 (title VARCHAR, written_by VARCHAR, original_air_date VARCHAR) | SELECT title FROM table_name_87 WHERE written_by = "terri hughes & ron milbauer" AND original_air_date = "march 6, 2001" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
21869,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2233,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1545,
834,
969,
3274,
96,
17,
21301,
18233,
88,
7,
3,
184,
3,
52,
106,
15533,
2635,
49,
121,
3430,
926,
834,
2256,
834,
5522,
3274,
96,
51,
7064,
8580,
4402... |
what is the competition when the score is 2-1? | CREATE TABLE table_name_28 (
competition VARCHAR,
score VARCHAR
) | SELECT competition FROM table_name_28 WHERE score = "2-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
2259,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2259,
116,
8,
2604,
19,
3,
17234,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2604,
3274,
96,
17234,
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 Player has a Total Goals greater than 1 and Qualifying Goals smaller than 3? | CREATE TABLE table_name_90 (
player VARCHAR,
total_goals VARCHAR,
qualifying_goals VARCHAR
) | SELECT player FROM table_name_90 WHERE total_goals > 1 AND qualifying_goals < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1959,
584,
4280,
28027,
6,
792,
834,
839,
5405,
584,
4280,
28027,
6,
18002,
834,
839,
5405,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
792,
834,
839,
5405,
2490,
209,
3430,
18002,
834,
839,
5405,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the frame size that was nicknamed Grand Central? | CREATE TABLE table_39449 (
"PRINT NAME" text,
"NICKNAME" text,
"NUMBER OF COLORS" text,
"FRAMED SIZE" text,
"DATE COMPLETED" text
) | SELECT "FRAMED SIZE" FROM table_39449 WHERE "NICKNAME" = 'grand central' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
591,
3647,
41,
96,
5554,
13777,
445,
17683,
121,
1499,
6,
96,
18830,
439,
567,
17683,
121,
1499,
6,
96,
567,
6122,
12920,
3347,
3,
19617,
22500,
121,
1499,
6,
96,
371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
23203,
2326,
7933,
13358,
121,
21680,
953,
834,
3288,
591,
3647,
549,
17444,
427,
96,
18830,
439,
567,
17683,
121,
3274,
3,
31,
15448,
2069,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are admitted before the year 2168 and followed the procedure, procedure on two vessels? | 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.admityear < "2168" AND procedures.long_title = "Procedure on two vessels" | [
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,... |
What's the Lowest Attendance with a Game site of Riverfront Stadium? | CREATE TABLE table_name_56 (attendance INTEGER, game_site VARCHAR) | SELECT MIN(attendance) FROM table_name_56 WHERE game_site = "riverfront stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
15116,
663,
3,
21342,
17966,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
5586,
222,
22497,
663,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
467,
834,
3585,
3274,
96,
5927,
49,
6849,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Scatterplot of acc_percent vs school id by ACC_Regular_Season | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT School_ID, ACC_Percent FROM basketball_match GROUP BY ACC_Regular_Season | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1121,
834,
4309,
6,
3,
14775,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the league with a 0:1 home? | CREATE TABLE table_78843 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "League" FROM table_78843 WHERE "Home" = '0:1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4608,
519,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
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,
2796,
9,
5398,
121,
21680,
953,
834,
3940,
4608,
519,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
632,
10,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which name has a Roll larger than 297, and Years of 7–13? | CREATE TABLE table_name_1 (name VARCHAR, roll VARCHAR, years VARCHAR) | SELECT name FROM table_name_1 WHERE roll > 297 AND years = "7–13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
4350,
584,
4280,
28027,
6,
3812,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
564,
65,
3,
9,
6070,
2186,
145,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
3812,
2490,
204,
4327,
3430,
203,
3274,
96,
940,
104,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
who served a term before mannerheim ? | CREATE TABLE table_204_488 (
id number,
"order in\nposition" number,
"president of\nthe republic" text,
"length of\nthe presidential\naction" text,
"rank by\nlength\nof term(s)" number,
"notes" text
) | SELECT "president of\nthe republic" FROM table_204_488 WHERE "order in\nposition" < (SELECT "order in\nposition" FROM table_204_488 WHERE "president of\nthe republic" = 'gustaf mannerheim') ORDER BY "order in\nposition" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
4060,
41,
3,
23,
26,
381,
6,
96,
9397,
16,
2,
29,
4718,
121,
381,
6,
96,
102,
15704,
13,
2,
29,
532,
20237,
121,
1499,
6,
96,
19457,
13,
2,
29,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
15704,
13,
2,
29,
532,
20237,
121,
21680,
953,
834,
26363,
834,
591,
4060,
549,
17444,
427,
96,
9397,
16,
2,
29,
4718,
121,
3,
2,
41,
23143,
14196,
96,
9397,
16,
2,
29,
4718,
121,
21680,
953,
834,
26363... |
What is the nationality of the elector withe the Cardinalatial order and title of Cardinal-Priest of Ss. XII Apostoli? | CREATE TABLE table_name_49 (
nationality VARCHAR,
cardinalatial_order_and_title VARCHAR
) | SELECT nationality FROM table_name_49 WHERE cardinalatial_order_and_title = "cardinal-priest of ss. xii apostoli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1157,
485,
584,
4280,
28027,
6,
895,
10270,
9,
10646,
834,
9397,
834,
232,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
895,
10270,
9,
10646,
834,
9397,
834,
232,
834,
21869,
3274,
96,
6043,
10270,
18,
2246,
222,
13,
3,
7,
7,
5,
3,
226,
23,
23,
3,
9,
5950,
4172,
121,
... |
What's the 1996 when 1997 is 3R? | CREATE TABLE table_name_44 (
Id VARCHAR
) | SELECT 1996 FROM table_name_44 WHERE 1997 = "3r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
6911,
116,
6622,
19,
220,
448,
58,
1,
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,
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... | [
3,
23143,
14196,
6911,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
6622,
3274,
96,
519,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the year that has points larger than 20? | CREATE TABLE table_name_84 (year VARCHAR, points INTEGER) | SELECT COUNT(year) FROM table_name_84 WHERE points > 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
1201,
584,
4280,
28027,
6,
979,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
24,
65,
979,
2186,
145,
460,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
979,
2490,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the l2 cache of the model with TDP of 5.5-10 w? | CREATE TABLE table_24099916_1 (
l2_cache VARCHAR,
tdp VARCHAR
) | SELECT l2_cache FROM table_24099916_1 WHERE tdp = "5.5-10 W" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
19446,
2938,
834,
536,
41,
3,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
3,
17,
26,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
40,
357,
834,
75,
4933,
21680,
953,
834,
11944,
19446,
2938,
834,
536,
549,
17444,
427,
3,
17,
26,
102,
3274,
96,
15938,
4536,
549,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total for the year (s) won in 1977? | CREATE TABLE table_name_99 (
total VARCHAR,
year_s__won VARCHAR
) | SELECT total FROM table_name_99 WHERE year_s__won = "1977" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
792,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
21,
8,
215,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart about the distribution of meter_200 and the sum of ID , and group by attribute meter_200, I want to list from high to low by the total number. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text... | SELECT meter_200, SUM(ID) FROM swimmer GROUP BY meter_200 ORDER BY SUM(ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4401,
834,
3632,
6,
180,
6122,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
180,
6122,
599,
4309,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients whose primary disease is hypertension;rule out coronary artery disease\cardiac cath and drug route is sc? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND prescriptions.route = "SC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what was patient 008-10139 diagnosed with the first time on the first hospital encounter? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetake... | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '008-10139' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8209,
5,
25930,
4844,
159,
4350,
21680,
8209,
549,
17444,
427,
8209,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3... |
What is the theme of the song by Soul Brothers Six | CREATE TABLE table_21501518_1 (theme VARCHAR, original_artist VARCHAR) | SELECT theme FROM table_21501518_1 WHERE original_artist = "Soul Brothers Six" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
12278,
1808,
2606,
834,
536,
41,
532,
526,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3800,
13,
8,
2324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3800,
21680,
953,
834,
357,
12278,
1808,
2606,
834,
536,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
5231,
83,
17491,
7643,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of Round, when Position is Forward, and when School/Club Team is Western Kentucky? | CREATE TABLE table_name_2 (round INTEGER, position VARCHAR, school_club_team VARCHAR) | SELECT SUM(round) FROM table_name_2 WHERE position = "forward" AND school_club_team = "western kentucky" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
7775,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1102,
3274,
96,
26338,
121,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
24411,
3,
2217,
17,
4636,
63,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What is the number of wins for gp2 series for racing engineering? | CREATE TABLE table_16113 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | SELECT COUNT("Wins") FROM table_16113 WHERE "Series" = 'GP2 Series' AND "Team" = 'Racing Engineering' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
20522,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18455,
7,
8512,
21680,
953,
834,
2938,
20522,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
8049,
357,
4531,
31,
3430,
96,
18699,
121,
3274,
3,
31,
448,
9,
75,
53,
5623,
31,
1,
-100,
-1... |
What's the heat that was timed 2:08.54? | CREATE TABLE table_63753 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT COUNT("Heat") FROM table_63753 WHERE "Time" = '2:08.54' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3072,
519,
41,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
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,
2847,
17161,
599,
121,
3845,
144,
8512,
21680,
953,
834,
3891,
3072,
519,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
357,
10,
15000,
5062,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those payments processed with Visa, bin the payment day into Year interval and compute the total amount payment as the Y-axis, and sort by the y axis in descending please. | CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Da... | SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY SUM(Amount_Payment) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
31044,
7,
41,
31044,
834,
4309,
3,
21342,
17966,
6,
7781,
603,
834,
4309,
3,
21342,
17966,
6,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
309,
6048,
6,
7678,
834,
254,
521,
603,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
19702,
297,
834,
329,
9,
221,
6,
180,
6122,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
549,
17444,
427,
12248,
834,
23351,
107,
32,
26,
834,
22737,
3274,
3,
31,
553,
159,
9,
31,
4674,
11300,... |
What rank goes to a total of 92.7? | CREATE TABLE table_name_66 (rank VARCHAR, total VARCHAR) | SELECT rank FROM table_name_66 WHERE total = 92.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
6254,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
1550,
12,
3,
9,
792,
13,
668,
21280,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
792,
3274,
668,
21280,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
which team completed only two laps ? | CREATE TABLE table_203_366 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
) | SELECT "team" FROM table_203_366 WHERE "laps" = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3539,
41,
3,
23,
26,
381,
6,
96,
2748,
121,
381,
6,
96,
4057,
121,
1499,
6,
96,
29,
32,
121,
381,
6,
96,
11650,
121,
1499,
6,
96,
13739,
52,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11650,
121,
21680,
953,
834,
23330,
834,
519,
3539,
549,
17444,
427,
96,
8478,
7,
121,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the earliest heat with a finisher from the Czech Republic and a rank over 41? | CREATE TABLE table_name_51 (heat INTEGER, nationality VARCHAR, rank VARCHAR) | SELECT MIN(heat) FROM table_name_51 WHERE nationality = "czech republic" AND rank > 41 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
88,
144,
3,
21342,
17966,
6,
1157,
485,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
1678,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
88,
144,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1157,
485,
3274,
96,
75,
776,
524,
20237,
121,
3430,
11003,
2490,
8798,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many incumbents are there in the georgia 8 district when the party is democratic? | CREATE TABLE table_19753079_13 (incumbent VARCHAR, party VARCHAR, district VARCHAR) | SELECT COUNT(incumbent) FROM table_19753079_13 WHERE party = "Democratic" AND district = "Georgia 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
26918,
4440,
834,
2368,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
27181,
26918,
4440,
834,
2368,
549,
17444,
427,
1088,
3274,
96,
19679,
447,
121,
3430,
3939,
3274,
96,
517,
15,
1677,
23,
9,
505,
121,
1,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.