instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|
in this month has the arterial bp [diastolic] of patient 18159 been normal? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18159)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') AND chartevents.valuenum BETWEEN diastolic_bp_lower AND diastolic_bp_upper AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') | [
259,
428,
1227,
468,
262,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
1248,
19707,
587,
3487,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1248,
19707,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
2571,
498,
275,
79,
685,
10989,
459,
4160,
49946,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
5357,
8262,
31534,
13,
2100,
84,
44709,
38651,
8845,
1677,
2566,
459,
4160,
62,
46583,
62,
21037,
5357,
2566,
459,
4160,
62,
46583,
62,
45828,
5357,
360,
1404,
2767,
12789,
7,
40926,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
1227,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
1227,
3256,
705,
12,
15,
1227,
11537
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
428,
1227,
468,
262,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
1248,
19707,
587,
3487,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1248,
19707,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
2571,
498,
275,
79,
685,
10989,
459,
4160,
49946,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
5357,
8262,
31534,
13,
2100,
84,
44709,
38651,
8845,
1677,
2566,
459,
4160,
62,
46583,
62,
21037,
5357,
2566,
459,
4160,
62,
46583,
62,
45828,
5357,
360,
1404,
2767,
12789,
7,
40926,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
1227,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
1227,
3256,
705,
12,
15,
1227,
11537
] |
Give me the names and prices of furnitures which some companies are manufacturing with a bar chart, display y axis from low to high order. | SELECT Name, Price_in_Dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID ORDER BY Price_in_Dollar | [
23318,
502,
262,
3891,
290,
4536,
286,
8926,
20686,
543,
617,
2706,
389,
9138,
351,
257,
2318,
8262,
11,
3359,
331,
16488,
422,
1877,
284,
1029,
1502,
13,
46506,
6530,
11,
7886,
62,
259,
62,
35,
13228,
16034,
13091,
7054,
256,
16,
32357,
1268,
13091,
62,
48119,
68,
7054,
256,
17,
6177,
256,
16,
13,
37,
700,
8089,
62,
2389,
796,
256,
17,
13,
37,
700,
8089,
62,
2389,
38678,
11050,
7886,
62,
259,
62,
35,
13228
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
3891,
290,
4536,
286,
8926,
20686,
543,
617,
2706,
389,
9138,
351,
257,
2318,
8262,
11,
3359,
331,
16488,
422,
1877,
284,
1029,
1502,
13,
46506,
6530,
11,
7886,
62,
259,
62,
35,
13228,
16034,
13091,
7054,
256,
16,
32357,
1268,
13091,
62,
48119,
68,
7054,
256,
17,
6177,
256,
16,
13,
37,
700,
8089,
62,
2389,
796,
256,
17,
13,
37,
700,
8089,
62,
2389,
38678,
11050,
7886,
62,
259,
62,
35,
13228
] |
What was the Away team score when the Home team had a score of 13.12 (90)? | SELECT "Away team score" FROM table_52372 WHERE "Home team score" = '13.12 (90)' | [
2061,
373,
262,
21986,
1074,
4776,
618,
262,
5995,
1074,
550,
257,
4776,
286,
1511,
13,
1065,
357,
3829,
19427,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
49803,
4761,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1485,
13,
1065,
357,
3829,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
21986,
1074,
4776,
618,
262,
5995,
1074,
550,
257,
4776,
286,
1511,
13,
1065,
357,
3829,
19427,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
49803,
4761,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1485,
13,
1065,
357,
3829,
33047
] |
What was the date of the game with a result of won 4-2? | SELECT date FROM table_name_15 WHERE result = "won 4-2" | [
2061,
373,
262,
3128,
286,
262,
983,
351,
257,
1255,
286,
1839,
604,
12,
17,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1314,
33411,
1255,
796,
366,
26502,
604,
12,
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
] | [
2061,
373,
262,
3128,
286,
262,
983,
351,
257,
1255,
286,
1839,
604,
12,
17,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1314,
33411,
1255,
796,
366,
26502,
604,
12,
17,
1
] |
provide the number of patients whose ethnicity is white and diagnoses long title is single liveborn, born in hospital, delivered by cesarean section? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE" AND diagnoses.long_title = "Single liveborn, born in hospital, delivered by cesarean section" | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
2330,
290,
40567,
890,
3670,
318,
2060,
2107,
6286,
11,
4642,
287,
4436,
11,
6793,
416,
269,
274,
533,
272,
2665,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
28008,
2107,
6286,
11,
4642,
287,
4436,
11,
6793,
416,
269,
274,
533,
272,
2665,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
2330,
290,
40567,
890,
3670,
318,
2060,
2107,
6286,
11,
4642,
287,
4436,
11,
6793,
416,
269,
274,
533,
272,
2665,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
28008,
2107,
6286,
11,
4642,
287,
4436,
11,
6793,
416,
269,
274,
533,
272,
2665,
1
] |
How few losses were the least number of losses and points higher than 23? | SELECT MIN("Lost") FROM table_42939 WHERE "Points" > '23' | [
2437,
1178,
9089,
547,
262,
1551,
1271,
286,
9089,
290,
2173,
2440,
621,
2242,
30,
46506,
20625,
7203,
31042,
4943,
16034,
3084,
62,
11785,
2670,
33411,
366,
40710,
1,
1875,
705,
1954,
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
] | [
2437,
1178,
9089,
547,
262,
1551,
1271,
286,
9089,
290,
2173,
2440,
621,
2242,
30,
46506,
20625,
7203,
31042,
4943,
16034,
3084,
62,
11785,
2670,
33411,
366,
40710,
1,
1875,
705,
1954,
6
] |
roomba more than year old questions. http://meta.stackexchange.com/questions/78048/enable-automatic-deletion-of-old-unanswered-zero-score-questions-after-a-year/92006#92006 | SELECT q.Id AS "post_link" FROM Posts AS q INNER JOIN Users AS u ON u.Id = q.OwnerUserId INNER JOIN PostHistory AS ph ON ph.Id = q.Id WHERE q.PostTypeId = 1 AND DATEDIFF(DAY, q.CreationDate, GETDATE()) > 365 AND q.Score = 0 AND q.AnswerCount = 0 AND ph.PostHistoryTypeId != 14 AND q.ViewCount < DATEDIFF(DAY, q.CreationDate, GETDATE()) * 1.4 AND q.CommentCount < 7 AND q.ClosedDate IS NULL AND LEN(q.Body) < '##questionLength?500##' AND DATEDIFF(DAY, u.LastAccessDate, GETDATE()) > 15 AND u.Reputation < '##questionerRep?500##' ORDER BY q.CreationDate | [
305,
2381,
64,
517,
621,
614,
1468,
2683,
13,
2638,
1378,
28961,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
6138,
507,
14,
40873,
2780,
14,
21633,
12,
37800,
12,
2934,
1616,
295,
12,
1659,
12,
727,
12,
403,
31966,
12,
22570,
12,
26675,
12,
6138,
507,
12,
8499,
12,
64,
12,
1941,
14,
24,
13330,
2,
24,
13330,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
10662,
3268,
21479,
32357,
1268,
18987,
7054,
334,
6177,
334,
13,
7390,
796,
10662,
13,
42419,
12982,
7390,
3268,
21479,
32357,
1268,
2947,
18122,
7054,
872,
6177,
872,
13,
7390,
796,
10662,
13,
7390,
33411,
10662,
13,
6307,
6030,
7390,
796,
352,
5357,
360,
11617,
29267,
7,
26442,
11,
10662,
13,
12443,
341,
10430,
11,
17151,
35,
6158,
28955,
1875,
21268,
5357,
10662,
13,
26595,
796,
657,
5357,
10662,
13,
33706,
12332,
796,
657,
5357,
872,
13,
6307,
18122,
6030,
7390,
14512,
1478,
5357,
10662,
13,
7680,
12332,
1279,
360,
11617,
29267,
7,
26442,
11,
10662,
13,
12443,
341,
10430,
11,
17151,
35,
6158,
28955,
1635,
352,
13,
19,
5357,
10662,
13,
21357,
12332,
1279,
767,
5357,
10662,
13,
2601,
1335,
10430,
3180,
15697,
5357,
406,
1677,
7,
80,
13,
25842,
8,
1279,
705,
2235,
25652,
24539,
30,
4059,
2235,
6,
5357,
360,
11617,
29267,
7,
26442,
11,
334,
13,
5956,
15457,
10430,
11,
17151,
35,
6158,
28955,
1875,
1315,
5357,
334,
13,
6207,
7094,
1279,
705,
2235,
25652,
263,
6207,
30,
4059,
2235,
6,
38678,
11050,
10662,
13,
12443,
341,
10430
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
305,
2381,
64,
517,
621,
614,
1468,
2683,
13,
2638,
1378,
28961,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
6138,
507,
14,
40873,
2780,
14,
21633,
12,
37800,
12,
2934,
1616,
295,
12,
1659,
12,
727,
12,
403,
31966,
12,
22570,
12,
26675,
12,
6138,
507,
12,
8499,
12,
64,
12,
1941,
14,
24,
13330,
2,
24,
13330,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
10662,
3268,
21479,
32357,
1268,
18987,
7054,
334,
6177,
334,
13,
7390,
796,
10662,
13,
42419,
12982,
7390,
3268,
21479,
32357,
1268,
2947,
18122,
7054,
872,
6177,
872,
13,
7390,
796,
10662,
13,
7390,
33411,
10662,
13,
6307,
6030,
7390,
796,
352,
5357,
360,
11617,
29267,
7,
26442,
11,
10662,
13,
12443,
341,
10430,
11,
17151,
35,
6158,
28955,
1875,
21268,
5357,
10662,
13,
26595,
796,
657,
5357,
10662,
13,
33706,
12332,
796,
657,
5357,
872,
13,
6307,
18122,
6030,
7390,
14512,
1478,
5357,
10662,
13,
7680,
12332,
1279,
360,
11617,
29267,
7,
26442,
11,
10662,
13,
12443,
341,
10430,
11,
17151,
35,
6158,
28955,
1635,
352,
13,
19,
5357,
10662,
13,
21357,
12332,
1279,
767,
5357,
10662,
13,
2601,
1335,
10430,
3180,
15697,
5357,
406,
1677,
7,
80,
13,
25842,
8,
1279,
705,
2235,
25652,
24539,
30,
4059,
2235,
6,
5357,
360,
11617,
29267,
7,
26442,
11,
334,
13,
5956,
15457,
10430,
11,
17151,
35,
6158,
28955,
1875,
1315,
5357,
334,
13,
6207,
7094,
1279,
705,
2235,
25652,
263,
6207,
30,
4059,
2235,
6,
38678,
11050,
10662,
13,
12443,
341,
10430
] |
What is the score on the 1 December 2007 game? | SELECT "Score" FROM table_11918 WHERE "Date" = '1 december 2007' | [
2061,
318,
262,
4776,
319,
262,
352,
3426,
4343,
983,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
16315,
1507,
33411,
366,
10430,
1,
796,
705,
16,
390,
3273,
4343,
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
] | [
2061,
318,
262,
4776,
319,
262,
352,
3426,
4343,
983,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
16315,
1507,
33411,
366,
10430,
1,
796,
705,
16,
390,
3273,
4343,
6
] |
What are the names of customers with a higher checking balance than savings balance? | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance | [
2061,
389,
262,
3891,
286,
4297,
351,
257,
2440,
10627,
5236,
621,
10653,
5236,
30,
46506,
309,
16,
13,
3672,
16034,
5504,
7054,
309,
16,
32357,
1268,
10627,
7054,
309,
17,
6177,
309,
16,
13,
66,
436,
312,
796,
309,
17,
13,
66,
436,
312,
32357,
1268,
10653,
7054,
309,
18,
6177,
309,
16,
13,
66,
436,
312,
796,
309,
18,
13,
66,
436,
312,
33411,
309,
17,
13,
20427,
1875,
309,
18,
13,
20427
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
4297,
351,
257,
2440,
10627,
5236,
621,
10653,
5236,
30,
46506,
309,
16,
13,
3672,
16034,
5504,
7054,
309,
16,
32357,
1268,
10627,
7054,
309,
17,
6177,
309,
16,
13,
66,
436,
312,
796,
309,
17,
13,
66,
436,
312,
32357,
1268,
10653,
7054,
309,
18,
6177,
309,
16,
13,
66,
436,
312,
796,
309,
18,
13,
66,
436,
312,
33411,
309,
17,
13,
20427,
1875,
309,
18,
13,
20427
] |
what flights are there on sunday from SEATTLE to CHICAGO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CHICAGO' AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SEATTLE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | [
10919,
13956,
389,
612,
319,
37437,
323,
422,
7946,
35455,
284,
5870,
2149,
4760,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
3128,
62,
820,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
3398,
2149,
4760,
46,
6,
5357,
3128,
62,
820,
13,
820,
62,
17618,
796,
2681,
5357,
3128,
62,
820,
13,
8424,
62,
17618,
796,
807,
5357,
3128,
62,
820,
13,
1941,
796,
10249,
5357,
1528,
13,
820,
62,
3672,
796,
3128,
62,
820,
13,
820,
62,
3672,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
5188,
35455,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
13956,
389,
612,
319,
37437,
323,
422,
7946,
35455,
284,
5870,
2149,
4760,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
3128,
62,
820,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
3398,
2149,
4760,
46,
6,
5357,
3128,
62,
820,
13,
820,
62,
17618,
796,
2681,
5357,
3128,
62,
820,
13,
8424,
62,
17618,
796,
807,
5357,
3128,
62,
820,
13,
1941,
796,
10249,
5357,
1528,
13,
820,
62,
3672,
796,
3128,
62,
820,
13,
820,
62,
3672,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
5188,
35455,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189
] |
What is the LMS class of trains with numbers 14510-5? | SELECT LMS AS class FROM table_15412381_5 WHERE lms_nos = "14510-5" | [
2061,
318,
262,
406,
5653,
1398,
286,
13404,
351,
3146,
20299,
940,
12,
20,
30,
46506,
406,
5653,
7054,
1398,
16034,
3084,
62,
21526,
1065,
36626,
62,
20,
33411,
300,
907,
62,
39369,
796,
366,
18781,
940,
12,
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
] | [
2061,
318,
262,
406,
5653,
1398,
286,
13404,
351,
3146,
20299,
940,
12,
20,
30,
46506,
406,
5653,
7054,
1398,
16034,
3084,
62,
21526,
1065,
36626,
62,
20,
33411,
300,
907,
62,
39369,
796,
366,
18781,
940,
12,
20,
1
] |
specify the procedural long title for icd9 code 4601 | SELECT procedures.long_title FROM procedures WHERE procedures.icd9_code = "4601" | [
16684,
1958,
262,
27931,
890,
3670,
329,
14158,
67,
24,
2438,
6337,
486,
46506,
9021,
13,
6511,
62,
7839,
16034,
9021,
33411,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
3510,
486,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16684,
1958,
262,
27931,
890,
3670,
329,
14158,
67,
24,
2438,
6337,
486,
46506,
9021,
13,
6511,
62,
7839,
16034,
9021,
33411,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
3510,
486,
1
] |
Return the claim start date for the claims whose claimed amount is no more than the averag, and count them by a bar chart, and list by the y-axis in ascending. | SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) ORDER BY COUNT(Date_Claim_Made) | [
13615,
262,
1624,
923,
3128,
329,
262,
3667,
3025,
4752,
2033,
318,
645,
517,
621,
262,
9076,
363,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
1351,
416,
262,
331,
12,
22704,
287,
41988,
13,
46506,
7536,
62,
44819,
62,
24616,
11,
327,
28270,
7,
10430,
62,
44819,
62,
24616,
8,
16034,
36880,
33411,
26308,
62,
50,
3087,
992,
19841,
357,
46506,
35224,
7,
31264,
62,
50,
3087,
992,
8,
16034,
36880,
8,
38678,
11050,
327,
28270,
7,
10430,
62,
44819,
62,
24616,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
262,
1624,
923,
3128,
329,
262,
3667,
3025,
4752,
2033,
318,
645,
517,
621,
262,
9076,
363,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
1351,
416,
262,
331,
12,
22704,
287,
41988,
13,
46506,
7536,
62,
44819,
62,
24616,
11,
327,
28270,
7,
10430,
62,
44819,
62,
24616,
8,
16034,
36880,
33411,
26308,
62,
50,
3087,
992,
19841,
357,
46506,
35224,
7,
31264,
62,
50,
3087,
992,
8,
16034,
36880,
8,
38678,
11050,
327,
28270,
7,
10430,
62,
44819,
62,
24616,
8
] |
count the number of patients whose age is less than 58 and drug name is nitroglycerin sl? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "58" AND prescriptions.drug = "Nitroglycerin SL" | [
9127,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
7618,
290,
2563,
1438,
318,
13759,
3828,
38577,
259,
1017,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
496,
1279,
366,
3365,
1,
5357,
34092,
13,
30349,
796,
366,
33772,
3828,
38577,
259,
12419,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
7618,
290,
2563,
1438,
318,
13759,
3828,
38577,
259,
1017,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
496,
1279,
366,
3365,
1,
5357,
34092,
13,
30349,
796,
366,
33772,
3828,
38577,
259,
12419,
1
] |
Who is the constructor for driver Niki Lauda and a chassis of mp4/1c? | SELECT constructor FROM table_name_91 WHERE chassis = "mp4/1c" AND driver = "niki lauda" | [
8241,
318,
262,
23772,
329,
4639,
399,
5580,
406,
3885,
64,
290,
257,
24587,
286,
29034,
19,
14,
16,
66,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
6420,
33411,
24587,
796,
366,
3149,
19,
14,
16,
66,
1,
5357,
4639,
796,
366,
77,
5580,
28907,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
23772,
329,
4639,
399,
5580,
406,
3885,
64,
290,
257,
24587,
286,
29034,
19,
14,
16,
66,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
6420,
33411,
24587,
796,
366,
3149,
19,
14,
16,
66,
1,
5357,
4639,
796,
366,
77,
5580,
28907,
64,
1
] |
what's the total number of species in the peruvian amazon with 8411 species in the world | SELECT COUNT(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE species_in_the_world = 8411 | [
10919,
338,
262,
2472,
1271,
286,
4693,
287,
262,
583,
50013,
716,
5168,
351,
9508,
1157,
4693,
287,
262,
995,
46506,
327,
28270,
7,
35448,
62,
259,
62,
1169,
62,
525,
50013,
62,
33103,
8,
16034,
3084,
62,
17657,
26050,
3388,
62,
16,
33411,
4693,
62,
259,
62,
1169,
62,
6894,
796,
9508,
1157
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
2472,
1271,
286,
4693,
287,
262,
583,
50013,
716,
5168,
351,
9508,
1157,
4693,
287,
262,
995,
46506,
327,
28270,
7,
35448,
62,
259,
62,
1169,
62,
525,
50013,
62,
33103,
8,
16034,
3084,
62,
17657,
26050,
3388,
62,
16,
33411,
4693,
62,
259,
62,
1169,
62,
6894,
796,
9508,
1157
] |
Name the interacting settings for co-operate, plan, take care of, help | SELECT "Interacting (settings)" FROM table_68448 WHERE "Doing (actions)" = 'co-operate, plan, take care of, help' | [
5376,
262,
24986,
6460,
329,
763,
12,
3575,
378,
11,
1410,
11,
1011,
1337,
286,
11,
1037,
46506,
366,
9492,
27362,
357,
33692,
16725,
16034,
3084,
62,
3104,
31115,
33411,
366,
5211,
278,
357,
4658,
16725,
796,
705,
1073,
12,
3575,
378,
11,
1410,
11,
1011,
1337,
286,
11,
1037,
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
] | [
5376,
262,
24986,
6460,
329,
763,
12,
3575,
378,
11,
1410,
11,
1011,
1337,
286,
11,
1037,
46506,
366,
9492,
27362,
357,
33692,
16725,
16034,
3084,
62,
3104,
31115,
33411,
366,
5211,
278,
357,
4658,
16725,
796,
705,
1073,
12,
3575,
378,
11,
1410,
11,
1011,
1337,
286,
11,
1037,
6
] |
Which Garfield episode 2 has Garfield episode 1 as the first annual Garfield watchers test? | SELECT "Garfield Episode 2" FROM table_22397 WHERE "Garfield Episode 1" = 'The First Annual Garfield Watchers Test' | [
13828,
47218,
4471,
362,
468,
47218,
4471,
352,
355,
262,
717,
5079,
47218,
4383,
3533,
1332,
30,
46506,
366,
27676,
3245,
7922,
362,
1,
16034,
3084,
62,
1828,
33372,
33411,
366,
27676,
3245,
7922,
352,
1,
796,
705,
464,
3274,
16328,
47218,
12242,
3533,
6208,
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
] | [
13828,
47218,
4471,
362,
468,
47218,
4471,
352,
355,
262,
717,
5079,
47218,
4383,
3533,
1332,
30,
46506,
366,
27676,
3245,
7922,
362,
1,
16034,
3084,
62,
1828,
33372,
33411,
366,
27676,
3245,
7922,
352,
1,
796,
705,
464,
3274,
16328,
47218,
12242,
3533,
6208,
6
] |
history of type i diabetes | SELECT * FROM table_train_166 WHERE diabetic = 'i' | [
23569,
286,
2099,
1312,
12593,
46506,
1635,
16034,
3084,
62,
27432,
62,
23055,
33411,
44016,
796,
705,
72,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23569,
286,
2099,
1312,
12593,
46506,
1635,
16034,
3084,
62,
27432,
62,
23055,
33411,
44016,
796,
705,
72,
6
] |
calculate the length of patient 035-20156's first stay in icu. | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-20156') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | [
9948,
3129,
378,
262,
4129,
286,
5827,
657,
2327,
12,
1264,
3980,
338,
717,
2652,
287,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
324,
20124,
524,
8,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44215,
12,
1264,
3980,
11537,
5357,
5626,
5827,
13,
20850,
324,
20124,
524,
3180,
15697,
38678,
11050,
5827,
13,
20850,
324,
20124,
524,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
4129,
286,
5827,
657,
2327,
12,
1264,
3980,
338,
717,
2652,
287,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
324,
20124,
524,
8,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44215,
12,
1264,
3980,
11537,
5357,
5626,
5827,
13,
20850,
324,
20124,
524,
3180,
15697,
38678,
11050,
5827,
13,
20850,
324,
20124,
524,
27564,
2043,
352
] |
how many patients whose year of birth is less than 2058 and lab test fluid is joint fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2058" AND lab.fluid = "Joint Fluid" | [
4919,
867,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
3365,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
3365,
1,
5357,
2248,
13,
35522,
312,
796,
366,
41,
1563,
1610,
27112,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
3365,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
3365,
1,
5357,
2248,
13,
35522,
312,
796,
366,
41,
1563,
1610,
27112,
1
] |
Is 520 available on Mondays and Wednesdays ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.friday = 'N' AND course_offering.monday = 'Y' AND course_offering.thursday = 'N' AND course_offering.tuesday = 'N' AND course_offering.wednesday = 'Y' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 520 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | [
3792,
36141,
1695,
319,
49748,
290,
3300,
2516,
12545,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
8310,
2567,
796,
705,
45,
6,
5357,
1781,
62,
2364,
1586,
13,
76,
3204,
796,
705,
56,
6,
5357,
1781,
62,
2364,
1586,
13,
400,
3479,
796,
705,
45,
6,
5357,
1781,
62,
2364,
1586,
13,
83,
3322,
796,
705,
45,
6,
5357,
1781,
62,
2364,
1586,
13,
19103,
3462,
796,
705,
56,
6,
5357,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357,
1781,
13,
17618,
796,
36141,
5357,
24878,
13,
325,
6880,
353,
796,
705,
29767,
6,
5357,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
5357,
24878,
13,
1941,
796,
1584
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3792,
36141,
1695,
319,
49748,
290,
3300,
2516,
12545,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
8310,
2567,
796,
705,
45,
6,
5357,
1781,
62,
2364,
1586,
13,
76,
3204,
796,
705,
56,
6,
5357,
1781,
62,
2364,
1586,
13,
400,
3479,
796,
705,
45,
6,
5357,
1781,
62,
2364,
1586,
13,
83,
3322,
796,
705,
45,
6,
5357,
1781,
62,
2364,
1586,
13,
19103,
3462,
796,
705,
56,
6,
5357,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357,
1781,
13,
17618,
796,
36141,
5357,
24878,
13,
325,
6880,
353,
796,
705,
29767,
6,
5357,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
5357,
24878,
13,
1941,
796,
1584
] |
How many forced fumbles for jim laney with under 2 solo tackles? | SELECT COUNT("Fumble force") FROM table_72058 WHERE "Solo" < '2' AND "Player" = 'jim laney' | [
2437,
867,
4137,
277,
25329,
329,
474,
320,
11193,
88,
351,
739,
362,
12199,
18034,
30,
46506,
327,
28270,
7203,
37,
10344,
2700,
4943,
16034,
3084,
62,
23906,
3365,
33411,
366,
50,
14057,
1,
1279,
705,
17,
6,
5357,
366,
14140,
1,
796,
705,
73,
320,
11193,
88,
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
] | [
2437,
867,
4137,
277,
25329,
329,
474,
320,
11193,
88,
351,
739,
362,
12199,
18034,
30,
46506,
327,
28270,
7203,
37,
10344,
2700,
4943,
16034,
3084,
62,
23906,
3365,
33411,
366,
50,
14057,
1,
1279,
705,
17,
6,
5357,
366,
14140,
1,
796,
705,
73,
320,
11193,
88,
6
] |
what airlines fly from BOSTON to DENVER | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | [
10919,
26225,
6129,
422,
347,
10892,
1340,
284,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
5474,
13,
958,
1370,
62,
8189,
796,
18091,
13,
958,
1370,
62,
8189,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
26225,
6129,
422,
347,
10892,
1340,
284,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
5474,
13,
958,
1370,
62,
8189,
796,
18091,
13,
958,
1370,
62,
8189,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189
] |
what was patient 83709's insurance name on their last hospital encounter? | SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 83709 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | [
10919,
373,
5827,
9698,
31495,
338,
5096,
1438,
319,
511,
938,
4436,
8791,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
9698,
31495,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
25349,
13,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
5827,
9698,
31495,
338,
5096,
1438,
319,
511,
938,
4436,
8791,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
9698,
31495,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
25349,
13,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] |
For all employees who have the letters D or S in their first name, visualize a scatter chart about the correlation between salary and manager_id . | SELECT SALARY, MANAGER_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
41058,
8262,
546,
262,
16096,
1022,
9588,
290,
4706,
62,
312,
764,
46506,
42475,
13153,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
33411,
31328,
62,
20608,
34178,
705,
4,
35,
4,
6,
6375,
31328,
62,
20608,
34178,
705,
4,
50,
4,
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
] | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
41058,
8262,
546,
262,
16096,
1022,
9588,
290,
4706,
62,
312,
764,
46506,
42475,
13153,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
33411,
31328,
62,
20608,
34178,
705,
4,
35,
4,
6,
6375,
31328,
62,
20608,
34178,
705,
4,
50,
4,
6
] |
What is the nationality of the Team Purdue? | SELECT nationality FROM table_name_73 WHERE school_club_team = "purdue" | [
2061,
318,
262,
29835,
286,
262,
4816,
34699,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
4790,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
79,
30345,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
29835,
286,
262,
4816,
34699,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
4790,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
79,
30345,
1
] |
list the number of patients who have base drug type. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug_type = "BASE" | [
4868,
262,
1271,
286,
3871,
508,
423,
2779,
2563,
2099,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
34092,
13,
30349,
62,
4906,
796,
366,
33,
11159,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4868,
262,
1271,
286,
3871,
508,
423,
2779,
2563,
2099,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
34092,
13,
30349,
62,
4906,
796,
366,
33,
11159,
1
] |
What are the allergy types and how many allergies correspond to each one, and sort names in desc order. | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY AllergyType DESC | [
2061,
389,
262,
36197,
3858,
290,
703,
867,
36665,
6053,
284,
1123,
530,
11,
290,
3297,
3891,
287,
1715,
1502,
13,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030,
38678,
11050,
1439,
26079,
6030,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
36197,
3858,
290,
703,
867,
36665,
6053,
284,
1123,
530,
11,
290,
3297,
3891,
287,
1715,
1502,
13,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030,
38678,
11050,
1439,
26079,
6030,
22196,
34
] |
provide the number of patients with subdural hematoma primary disease who had pleural lab test done. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "SDH" AND lab.fluid = "Pleural" | [
15234,
485,
262,
1271,
286,
3871,
351,
850,
67,
1523,
339,
6759,
6086,
4165,
4369,
508,
550,
3339,
1523,
2248,
1332,
1760,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
47356,
5958,
796,
366,
10305,
39,
1,
5357,
2248,
13,
35522,
312,
796,
366,
47,
293,
1523,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
351,
850,
67,
1523,
339,
6759,
6086,
4165,
4369,
508,
550,
3339,
1523,
2248,
1332,
1760,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
47356,
5958,
796,
366,
10305,
39,
1,
5357,
2248,
13,
35522,
312,
796,
366,
47,
293,
1523,
1
] |
A bar chart showing the number of films each cinema has, display names in desc order please. | SELECT Name, COUNT(Name) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Name ORDER BY Name DESC | [
32,
2318,
8262,
4478,
262,
1271,
286,
7328,
1123,
22041,
468,
11,
3359,
3891,
287,
1715,
1502,
3387,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
7269,
7054,
309,
16,
32357,
1268,
2646,
7054,
309,
17,
6177,
309,
16,
13,
39750,
62,
2389,
796,
309,
17,
13,
39750,
62,
2389,
32357,
1268,
22041,
7054,
309,
18,
6177,
309,
16,
13,
34,
7749,
64,
62,
2389,
796,
309,
18,
13,
34,
7749,
64,
62,
2389,
44441,
11050,
6530,
38678,
11050,
6530,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
4478,
262,
1271,
286,
7328,
1123,
22041,
468,
11,
3359,
3891,
287,
1715,
1502,
3387,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
7269,
7054,
309,
16,
32357,
1268,
2646,
7054,
309,
17,
6177,
309,
16,
13,
39750,
62,
2389,
796,
309,
17,
13,
39750,
62,
2389,
32357,
1268,
22041,
7054,
309,
18,
6177,
309,
16,
13,
34,
7749,
64,
62,
2389,
796,
309,
18,
13,
34,
7749,
64,
62,
2389,
44441,
11050,
6530,
38678,
11050,
6530,
22196,
34
] |
For all employees who have the letters D or S in their first name, show me the trend about salary over hire_date with a line chart, I want to show x axis in desc order. | SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
262,
5182,
546,
9588,
625,
11078,
62,
4475,
351,
257,
1627,
8262,
11,
314,
765,
284,
905,
2124,
16488,
287,
1715,
1502,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
42475,
13153,
16034,
4409,
33411,
31328,
62,
20608,
34178,
705,
4,
35,
4,
6,
6375,
31328,
62,
20608,
34178,
705,
4,
50,
4,
6,
38678,
11050,
36210,
2200,
62,
35,
6158,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
262,
5182,
546,
9588,
625,
11078,
62,
4475,
351,
257,
1627,
8262,
11,
314,
765,
284,
905,
2124,
16488,
287,
1715,
1502,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
42475,
13153,
16034,
4409,
33411,
31328,
62,
20608,
34178,
705,
4,
35,
4,
6,
6375,
31328,
62,
20608,
34178,
705,
4,
50,
4,
6,
38678,
11050,
36210,
2200,
62,
35,
6158,
22196,
34
] |
get me the drug that patient 8005 has been last prescribed in 03/last year. | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8005) AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', prescriptions.startdate) = '03' ORDER BY prescriptions.startdate DESC LIMIT 1 | [
1136,
502,
262,
2563,
326,
5827,
10460,
20,
468,
587,
938,
14798,
287,
7643,
14,
12957,
614,
13,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
10460,
20,
8,
5357,
360,
1404,
2767,
12789,
7,
18302,
24370,
13,
9688,
4475,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
34092,
13,
9688,
4475,
8,
796,
705,
3070,
6,
38678,
11050,
34092,
13,
9688,
4475,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1136,
502,
262,
2563,
326,
5827,
10460,
20,
468,
587,
938,
14798,
287,
7643,
14,
12957,
614,
13,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
10460,
20,
8,
5357,
360,
1404,
2767,
12789,
7,
18302,
24370,
13,
9688,
4475,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
34092,
13,
9688,
4475,
8,
796,
705,
3070,
6,
38678,
11050,
34092,
13,
9688,
4475,
22196,
34,
27564,
2043,
352
] |
show me flights from SAN FRANCISCO to SEATTLE | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | [
12860,
502,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
7946,
1404,
14990,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
5188,
35455,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12860,
502,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
7946,
1404,
14990,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
5188,
35455,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189
] |
Top Questions with answer by tag order by score, poster reputation. | SELECT question.Id AS "post_link", poster.Reputation, question.Tags FROM Posts AS question INNER JOIN Users AS poster ON question.OwnerUserId = poster.Id AND question.Tags LIKE '%##TagName1##%' AND poster.Reputation > '##minreputation:int##' ORDER BY question.Score DESC LIMIT 10 | [
9126,
20396,
351,
3280,
416,
7621,
1502,
416,
4776,
11,
11968,
8507,
13,
46506,
1808,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
11968,
13,
6207,
7094,
11,
1808,
13,
36142,
16034,
12043,
7054,
1808,
3268,
21479,
32357,
1268,
18987,
7054,
11968,
6177,
1808,
13,
42419,
12982,
7390,
796,
11968,
13,
7390,
5357,
1808,
13,
36142,
34178,
705,
4,
2235,
24835,
5376,
16,
2235,
4,
6,
5357,
11968,
13,
6207,
7094,
1875,
705,
2235,
1084,
260,
1996,
341,
25,
600,
2235,
6,
38678,
11050,
1808,
13,
26595,
22196,
34,
27564,
2043,
838
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9126,
20396,
351,
3280,
416,
7621,
1502,
416,
4776,
11,
11968,
8507,
13,
46506,
1808,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
11968,
13,
6207,
7094,
11,
1808,
13,
36142,
16034,
12043,
7054,
1808,
3268,
21479,
32357,
1268,
18987,
7054,
11968,
6177,
1808,
13,
42419,
12982,
7390,
796,
11968,
13,
7390,
5357,
1808,
13,
36142,
34178,
705,
4,
2235,
24835,
5376,
16,
2235,
4,
6,
5357,
11968,
13,
6207,
7094,
1875,
705,
2235,
1084,
260,
1996,
341,
25,
600,
2235,
6,
38678,
11050,
1808,
13,
26595,
22196,
34,
27564,
2043,
838
] |
Who was the opponent on July 27? | SELECT "Opponent" FROM table_68684 WHERE "Date" = 'july 27' | [
8241,
373,
262,
6125,
319,
2901,
2681,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
3104,
41580,
33411,
366,
10430,
1,
796,
705,
73,
2062,
2681,
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
] | [
8241,
373,
262,
6125,
319,
2901,
2681,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
3104,
41580,
33411,
366,
10430,
1,
796,
705,
73,
2062,
2681,
6
] |
What is Tie No., when Away Team is 'Manchester United'? | SELECT tie_no FROM table_name_32 WHERE away_team = "manchester united" | [
2061,
318,
36286,
1400,
1539,
618,
21986,
4816,
318,
705,
40744,
1578,
30960,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
2624,
33411,
1497,
62,
15097,
796,
366,
805,
35983,
16503,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
36286,
1400,
1539,
618,
21986,
4816,
318,
705,
40744,
1578,
30960,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
2624,
33411,
1497,
62,
15097,
796,
366,
805,
35983,
16503,
1
] |
Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number? | SELECT "NIR Number" FROM table_80076 WHERE "Type" = 'tso (ex-br class 488 unit 488305)' AND "BR Number(s)" = '6082 / 72605' | [
13828,
399,
4663,
1271,
318,
329,
262,
256,
568,
357,
1069,
12,
1671,
1398,
604,
3459,
4326,
604,
3459,
22515,
8,
2099,
326,
468,
257,
39084,
17,
1220,
7724,
32417,
11177,
1271,
30,
46506,
366,
45,
4663,
7913,
1,
16034,
3084,
62,
7410,
4304,
33411,
366,
6030,
1,
796,
705,
83,
568,
357,
1069,
12,
1671,
1398,
604,
3459,
4326,
604,
3459,
22515,
33047,
5357,
366,
11473,
7913,
7,
82,
16725,
796,
705,
1899,
6469,
1220,
7724,
32417,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
399,
4663,
1271,
318,
329,
262,
256,
568,
357,
1069,
12,
1671,
1398,
604,
3459,
4326,
604,
3459,
22515,
8,
2099,
326,
468,
257,
39084,
17,
1220,
7724,
32417,
11177,
1271,
30,
46506,
366,
45,
4663,
7913,
1,
16034,
3084,
62,
7410,
4304,
33411,
366,
6030,
1,
796,
705,
83,
568,
357,
1069,
12,
1671,
1398,
604,
3459,
4326,
604,
3459,
22515,
33047,
5357,
366,
11473,
7913,
7,
82,
16725,
796,
705,
1899,
6469,
1220,
7724,
32417,
6
] |
give me the number of patients whose marital status is divorced and lab test category is hematology? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab."CATEGORY" = "Hematology" | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
2248,
1332,
6536,
318,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
33569,
1581,
34,
1961,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1,
796,
366,
39,
368,
265,
1435,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
2248,
1332,
6536,
318,
339,
6759,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
33569,
1581,
34,
1961,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1,
796,
366,
39,
368,
265,
1435,
1
] |
What's the 1st leg result in the round where team #1 is Iraklis? | SELECT 1 AS st_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis" | [
2061,
338,
262,
352,
301,
1232,
1255,
287,
262,
2835,
810,
1074,
1303,
16,
318,
314,
17716,
27999,
30,
46506,
352,
7054,
336,
62,
1455,
16034,
3084,
62,
1129,
12952,
23,
1959,
62,
19,
33411,
1074,
834,
17618,
16,
796,
366,
40,
17716,
27999,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
352,
301,
1232,
1255,
287,
262,
2835,
810,
1074,
1303,
16,
318,
314,
17716,
27999,
30,
46506,
352,
7054,
336,
62,
1455,
16034,
3084,
62,
1129,
12952,
23,
1959,
62,
19,
33411,
1074,
834,
17618,
16,
796,
366,
40,
17716,
27999,
1
] |
High View Counts with no Images. Questions whos answers don't have any screenshots but have a very high view count | SELECT P.Id AS "post_link", P.Score, P.ViewCount FROM Posts AS P WHERE P.ClosedDate IS NULL AND P.PostTypeId = 1 AND P.AnswerCount >= 1 AND P.Id NOT IN (SELECT A.ParentId FROM Posts AS A WHERE A.PostTypeId = 2 AND A.Score >= 2 AND A.Body LIKE '%imgur%') ORDER BY P.ViewCount DESC | [
11922,
3582,
2764,
82,
351,
645,
5382,
13,
20396,
348,
418,
7429,
836,
470,
423,
597,
23322,
475,
423,
257,
845,
1029,
1570,
954,
46506,
350,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
350,
13,
26595,
11,
350,
13,
7680,
12332,
16034,
12043,
7054,
350,
33411,
350,
13,
2601,
1335,
10430,
3180,
15697,
5357,
350,
13,
6307,
6030,
7390,
796,
352,
5357,
350,
13,
33706,
12332,
18189,
352,
5357,
350,
13,
7390,
5626,
3268,
357,
46506,
317,
13,
24546,
7390,
16034,
12043,
7054,
317,
33411,
317,
13,
6307,
6030,
7390,
796,
362,
5357,
317,
13,
26595,
18189,
362,
5357,
317,
13,
25842,
34178,
705,
4,
19791,
4,
11537,
38678,
11050,
350,
13,
7680,
12332,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
11922,
3582,
2764,
82,
351,
645,
5382,
13,
20396,
348,
418,
7429,
836,
470,
423,
597,
23322,
475,
423,
257,
845,
1029,
1570,
954,
46506,
350,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
350,
13,
26595,
11,
350,
13,
7680,
12332,
16034,
12043,
7054,
350,
33411,
350,
13,
2601,
1335,
10430,
3180,
15697,
5357,
350,
13,
6307,
6030,
7390,
796,
352,
5357,
350,
13,
33706,
12332,
18189,
352,
5357,
350,
13,
7390,
5626,
3268,
357,
46506,
317,
13,
24546,
7390,
16034,
12043,
7054,
317,
33411,
317,
13,
6307,
6030,
7390,
796,
362,
5357,
317,
13,
26595,
18189,
362,
5357,
317,
13,
25842,
34178,
705,
4,
19791,
4,
11537,
38678,
11050,
350,
13,
7680,
12332,
22196,
34
] |
which was the only polling firm to show more than 50 percent in favor of same sex marriage in 2006 ? | SELECT "polling firm" FROM table_203_43 WHERE "favor" > 50 AND "month" = 2006 | [
4758,
373,
262,
691,
13985,
4081,
284,
905,
517,
621,
2026,
1411,
287,
2661,
286,
976,
1714,
4845,
287,
4793,
5633,
46506,
366,
30393,
278,
4081,
1,
16034,
3084,
62,
22416,
62,
3559,
33411,
366,
69,
5570,
1,
1875,
2026,
5357,
366,
8424,
1,
796,
4793
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
373,
262,
691,
13985,
4081,
284,
905,
517,
621,
2026,
1411,
287,
2661,
286,
976,
1714,
4845,
287,
4793,
5633,
46506,
366,
30393,
278,
4081,
1,
16034,
3084,
62,
22416,
62,
3559,
33411,
366,
69,
5570,
1,
1875,
2026,
5357,
366,
8424,
1,
796,
4793
] |
SELECT * From Badges LEFT JOIN Users on Badges.Id = Users.Id. | SELECT Id, TagName FROM Tags LIMIT 90 | [
46506,
1635,
3574,
7772,
3212,
12509,
9792,
32357,
1268,
18987,
319,
7772,
3212,
13,
7390,
796,
18987,
13,
7390,
13,
46506,
5121,
11,
17467,
5376,
16034,
44789,
27564,
2043,
4101
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
46506,
1635,
3574,
7772,
3212,
12509,
9792,
32357,
1268,
18987,
319,
7772,
3212,
13,
7390,
796,
18987,
13,
7390,
13,
46506,
5121,
11,
17467,
5376,
16034,
44789,
27564,
2043,
4101
] |
count the number of patients whose admission location is clinic referral/premature and drug code is myco500t? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND prescriptions.formulary_drug_cd = "MYCO500T" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
15760,
31413,
14,
31605,
1300,
290,
2563,
2438,
318,
616,
1073,
4059,
83,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
5097,
1268,
2149,
4526,
24302,
35296,
14,
47,
40726,
40086,
1,
5357,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
26708,
8220,
4059,
51,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
15760,
31413,
14,
31605,
1300,
290,
2563,
2438,
318,
616,
1073,
4059,
83,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
5097,
1268,
2149,
4526,
24302,
35296,
14,
47,
40726,
40086,
1,
5357,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
26708,
8220,
4059,
51,
1
] |
what are the three most frequently prescribed drugs? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 3 | [
10919,
389,
262,
1115,
749,
6777,
14798,
5010,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
14103,
44441,
11050,
14103,
13,
30349,
3672,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
19841,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
262,
1115,
749,
6777,
14798,
5010,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
14103,
44441,
11050,
14103,
13,
30349,
3672,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
19841,
513
] |
what is average age of patients whose insurance is government and days of hospital stay is 1? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.insurance = "Government" AND demographic.days_stay = "1" | [
10919,
318,
2811,
2479,
286,
3871,
3025,
5096,
318,
1230,
290,
1528,
286,
4436,
2652,
318,
352,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1,
5357,
16728,
13,
12545,
62,
31712,
796,
366,
16,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
2811,
2479,
286,
3871,
3025,
5096,
318,
1230,
290,
1528,
286,
4436,
2652,
318,
352,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1,
5357,
16728,
13,
12545,
62,
31712,
796,
366,
16,
1
] |
What is the production code for the episode written by Kat Likkel & Denise Downer? | SELECT production_code FROM table_2701851_5 WHERE written_by = "Kat Likkel & Denise Downer" | [
2061,
318,
262,
3227,
2438,
329,
262,
4471,
3194,
416,
8595,
406,
1134,
7750,
1222,
43596,
5588,
263,
30,
46506,
3227,
62,
8189,
16034,
3084,
62,
1983,
29159,
4349,
62,
20,
33411,
3194,
62,
1525,
796,
366,
25881,
406,
1134,
7750,
1222,
43596,
5588,
263,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3227,
2438,
329,
262,
4471,
3194,
416,
8595,
406,
1134,
7750,
1222,
43596,
5588,
263,
30,
46506,
3227,
62,
8189,
16034,
3084,
62,
1983,
29159,
4349,
62,
20,
33411,
3194,
62,
1525,
796,
366,
25881,
406,
1134,
7750,
1222,
43596,
5588,
263,
1
] |
Who wrote the episode 'Forever In A Day'? | SELECT "Written by" FROM table_1248 WHERE "Title" = 'Forever in a Day' | [
8241,
2630,
262,
4471,
705,
16351,
332,
554,
317,
3596,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1065,
2780,
33411,
366,
19160,
1,
796,
705,
16351,
332,
287,
257,
3596,
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
] | [
8241,
2630,
262,
4471,
705,
16351,
332,
554,
317,
3596,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1065,
2780,
33411,
366,
19160,
1,
796,
705,
16351,
332,
287,
257,
3596,
6
] |
who is the the mens doubles with mens singles being j rgen koch and womens singles being sabine ploner | SELECT "Mens doubles" FROM table_19794 WHERE "Mens singles" = 'Jürgen Koch' AND "Womens singles" = 'Sabine Ploner' | [
8727,
318,
262,
262,
285,
641,
21938,
351,
285,
641,
25287,
852,
474,
374,
5235,
479,
5374,
290,
1116,
641,
25287,
852,
17463,
500,
458,
14491,
46506,
366,
44,
641,
21938,
1,
16034,
3084,
62,
33581,
19,
33411,
366,
44,
641,
25287,
1,
796,
705,
41,
25151,
5235,
17009,
6,
5357,
366,
54,
296,
641,
25287,
1,
796,
705,
39646,
500,
1345,
14491,
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
] | [
8727,
318,
262,
262,
285,
641,
21938,
351,
285,
641,
25287,
852,
474,
374,
5235,
479,
5374,
290,
1116,
641,
25287,
852,
17463,
500,
458,
14491,
46506,
366,
44,
641,
21938,
1,
16034,
3084,
62,
33581,
19,
33411,
366,
44,
641,
25287,
1,
796,
705,
41,
25151,
5235,
17009,
6,
5357,
366,
54,
296,
641,
25287,
1,
796,
705,
39646,
500,
1345,
14491,
6
] |
Who was the runner-up when Mohamed Ali got third? | SELECT runner_up FROM table_16331144_1 WHERE third_place = "Mohamed Ali" | [
8241,
373,
262,
17490,
12,
929,
618,
27469,
12104,
1392,
2368,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
1433,
2091,
1157,
2598,
62,
16,
33411,
2368,
62,
5372,
796,
366,
38443,
2434,
12104,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
17490,
12,
929,
618,
27469,
12104,
1392,
2368,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
1433,
2091,
1157,
2598,
62,
16,
33411,
2368,
62,
5372,
796,
366,
38443,
2434,
12104,
1
] |
How many floors are there at 32 n. main street? | SELECT SUM(floors) FROM table_name_15 WHERE street_address = "32 n. main street" | [
2437,
867,
18570,
389,
612,
379,
3933,
299,
13,
1388,
4675,
30,
46506,
35683,
7,
48679,
669,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
4675,
62,
21975,
796,
366,
2624,
299,
13,
1388,
4675,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
18570,
389,
612,
379,
3933,
299,
13,
1388,
4675,
30,
46506,
35683,
7,
48679,
669,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
4675,
62,
21975,
796,
366,
2624,
299,
13,
1388,
4675,
1
] |
What was the result for the film life, above all? | SELECT result FROM table_13700749_1 WHERE film_title = "Life, Above All" | [
2061,
373,
262,
1255,
329,
262,
2646,
1204,
11,
2029,
477,
30,
46506,
1255,
16034,
3084,
62,
1485,
9879,
22,
2920,
62,
16,
33411,
2646,
62,
7839,
796,
366,
14662,
11,
23302,
1439,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
329,
262,
2646,
1204,
11,
2029,
477,
30,
46506,
1255,
16034,
3084,
62,
1485,
9879,
22,
2920,
62,
16,
33411,
2646,
62,
7839,
796,
366,
14662,
11,
23302,
1439,
1
] |
Which athlete had a rank of 6 and notes of sc/d? | SELECT "Athlete" FROM table_65157 WHERE "Notes" = 'sc/d' AND "Rank" = '6' | [
13828,
16076,
550,
257,
4279,
286,
718,
290,
4710,
286,
629,
14,
67,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
2996,
18458,
33411,
366,
16130,
1,
796,
705,
1416,
14,
67,
6,
5357,
366,
27520,
1,
796,
705,
21,
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
] | [
13828,
16076,
550,
257,
4279,
286,
718,
290,
4710,
286,
629,
14,
67,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
2996,
18458,
33411,
366,
16130,
1,
796,
705,
1416,
14,
67,
6,
5357,
366,
27520,
1,
796,
705,
21,
6
] |
how many patients are born before 2056 and administered with si drug route? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2056" AND prescriptions.route = "SL" | [
4919,
867,
3871,
389,
4642,
878,
1160,
3980,
290,
17169,
351,
33721,
2563,
6339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
3980,
1,
5357,
34092,
13,
38629,
796,
366,
8634,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
389,
4642,
878,
1160,
3980,
290,
17169,
351,
33721,
2563,
6339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
3980,
1,
5357,
34092,
13,
38629,
796,
366,
8634,
1
] |
What city did Yugoslavia play against Poland in? | SELECT city FROM table_name_58 WHERE opponent = "poland" | [
2061,
1748,
750,
37777,
711,
1028,
12873,
287,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3365,
33411,
6125,
796,
366,
16104,
392,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1748,
750,
37777,
711,
1028,
12873,
287,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3365,
33411,
6125,
796,
366,
16104,
392,
1
] |
Which constructor was present at the Redex Trophy race? | SELECT constructor FROM table_1140114_5 WHERE race_name = "RedeX Trophy" | [
13828,
23772,
373,
1944,
379,
262,
2297,
1069,
25640,
3234,
30,
46506,
23772,
16034,
3084,
62,
16562,
486,
1415,
62,
20,
33411,
3234,
62,
3672,
796,
366,
7738,
68,
55,
25640,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
23772,
373,
1944,
379,
262,
2297,
1069,
25640,
3234,
30,
46506,
23772,
16034,
3084,
62,
16562,
486,
1415,
62,
20,
33411,
3234,
62,
3672,
796,
366,
7738,
68,
55,
25640,
1
] |
tell me the time of patient 016-8658's hospital admission? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '016-8658' | [
33331,
502,
262,
640,
286,
5827,
5534,
21,
12,
23,
38431,
338,
4436,
13938,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
27037,
12,
23,
38431,
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
] | [
33331,
502,
262,
640,
286,
5827,
5534,
21,
12,
23,
38431,
338,
4436,
13938,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
27037,
12,
23,
38431,
6
] |
What is the sum of P desc with a P 2007 of 0,00 and a P, Ap 2008 less than 30,00, and a P CL 2008 that is more than 10,56? | SELECT SUM("P desc") FROM table_59239 WHERE "P 2007" = '0,00' AND "P Ap 2008" < '30,00' AND "P Cl 2008" > '10,56' | [
2061,
318,
262,
2160,
286,
350,
1715,
351,
257,
350,
4343,
286,
657,
11,
405,
290,
257,
350,
11,
5949,
3648,
1342,
621,
1542,
11,
405,
11,
290,
257,
350,
7852,
3648,
326,
318,
517,
621,
838,
11,
3980,
30,
46506,
35683,
7203,
47,
1715,
4943,
16034,
3084,
62,
3270,
23516,
33411,
366,
47,
4343,
1,
796,
705,
15,
11,
405,
6,
5357,
366,
47,
5949,
3648,
1,
1279,
705,
1270,
11,
405,
6,
5357,
366,
47,
1012,
3648,
1,
1875,
705,
940,
11,
3980,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
350,
1715,
351,
257,
350,
4343,
286,
657,
11,
405,
290,
257,
350,
11,
5949,
3648,
1342,
621,
1542,
11,
405,
11,
290,
257,
350,
7852,
3648,
326,
318,
517,
621,
838,
11,
3980,
30,
46506,
35683,
7203,
47,
1715,
4943,
16034,
3084,
62,
3270,
23516,
33411,
366,
47,
4343,
1,
796,
705,
15,
11,
405,
6,
5357,
366,
47,
5949,
3648,
1,
1279,
705,
1270,
11,
405,
6,
5357,
366,
47,
1012,
3648,
1,
1875,
705,
940,
11,
3980,
6
] |
The pink cytoplasm will have a nucleus of what color? | SELECT "Nucleus" FROM table_817 WHERE "Cytoplasm" = 'Pink' | [
464,
11398,
3075,
4852,
75,
8597,
481,
423,
257,
29984,
286,
644,
3124,
30,
46506,
366,
45,
14913,
385,
1,
16034,
3084,
62,
23,
1558,
33411,
366,
20418,
4852,
75,
8597,
1,
796,
705,
41912,
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
] | [
464,
11398,
3075,
4852,
75,
8597,
481,
423,
257,
29984,
286,
644,
3124,
30,
46506,
366,
45,
14913,
385,
1,
16034,
3084,
62,
23,
1558,
33411,
366,
20418,
4852,
75,
8597,
1,
796,
705,
41912,
6
] |
Give me a histogram for what are the memories and carriers of phones?, and could you rank by the total number from low to high? | SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY AVG(Memory_in_G) | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
9846,
290,
16651,
286,
9512,
21747,
290,
714,
345,
4279,
416,
262,
2472,
1271,
422,
1877,
284,
1029,
30,
46506,
30252,
11,
35224,
7,
30871,
62,
259,
62,
38,
8,
16034,
3072,
44441,
11050,
30252,
38678,
11050,
35224,
7,
30871,
62,
259,
62,
38,
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
] | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
9846,
290,
16651,
286,
9512,
21747,
290,
714,
345,
4279,
416,
262,
2472,
1271,
422,
1877,
284,
1029,
30,
46506,
30252,
11,
35224,
7,
30871,
62,
259,
62,
38,
8,
16034,
3072,
44441,
11050,
30252,
38678,
11050,
35224,
7,
30871,
62,
259,
62,
38,
8
] |
what is the number of patients whose insurance is private and lab test name is cholesterol, total? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Private" AND lab.label = "Cholesterol, Total" | [
10919,
318,
262,
1271,
286,
3871,
3025,
5096,
318,
2839,
290,
2248,
1332,
1438,
318,
18759,
11,
2472,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
1040,
3874,
796,
366,
29067,
1,
5357,
2248,
13,
18242,
796,
366,
1925,
16743,
11,
7472,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
5096,
318,
2839,
290,
2248,
1332,
1438,
318,
18759,
11,
2472,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
1040,
3874,
796,
366,
29067,
1,
5357,
2248,
13,
18242,
796,
366,
1925,
16743,
11,
7472,
1
] |
What is the name of the position of the person whose hometown is Queens, NY? | SELECT position FROM table_name_45 WHERE hometown = "queens, ny" | [
2061,
318,
262,
1438,
286,
262,
2292,
286,
262,
1048,
3025,
20994,
318,
14045,
11,
6645,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2231,
33411,
20994,
796,
366,
4188,
641,
11,
299,
88,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
2292,
286,
262,
1048,
3025,
20994,
318,
14045,
11,
6645,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2231,
33411,
20994,
796,
366,
4188,
641,
11,
299,
88,
1
] |
calculate the number of patients staying in the id 57 ward until 2100. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.wardid = 57 AND STRFTIME('%y', transfers.intime) <= '2100') | [
9948,
3129,
378,
262,
1271,
286,
3871,
10589,
287,
262,
4686,
7632,
15305,
1566,
38123,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
16395,
13,
18108,
76,
62,
312,
16034,
16395,
33411,
16395,
13,
904,
312,
796,
7632,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
16395,
13,
600,
524,
8,
19841,
705,
2481,
405,
11537
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
1271,
286,
3871,
10589,
287,
262,
4686,
7632,
15305,
1566,
38123,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
16395,
13,
18108,
76,
62,
312,
16034,
16395,
33411,
16395,
13,
904,
312,
796,
7632,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
16395,
13,
600,
524,
8,
19841,
705,
2481,
405,
11537
] |
What is the result of game 5 with Los Angeles as the home team? | SELECT "Result" FROM table_6552 WHERE "Home Team" = 'los angeles' AND "Game" = 'game 5' | [
2061,
318,
262,
1255,
286,
983,
642,
351,
5401,
5652,
355,
262,
1363,
1074,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
35916,
17,
33411,
366,
16060,
4816,
1,
796,
705,
33280,
18304,
274,
6,
5357,
366,
8777,
1,
796,
705,
6057,
642,
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
] | [
2061,
318,
262,
1255,
286,
983,
642,
351,
5401,
5652,
355,
262,
1363,
1074,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
35916,
17,
33411,
366,
16060,
4816,
1,
796,
705,
33280,
18304,
274,
6,
5357,
366,
8777,
1,
796,
705,
6057,
642,
6
] |
How many times was the viewer target group 0.63? | SELECT COUNT(market_share__target_group_14_49_) FROM table_2639433_4 WHERE viewers__in_millions_target_group_14_49_ = "0.63" | [
2437,
867,
1661,
373,
262,
19091,
2496,
1448,
657,
13,
5066,
30,
46506,
327,
28270,
7,
10728,
62,
20077,
834,
16793,
62,
8094,
62,
1415,
62,
2920,
62,
8,
16034,
3084,
62,
2075,
34626,
2091,
62,
19,
33411,
10209,
834,
259,
62,
17805,
507,
62,
16793,
62,
8094,
62,
1415,
62,
2920,
62,
796,
366,
15,
13,
5066,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1661,
373,
262,
19091,
2496,
1448,
657,
13,
5066,
30,
46506,
327,
28270,
7,
10728,
62,
20077,
834,
16793,
62,
8094,
62,
1415,
62,
2920,
62,
8,
16034,
3084,
62,
2075,
34626,
2091,
62,
19,
33411,
10209,
834,
259,
62,
17805,
507,
62,
16793,
62,
8094,
62,
1415,
62,
2920,
62,
796,
366,
15,
13,
5066,
1
] |
What is the rank for China? | SELECT SUM("Rank") FROM table_64369 WHERE "Country" = 'china' | [
2061,
318,
262,
4279,
329,
2807,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2414,
30803,
33411,
366,
33921,
1,
796,
705,
354,
1437,
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
] | [
2061,
318,
262,
4279,
329,
2807,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2414,
30803,
33411,
366,
33921,
1,
796,
705,
354,
1437,
6
] |
When were the members tenured in the Field school? | SELECT "Tenure" FROM table_30252 WHERE "School" = 'Field' | [
2215,
547,
262,
1866,
3478,
1522,
287,
262,
7663,
1524,
30,
46506,
366,
24893,
495,
1,
16034,
3084,
62,
1270,
22800,
33411,
366,
26130,
1,
796,
705,
15878,
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
] | [
2215,
547,
262,
1866,
3478,
1522,
287,
262,
7663,
1524,
30,
46506,
366,
24893,
495,
1,
16034,
3084,
62,
1270,
22800,
33411,
366,
26130,
1,
796,
705,
15878,
6
] |
Which skip (club) had 31 PA and 9 blank ends? | SELECT skip__club_ FROM table_29546030_2 WHERE pa = 31 AND blank_ends = 9 | [
13828,
14267,
357,
18664,
8,
550,
3261,
8147,
290,
860,
9178,
5645,
30,
46506,
14267,
834,
18664,
62,
16034,
3084,
62,
1959,
4051,
1899,
1270,
62,
17,
33411,
14187,
796,
3261,
5357,
9178,
62,
2412,
796,
860
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
14267,
357,
18664,
8,
550,
3261,
8147,
290,
860,
9178,
5645,
30,
46506,
14267,
834,
18664,
62,
16034,
3084,
62,
1959,
4051,
1899,
1270,
62,
17,
33411,
14187,
796,
3261,
5357,
9178,
62,
2412,
796,
860
] |
What subtitles have 15 as the classification? | SELECT subtitles FROM table_name_85 WHERE classifaction = "15" | [
2061,
44344,
423,
1315,
355,
262,
17923,
30,
46506,
44344,
16034,
3084,
62,
3672,
62,
5332,
33411,
1398,
361,
2673,
796,
366,
1314,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
44344,
423,
1315,
355,
262,
17923,
30,
46506,
44344,
16034,
3084,
62,
3672,
62,
5332,
33411,
1398,
361,
2673,
796,
366,
1314,
1
] |
How many bookings did each customer make? Show the customer id as the Y-axis and the first name as the X-axis in a bar chart, and could you sort by the X-axis from low to high? | SELECT T1.first_name, T1.customer_id FROM Customers AS T1 JOIN Bookings AS T2 ON T1.customer_id = T2.customer_id ORDER BY T1.first_name | [
2437,
867,
1492,
654,
750,
1123,
6491,
787,
30,
5438,
262,
6491,
4686,
355,
262,
575,
12,
22704,
290,
262,
717,
1438,
355,
262,
1395,
12,
22704,
287,
257,
2318,
8262,
11,
290,
714,
345,
3297,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1029,
30,
46506,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
23144,
263,
62,
312,
16034,
36707,
7054,
309,
16,
32357,
1268,
4897,
654,
7054,
309,
17,
6177,
309,
16,
13,
23144,
263,
62,
312,
796,
309,
17,
13,
23144,
263,
62,
312,
38678,
11050,
309,
16,
13,
11085,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1492,
654,
750,
1123,
6491,
787,
30,
5438,
262,
6491,
4686,
355,
262,
575,
12,
22704,
290,
262,
717,
1438,
355,
262,
1395,
12,
22704,
287,
257,
2318,
8262,
11,
290,
714,
345,
3297,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1029,
30,
46506,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
23144,
263,
62,
312,
16034,
36707,
7054,
309,
16,
32357,
1268,
4897,
654,
7054,
309,
17,
6177,
309,
16,
13,
23144,
263,
62,
312,
796,
309,
17,
13,
23144,
263,
62,
312,
38678,
11050,
309,
16,
13,
11085,
62,
3672
] |
renal insufficiency ( serum creatinine > 2 mg / dl ) | SELECT * FROM table_train_118 WHERE renal_disease = 1 OR serum_creatinine > 2 | [
918,
282,
1035,
1648,
19777,
357,
20502,
1827,
259,
500,
1875,
362,
10527,
1220,
288,
75,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
16817,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
20502,
62,
20123,
259,
500,
1875,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
918,
282,
1035,
1648,
19777,
357,
20502,
1827,
259,
500,
1875,
362,
10527,
1220,
288,
75,
1267,
46506,
1635,
16034,
3084,
62,
27432,
62,
16817,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
20502,
62,
20123,
259,
500,
1875,
362
] |
When was originally aired the episode with an audience of 1.57 million us viewers? | SELECT original_air_date FROM table_28081876_6 WHERE us_viewers__millions_ = "1.57" | [
2215,
373,
6198,
18530,
262,
4471,
351,
281,
5386,
286,
352,
13,
3553,
1510,
514,
10209,
30,
46506,
2656,
62,
958,
62,
4475,
16034,
3084,
62,
21033,
23,
1507,
4304,
62,
21,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
16,
13,
3553,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
6198,
18530,
262,
4471,
351,
281,
5386,
286,
352,
13,
3553,
1510,
514,
10209,
30,
46506,
2656,
62,
958,
62,
4475,
16034,
3084,
62,
21033,
23,
1507,
4304,
62,
21,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
16,
13,
3553,
1
] |
What venue did he play in before 2008 and finished 14th (q)? | SELECT "Venue" FROM table_70921 WHERE "Year" < '2008' AND "Position" = '14th (q)' | [
2061,
14359,
750,
339,
711,
287,
878,
3648,
290,
5201,
1478,
400,
357,
80,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
31495,
2481,
33411,
366,
17688,
1,
1279,
705,
11528,
6,
5357,
366,
26545,
1,
796,
705,
1415,
400,
357,
80,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
14359,
750,
339,
711,
287,
878,
3648,
290,
5201,
1478,
400,
357,
80,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
31495,
2481,
33411,
366,
17688,
1,
1279,
705,
11528,
6,
5357,
366,
26545,
1,
796,
705,
1415,
400,
357,
80,
33047
] |
what's the local title with seasons and winners being series 1, 2006: lucy benjamin | SELECT "Local title" FROM table_18992 WHERE "Seasons and winners" = 'Series 1, 2006: Lucy Benjamin' | [
10919,
338,
262,
1957,
3670,
351,
7028,
290,
14591,
852,
2168,
352,
11,
4793,
25,
300,
84,
948,
1888,
13337,
46506,
366,
14565,
3670,
1,
16034,
3084,
62,
1507,
41561,
33411,
366,
4653,
2812,
290,
14591,
1,
796,
705,
27996,
352,
11,
4793,
25,
22162,
14533,
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
] | [
10919,
338,
262,
1957,
3670,
351,
7028,
290,
14591,
852,
2168,
352,
11,
4793,
25,
300,
84,
948,
1888,
13337,
46506,
366,
14565,
3670,
1,
16034,
3084,
62,
1507,
41561,
33411,
366,
4653,
2812,
290,
14591,
1,
796,
705,
27996,
352,
11,
4793,
25,
22162,
14533,
6
] |
When the total was 290 what was the To par? | SELECT to_par FROM table_name_59 WHERE total = 290 | [
2215,
262,
2472,
373,
26481,
644,
373,
262,
1675,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
3270,
33411,
2472,
796,
26481
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
2472,
373,
26481,
644,
373,
262,
1675,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
3270,
33411,
2472,
796,
26481
] |
count the number of times that patient 005-26011 has received a dialysis access surgery procedure until 2104. | SELECT COUNT(*) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-26011')) AND treatment.treatmentname = 'dialysis access surgery' AND STRFTIME('%y', treatment.treatmenttime) <= '2104' | [
9127,
262,
1271,
286,
1661,
326,
5827,
3571,
20,
12,
2075,
28555,
468,
2722,
257,
5980,
3097,
1895,
8185,
8771,
1566,
362,
13464,
13,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22544,
12,
2075,
28555,
6,
4008,
5357,
3513,
13,
42487,
3672,
796,
705,
38969,
3097,
1895,
8185,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
3513,
13,
42487,
2435,
8,
19841,
705,
17,
13464,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
1661,
326,
5827,
3571,
20,
12,
2075,
28555,
468,
2722,
257,
5980,
3097,
1895,
8185,
8771,
1566,
362,
13464,
13,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22544,
12,
2075,
28555,
6,
4008,
5357,
3513,
13,
42487,
3672,
796,
705,
38969,
3097,
1895,
8185,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
3513,
13,
42487,
2435,
8,
19841,
705,
17,
13464,
6
] |
What is the episode on Fuji TV titled Absolute Boyfriend? | SELECT MIN("Episodes") FROM table_66112 WHERE "TV Station" = 'fuji tv' AND "Romaji Title" = 'absolute boyfriend' | [
2061,
318,
262,
4471,
319,
43694,
3195,
11946,
36532,
6387,
6726,
30,
46506,
20625,
7203,
13807,
8052,
4943,
16034,
3084,
62,
2791,
14686,
33411,
366,
6849,
9327,
1,
796,
705,
20942,
7285,
31557,
6,
5357,
366,
22834,
26436,
11851,
1,
796,
705,
48546,
13850,
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
] | [
2061,
318,
262,
4471,
319,
43694,
3195,
11946,
36532,
6387,
6726,
30,
46506,
20625,
7203,
13807,
8052,
4943,
16034,
3084,
62,
2791,
14686,
33411,
366,
6849,
9327,
1,
796,
705,
20942,
7285,
31557,
6,
5357,
366,
22834,
26436,
11851,
1,
796,
705,
48546,
13850,
6
] |
What is the highest latitude when there are more than 0.518 square miles of water, a longitude less than -99.830606, and a population of 18? | SELECT MAX("Latitude") FROM table_64884 WHERE "Water (sqmi)" > '0.518' AND "Longitude" < '-99.830606' AND "Pop. (2010)" = '18' | [
2061,
318,
262,
4511,
32477,
618,
612,
389,
517,
621,
657,
13,
44085,
6616,
4608,
286,
1660,
11,
257,
890,
3984,
1342,
621,
532,
2079,
13,
48341,
33206,
11,
290,
257,
3265,
286,
1248,
30,
46506,
25882,
7203,
24220,
3984,
4943,
16034,
3084,
62,
2414,
40353,
33411,
366,
19184,
357,
31166,
11632,
16725,
1875,
705,
15,
13,
44085,
6,
5357,
366,
14617,
3984,
1,
1279,
705,
12,
2079,
13,
48341,
33206,
6,
5357,
366,
16979,
13,
357,
10333,
16725,
796,
705,
1507,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
32477,
618,
612,
389,
517,
621,
657,
13,
44085,
6616,
4608,
286,
1660,
11,
257,
890,
3984,
1342,
621,
532,
2079,
13,
48341,
33206,
11,
290,
257,
3265,
286,
1248,
30,
46506,
25882,
7203,
24220,
3984,
4943,
16034,
3084,
62,
2414,
40353,
33411,
366,
19184,
357,
31166,
11632,
16725,
1875,
705,
15,
13,
44085,
6,
5357,
366,
14617,
3984,
1,
1279,
705,
12,
2079,
13,
48341,
33206,
6,
5357,
366,
16979,
13,
357,
10333,
16725,
796,
705,
1507,
6
] |
What is the Result with a Date with 22 january 2008? | SELECT "Result" FROM table_11128 WHERE "Date" = '22 january 2008' | [
2061,
318,
262,
25414,
351,
257,
7536,
351,
2534,
42897,
2838,
3648,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1157,
12762,
33411,
366,
10430,
1,
796,
705,
1828,
42897,
2838,
3648,
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
] | [
2061,
318,
262,
25414,
351,
257,
7536,
351,
2534,
42897,
2838,
3648,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1157,
12762,
33411,
366,
10430,
1,
796,
705,
1828,
42897,
2838,
3648,
6
] |
Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities? | SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.feb > T2.jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city | [
23318,
502,
257,
1351,
286,
4736,
3025,
5951,
287,
3158,
318,
2440,
621,
326,
287,
7653,
393,
4736,
326,
547,
1752,
2583,
4736,
30,
46506,
309,
16,
13,
19205,
16034,
1748,
7054,
309,
16,
32357,
1268,
5951,
7054,
309,
17,
6177,
309,
16,
13,
19205,
62,
312,
796,
309,
17,
13,
19205,
62,
312,
33411,
309,
17,
13,
69,
1765,
1875,
309,
17,
13,
29741,
4725,
2849,
33493,
309,
18,
13,
19205,
16034,
1748,
7054,
309,
18,
32357,
1268,
13662,
62,
19205,
7054,
309,
19,
6177,
309,
18,
13,
19205,
62,
312,
796,
309,
19,
13,
4774,
62,
19205
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
257,
1351,
286,
4736,
3025,
5951,
287,
3158,
318,
2440,
621,
326,
287,
7653,
393,
4736,
326,
547,
1752,
2583,
4736,
30,
46506,
309,
16,
13,
19205,
16034,
1748,
7054,
309,
16,
32357,
1268,
5951,
7054,
309,
17,
6177,
309,
16,
13,
19205,
62,
312,
796,
309,
17,
13,
19205,
62,
312,
33411,
309,
17,
13,
69,
1765,
1875,
309,
17,
13,
29741,
4725,
2849,
33493,
309,
18,
13,
19205,
16034,
1748,
7054,
309,
18,
32357,
1268,
13662,
62,
19205,
7054,
309,
19,
6177,
309,
18,
13,
19205,
62,
312,
796,
309,
19,
13,
4774,
62,
19205
] |
What is the Nationality of the Aracataca Ship? | SELECT "Nationality" FROM table_49747 WHERE "Ship" = 'aracataca' | [
2061,
318,
262,
2351,
414,
286,
262,
943,
330,
265,
22260,
16656,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
38073,
2857,
33411,
366,
25586,
1,
796,
705,
283,
330,
265,
22260,
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
] | [
2061,
318,
262,
2351,
414,
286,
262,
943,
330,
265,
22260,
16656,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
38073,
2857,
33411,
366,
25586,
1,
796,
705,
283,
330,
265,
22260,
6
] |
Record Count from all SEDE tables. | SELECT COUNT(*) FROM Badges | [
23739,
2764,
422,
477,
311,
1961,
36,
8893,
13,
46506,
327,
28270,
7,
28104,
16034,
7772,
3212
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23739,
2764,
422,
477,
311,
1961,
36,
8893,
13,
46506,
327,
28270,
7,
28104,
16034,
7772,
3212
] |
What is the sitalsasthi carnival with hirakud as sambalpuri saree? | SELECT sitalsasthi_carnival FROM table_name_92 WHERE sambalpuri_saree = "hirakud" | [
2061,
318,
262,
1650,
874,
292,
400,
72,
18466,
2473,
351,
289,
343,
461,
463,
355,
264,
4131,
282,
79,
9900,
473,
631,
30,
46506,
1650,
874,
292,
400,
72,
62,
66,
1501,
2473,
16034,
3084,
62,
3672,
62,
5892,
33411,
264,
4131,
282,
79,
9900,
62,
82,
533,
68,
796,
366,
71,
343,
461,
463,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1650,
874,
292,
400,
72,
18466,
2473,
351,
289,
343,
461,
463,
355,
264,
4131,
282,
79,
9900,
473,
631,
30,
46506,
1650,
874,
292,
400,
72,
62,
66,
1501,
2473,
16034,
3084,
62,
3672,
62,
5892,
33411,
264,
4131,
282,
79,
9900,
62,
82,
533,
68,
796,
366,
71,
343,
461,
463,
1
] |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the average of code , and group by attribute name, I want to display Y-axis from low to high order. | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
314,
765,
284,
3359,
575,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
13,
10669,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
309,
17,
13,
5376,
38678,
11050,
309,
16,
13,
10669
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
314,
765,
284,
3359,
575,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
13,
10669,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
309,
17,
13,
5376,
38678,
11050,
309,
16,
13,
10669
] |
Which of my answers received more votes than the accepted answer?. | WITH Utable AS (SELECT Id AS AnswerId, ParentId AS QuestionId, Score AS Uscore FROM Posts WHERE OwnerUserId = 7128934 AND Posts.PostTypeId = 2 AND Posts.ParentId IN (SELECT Posts.Id FROM Posts WHERE NOT Posts.AcceptedAnswerId IS NULL)), OTable AS (SELECT Score AS Oscore, ParentId AS Oqid, Id AS Oaid FROM Posts WHERE Posts.ParentId IN (SELECT QuestionId FROM UTable) AND Posts.Id IN (SELECT DISTINCT AcceptedAnswerId FROM Posts)) SELECT DISTINCT Id AS "post_link", OTable.OScore AS Accepted_Score, Utable.Uscore AS MyScore FROM Posts INNER JOIN Utable ON Utable.QuestionId = Posts.Id INNER JOIN Otable ON Otable.Oqid = Posts.Id WHERE AnswerId != Oaid AND Uscore > Oscore | [
13828,
286,
616,
7429,
2722,
517,
5690,
621,
262,
6292,
3280,
30,
13,
54,
10554,
7273,
540,
7054,
357,
46506,
5121,
7054,
23998,
7390,
11,
16774,
7390,
7054,
18233,
7390,
11,
15178,
7054,
471,
26675,
16034,
12043,
33411,
23853,
12982,
7390,
796,
767,
1065,
4531,
2682,
5357,
12043,
13,
6307,
6030,
7390,
796,
362,
5357,
12043,
13,
24546,
7390,
3268,
357,
46506,
12043,
13,
7390,
16034,
12043,
33411,
5626,
12043,
13,
38855,
276,
33706,
7390,
3180,
15697,
36911,
440,
10962,
7054,
357,
46506,
15178,
7054,
440,
26675,
11,
16774,
7390,
7054,
440,
80,
312,
11,
5121,
7054,
440,
1698,
16034,
12043,
33411,
12043,
13,
24546,
7390,
3268,
357,
46506,
18233,
7390,
16034,
471,
10962,
8,
5357,
12043,
13,
7390,
3268,
357,
46506,
360,
8808,
1268,
4177,
21699,
276,
33706,
7390,
16034,
12043,
4008,
33493,
360,
8808,
1268,
4177,
5121,
7054,
366,
7353,
62,
8726,
1600,
440,
10962,
13,
2640,
7295,
7054,
21699,
276,
62,
26595,
11,
7273,
540,
13,
52,
26675,
7054,
2011,
26595,
16034,
12043,
3268,
21479,
32357,
1268,
7273,
540,
6177,
7273,
540,
13,
24361,
7390,
796,
12043,
13,
7390,
3268,
21479,
32357,
1268,
440,
11487,
6177,
440,
11487,
13,
46,
80,
312,
796,
12043,
13,
7390,
33411,
23998,
7390,
14512,
440,
1698,
5357,
471,
26675,
1875,
440,
26675
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
286,
616,
7429,
2722,
517,
5690,
621,
262,
6292,
3280,
30,
13,
54,
10554,
7273,
540,
7054,
357,
46506,
5121,
7054,
23998,
7390,
11,
16774,
7390,
7054,
18233,
7390,
11,
15178,
7054,
471,
26675,
16034,
12043,
33411,
23853,
12982,
7390,
796,
767,
1065,
4531,
2682,
5357,
12043,
13,
6307,
6030,
7390,
796,
362,
5357,
12043,
13,
24546,
7390,
3268,
357,
46506,
12043,
13,
7390,
16034,
12043,
33411,
5626,
12043,
13,
38855,
276,
33706,
7390,
3180,
15697,
36911,
440,
10962,
7054,
357,
46506,
15178,
7054,
440,
26675,
11,
16774,
7390,
7054,
440,
80,
312,
11,
5121,
7054,
440,
1698,
16034,
12043,
33411,
12043,
13,
24546,
7390,
3268,
357,
46506,
18233,
7390,
16034,
471,
10962,
8,
5357,
12043,
13,
7390,
3268,
357,
46506,
360,
8808,
1268,
4177,
21699,
276,
33706,
7390,
16034,
12043,
4008,
33493,
360,
8808,
1268,
4177,
5121,
7054,
366,
7353,
62,
8726,
1600,
440,
10962,
13,
2640,
7295,
7054,
21699,
276,
62,
26595,
11,
7273,
540,
13,
52,
26675,
7054,
2011,
26595,
16034,
12043,
3268,
21479,
32357,
1268,
7273,
540,
6177,
7273,
540,
13,
24361,
7390,
796,
12043,
13,
7390,
3268,
21479,
32357,
1268,
440,
11487,
6177,
440,
11487,
13,
46,
80,
312,
796,
12043,
13,
7390,
33411,
23998,
7390,
14512,
440,
1698,
5357,
471,
26675,
1875,
440,
26675
] |
What year did he start at 13? | SELECT year FROM table_name_6 WHERE start = "13" | [
2061,
614,
750,
339,
923,
379,
1511,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
21,
33411,
923,
796,
366,
1485,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
750,
339,
923,
379,
1511,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
21,
33411,
923,
796,
366,
1485,
1
] |
Name the date for series 2-2 | SELECT date FROM table_17622423_12 WHERE series = "2-2" | [
5376,
262,
3128,
329,
2168,
362,
12,
17,
46506,
3128,
16034,
3084,
62,
1558,
5237,
1731,
1954,
62,
1065,
33411,
2168,
796,
366,
17,
12,
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
] | [
5376,
262,
3128,
329,
2168,
362,
12,
17,
46506,
3128,
16034,
3084,
62,
1558,
5237,
1731,
1954,
62,
1065,
33411,
2168,
796,
366,
17,
12,
17,
1
] |
What package offers Fox Sports HD? | SELECT package_option FROM table_15887683_3 WHERE television_service = "FOX Sports HD" | [
2061,
5301,
4394,
5426,
7092,
5572,
30,
46506,
5301,
62,
18076,
16034,
3084,
62,
1314,
3459,
30610,
18,
62,
18,
33411,
5581,
62,
15271,
796,
366,
47853,
7092,
5572,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5301,
4394,
5426,
7092,
5572,
30,
46506,
5301,
62,
18076,
16034,
3084,
62,
1314,
3459,
30610,
18,
62,
18,
33411,
5581,
62,
15271,
796,
366,
47853,
7092,
5572,
1
] |
Uber Employees on Stack Overflow by reputation. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Users.AboutMe) LIKE LOWER('% Uber %') ORDER BY Reputation DESC | [
39018,
30260,
319,
23881,
3827,
11125,
416,
8507,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406,
36048,
7,
14490,
13,
8585,
5308,
8,
34178,
406,
36048,
10786,
4,
12024,
4064,
11537,
38678,
11050,
1432,
7094,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
39018,
30260,
319,
23881,
3827,
11125,
416,
8507,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406,
36048,
7,
14490,
13,
8585,
5308,
8,
34178,
406,
36048,
10786,
4,
12024,
4064,
11537,
38678,
11050,
1432,
7094,
22196,
34
] |
What is the Cardinalatial order and title that Pedro Mart nez de Luna y Gotor elevated? | SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor" | [
2061,
318,
262,
25564,
34961,
1502,
290,
3670,
326,
28855,
3981,
497,
89,
390,
23694,
331,
11853,
273,
15321,
30,
46506,
38691,
34961,
62,
2875,
62,
392,
62,
7839,
16034,
3084,
62,
3672,
62,
5705,
33411,
43191,
796,
366,
9124,
305,
11277,
8836,
710,
89,
390,
300,
9613,
331,
1392,
273,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
25564,
34961,
1502,
290,
3670,
326,
28855,
3981,
497,
89,
390,
23694,
331,
11853,
273,
15321,
30,
46506,
38691,
34961,
62,
2875,
62,
392,
62,
7839,
16034,
3084,
62,
3672,
62,
5705,
33411,
43191,
796,
366,
9124,
305,
11277,
8836,
710,
89,
390,
300,
9613,
331,
1392,
273,
1
] |
provide me the number of office admitted patients who have procedure icd9 code 3891. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND procedures.icd9_code = "3891" | [
15234,
485,
502,
262,
1271,
286,
2607,
6848,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
4353,
6420,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
5097,
1268,
2149,
4526,
24302,
35296,
14,
47,
40726,
40086,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
2548,
6420,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
502,
262,
1271,
286,
2607,
6848,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
4353,
6420,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
5097,
1268,
2149,
4526,
24302,
35296,
14,
47,
40726,
40086,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
2548,
6420,
1
] |
What was the score for the game played in Alexander Memorial Coliseum when the record was 0-1? | SELECT "Score" FROM table_64543 WHERE "Location/Attendance" = 'alexander memorial coliseum' AND "Record" = '0-1' | [
2061,
373,
262,
4776,
329,
262,
983,
2826,
287,
10009,
14861,
40846,
618,
262,
1700,
373,
657,
12,
16,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
49259,
3559,
33411,
366,
14749,
14,
8086,
437,
590,
1,
796,
705,
1000,
87,
4066,
17357,
951,
38277,
6,
5357,
366,
23739,
1,
796,
705,
15,
12,
16,
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
] | [
2061,
373,
262,
4776,
329,
262,
983,
2826,
287,
10009,
14861,
40846,
618,
262,
1700,
373,
657,
12,
16,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
49259,
3559,
33411,
366,
14749,
14,
8086,
437,
590,
1,
796,
705,
1000,
87,
4066,
17357,
951,
38277,
6,
5357,
366,
23739,
1,
796,
705,
15,
12,
16,
6
] |
Accepted answers with a negative score. | SELECT Posts.Id AS "post_link", Posts.Score, QPost.AnswerCount FROM Posts INNER JOIN Posts AS QPost ON QPost.Id = Posts.ParentId INNER JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId WHERE PostTypes.Name = 'Answer' AND QPost.DeletionDate IS NULL AND QPost.AcceptedAnswerId = Posts.Id AND Posts.Score < 0 AND QPost.AnswerCount > 1 | [
38855,
276,
7429,
351,
257,
4633,
4776,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
26595,
11,
1195,
6307,
13,
33706,
12332,
16034,
12043,
3268,
21479,
32357,
1268,
12043,
7054,
1195,
6307,
6177,
1195,
6307,
13,
7390,
796,
12043,
13,
24546,
7390,
3268,
21479,
32357,
1268,
2947,
31431,
6177,
2947,
31431,
13,
7390,
796,
12043,
13,
6307,
6030,
7390,
33411,
2947,
31431,
13,
5376,
796,
705,
33706,
6,
5357,
1195,
6307,
13,
5005,
1616,
295,
10430,
3180,
15697,
5357,
1195,
6307,
13,
38855,
276,
33706,
7390,
796,
12043,
13,
7390,
5357,
12043,
13,
26595,
1279,
657,
5357,
1195,
6307,
13,
33706,
12332,
1875,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
38855,
276,
7429,
351,
257,
4633,
4776,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
26595,
11,
1195,
6307,
13,
33706,
12332,
16034,
12043,
3268,
21479,
32357,
1268,
12043,
7054,
1195,
6307,
6177,
1195,
6307,
13,
7390,
796,
12043,
13,
24546,
7390,
3268,
21479,
32357,
1268,
2947,
31431,
6177,
2947,
31431,
13,
7390,
796,
12043,
13,
6307,
6030,
7390,
33411,
2947,
31431,
13,
5376,
796,
705,
33706,
6,
5357,
1195,
6307,
13,
5005,
1616,
295,
10430,
3180,
15697,
5357,
1195,
6307,
13,
38855,
276,
33706,
7390,
796,
12043,
13,
7390,
5357,
12043,
13,
26595,
1279,
657,
5357,
1195,
6307,
13,
33706,
12332,
1875,
352
] |
calculate the total number of patients diagnosed with obstructive chronic bronchitis with acute bronchitis | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Obstructive chronic bronchitis with acute bronchitis" | [
9948,
3129,
378,
262,
2472,
1271,
286,
3871,
14641,
351,
26520,
425,
10726,
18443,
354,
11815,
351,
14352,
18443,
354,
11815,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
40567,
13,
6511,
62,
7839,
796,
366,
5944,
7249,
425,
10726,
18443,
354,
11815,
351,
14352,
18443,
354,
11815,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
2472,
1271,
286,
3871,
14641,
351,
26520,
425,
10726,
18443,
354,
11815,
351,
14352,
18443,
354,
11815,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
40567,
13,
6511,
62,
7839,
796,
366,
5944,
7249,
425,
10726,
18443,
354,
11815,
351,
14352,
18443,
354,
11815,
1
] |
how many patients have drug code meto25? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "METO25" | [
4919,
867,
3871,
423,
2563,
2438,
1138,
78,
1495,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
47123,
46,
1495,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
423,
2563,
2438,
1138,
78,
1495,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
47123,
46,
1495,
1
] |
what driver was the only one to score 8 points while driving a mitsubishi ? | SELECT "driver" FROM table_203_399 WHERE "points" = 8 AND "car" = 'mitsubishi lancer evo ix' | [
10919,
4639,
373,
262,
691,
530,
284,
4776,
807,
2173,
981,
5059,
257,
285,
896,
549,
21644,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
22416,
62,
28771,
33411,
366,
13033,
1,
796,
807,
5357,
366,
7718,
1,
796,
705,
24883,
549,
21644,
300,
8250,
819,
78,
220,
844,
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
] | [
10919,
4639,
373,
262,
691,
530,
284,
4776,
807,
2173,
981,
5059,
257,
285,
896,
549,
21644,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
22416,
62,
28771,
33411,
366,
13033,
1,
796,
807,
5357,
366,
7718,
1,
796,
705,
24883,
549,
21644,
300,
8250,
819,
78,
220,
844,
6
] |
Which upper level classes do n't require 521 ? | SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite, program_course WHERE NOT COURSE_1.course_id IN (SELECT course_prerequisite.pre_course_id FROM course AS COURSE_0, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.course_id) AND COURSE_1.department = 'EECS' AND COURSE_1.number = 521 AND PROGRAM_COURSE_0.category LIKE '%ULCS%' AND PROGRAM_COURSE_0.course_id = COURSE_0.course_id | [
13828,
6727,
1241,
6097,
466,
299,
470,
2421,
642,
2481,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
7054,
37384,
5188,
62,
16,
11,
1781,
62,
3866,
27614,
11,
1430,
62,
17319,
33411,
5626,
37384,
5188,
62,
16,
13,
17319,
62,
312,
3268,
357,
46506,
1781,
62,
3866,
27614,
13,
3866,
62,
17319,
62,
312,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
62,
3866,
27614,
33411,
37384,
5188,
62,
15,
13,
17319,
62,
312,
796,
1781,
62,
3866,
27614,
13,
17319,
62,
312,
8,
5357,
37384,
5188,
62,
16,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357,
37384,
5188,
62,
16,
13,
17618,
796,
642,
2481,
5357,
46805,
62,
34,
11698,
5188,
62,
15,
13,
22872,
34178,
705,
4,
52,
29814,
4,
6,
5357,
46805,
62,
34,
11698,
5188,
62,
15,
13,
17319,
62,
312,
796,
37384,
5188,
62,
15,
13,
17319,
62,
312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6727,
1241,
6097,
466,
299,
470,
2421,
642,
2481,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
7054,
37384,
5188,
62,
16,
11,
1781,
62,
3866,
27614,
11,
1430,
62,
17319,
33411,
5626,
37384,
5188,
62,
16,
13,
17319,
62,
312,
3268,
357,
46506,
1781,
62,
3866,
27614,
13,
3866,
62,
17319,
62,
312,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
62,
3866,
27614,
33411,
37384,
5188,
62,
15,
13,
17319,
62,
312,
796,
1781,
62,
3866,
27614,
13,
17319,
62,
312,
8,
5357,
37384,
5188,
62,
16,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357,
37384,
5188,
62,
16,
13,
17618,
796,
642,
2481,
5357,
46805,
62,
34,
11698,
5188,
62,
15,
13,
22872,
34178,
705,
4,
52,
29814,
4,
6,
5357,
46805,
62,
34,
11698,
5188,
62,
15,
13,
17319,
62,
312,
796,
37384,
5188,
62,
15,
13,
17319,
62,
312
] |
Show the booking status code and the corresponding number of bookings. Show bar chart. | SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code | [
15307,
262,
25452,
3722,
2438,
290,
262,
11188,
1271,
286,
1492,
654,
13,
5438,
2318,
8262,
13,
46506,
25452,
62,
13376,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
5949,
1823,
62,
10482,
654,
44441,
11050,
25452,
62,
13376,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
25452,
3722,
2438,
290,
262,
11188,
1271,
286,
1492,
654,
13,
5438,
2318,
8262,
13,
46506,
25452,
62,
13376,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
5949,
1823,
62,
10482,
654,
44441,
11050,
25452,
62,
13376,
62,
8189
] |
Which county has 728 (43%) listed under C. Abate? | SELECT "County" FROM table_61428 WHERE "C. Abate" = '728 (43%)' | [
13828,
7968,
468,
767,
2078,
357,
3559,
4407,
5610,
739,
327,
13,
2275,
378,
30,
46506,
366,
12332,
88,
1,
16034,
3084,
62,
46841,
2078,
33411,
366,
34,
13,
2275,
378,
1,
796,
705,
48524,
357,
3559,
4407,
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
] | [
13828,
7968,
468,
767,
2078,
357,
3559,
4407,
5610,
739,
327,
13,
2275,
378,
30,
46506,
366,
12332,
88,
1,
16034,
3084,
62,
46841,
2078,
33411,
366,
34,
13,
2275,
378,
1,
796,
705,
48524,
357,
3559,
4407,
6
] |
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the sum of employee_id bin hire_date by weekday in a bar chart. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8,
16034,
4409,
33411,
36210,
2200,
62,
35,
6158,
1279,
705,
16942,
12,
3312,
12,
2481,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8,
16034,
4409,
33411,
36210,
2200,
62,
35,
6158,
1279,
705,
16942,
12,
3312,
12,
2481,
6
] |
Subsets and Splits