instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|
Which Category in Black has a Brown of 6,54%? | SELECT "Black" FROM table_42076 WHERE "Brown" = '6,54%' | [
13828,
21743,
287,
2619,
468,
257,
4373,
286,
718,
11,
4051,
4,
30,
46506,
366,
9915,
1,
16034,
3084,
62,
27211,
4304,
33411,
366,
20644,
1,
796,
705,
21,
11,
4051,
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
] | [
13828,
21743,
287,
2619,
468,
257,
4373,
286,
718,
11,
4051,
4,
30,
46506,
366,
9915,
1,
16034,
3084,
62,
27211,
4304,
33411,
366,
20644,
1,
796,
705,
21,
11,
4051,
4,
6
] |
what are the five most commonly given microbiology tests for patients who have previously had their unilat ing hern rep nos done within 2 months until 2104? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'unilat ing hern rep nos') AND STRFTIME('%y', procedures_icd.charttime) <= '2104') AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', microbiologyevents.charttime) <= '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t2.charttime) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 5 | [
10919,
389,
262,
1936,
749,
8811,
1813,
24559,
1435,
5254,
329,
3871,
508,
423,
4271,
550,
511,
555,
346,
265,
5347,
607,
77,
1128,
43630,
1760,
1626,
362,
1933,
1566,
362,
13464,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
256,
17,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
32357,
1268,
25349,
6177,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
796,
705,
403,
346,
265,
5347,
607,
77,
1128,
43630,
11537,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
9021,
62,
291,
67,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
32357,
1268,
25349,
6177,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
24559,
1435,
31534,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
256,
16,
13,
40926,
2435,
1279,
256,
17,
13,
40926,
2435,
5357,
360,
1404,
2767,
12789,
7,
83,
17,
13,
40926,
2435,
8,
38651,
8845,
1677,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
8,
5357,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
11,
705,
10,
17,
1227,
11537,
44441,
11050,
256,
17,
13,
16684,
62,
4906,
62,
20147,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
749,
8811,
1813,
24559,
1435,
5254,
329,
3871,
508,
423,
4271,
550,
511,
555,
346,
265,
5347,
607,
77,
1128,
43630,
1760,
1626,
362,
1933,
1566,
362,
13464,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
256,
17,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
32357,
1268,
25349,
6177,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
796,
705,
403,
346,
265,
5347,
607,
77,
1128,
43630,
11537,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
9021,
62,
291,
67,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
32357,
1268,
25349,
6177,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
24559,
1435,
31534,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
256,
16,
13,
40926,
2435,
1279,
256,
17,
13,
40926,
2435,
5357,
360,
1404,
2767,
12789,
7,
83,
17,
13,
40926,
2435,
8,
38651,
8845,
1677,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
8,
5357,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
11,
705,
10,
17,
1227,
11537,
44441,
11050,
256,
17,
13,
16684,
62,
4906,
62,
20147,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
642
] |
until 2104 what were the top three most frequent diagnoses that patients were diagnosed with within 2 months after the diagnosis of cardiac arrest? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'cardiac arrest') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104') AS t1 JOIN (SELECT admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', diagnoses_icd.charttime) <= '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t2.charttime) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 3) | [
28446,
362,
13464,
644,
547,
262,
1353,
1115,
749,
10792,
40567,
326,
3871,
547,
14641,
351,
1626,
362,
1933,
706,
262,
13669,
286,
26077,
3251,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
3268,
357,
46506,
256,
18,
13,
291,
67,
24,
62,
8189,
16034,
357,
46506,
256,
17,
13,
291,
67,
24,
62,
8189,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
40567,
62,
291,
67,
13,
40926,
2435,
16034,
40567,
62,
291,
67,
32357,
1268,
25349,
6177,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
9517,
9607,
3251,
11537,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
40567,
62,
291,
67,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
11,
40567,
62,
291,
67,
13,
40926,
2435,
16034,
40567,
62,
291,
67,
32357,
1268,
25349,
6177,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
40567,
62,
291,
67,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
256,
16,
13,
40926,
2435,
1279,
256,
17,
13,
40926,
2435,
5357,
360,
1404,
2767,
12789,
7,
83,
17,
13,
40926,
2435,
8,
38651,
8845,
1677,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
8,
5357,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
11,
705,
10,
17,
1227,
11537,
44441,
11050,
256,
17,
13,
291,
67,
24,
62,
8189,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
513,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
28446,
362,
13464,
644,
547,
262,
1353,
1115,
749,
10792,
40567,
326,
3871,
547,
14641,
351,
1626,
362,
1933,
706,
262,
13669,
286,
26077,
3251,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
3268,
357,
46506,
256,
18,
13,
291,
67,
24,
62,
8189,
16034,
357,
46506,
256,
17,
13,
291,
67,
24,
62,
8189,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
40567,
62,
291,
67,
13,
40926,
2435,
16034,
40567,
62,
291,
67,
32357,
1268,
25349,
6177,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
9517,
9607,
3251,
11537,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
40567,
62,
291,
67,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
11,
40567,
62,
291,
67,
13,
40926,
2435,
16034,
40567,
62,
291,
67,
32357,
1268,
25349,
6177,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
40567,
62,
291,
67,
13,
40926,
2435,
8,
19841,
705,
17,
13464,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
256,
16,
13,
40926,
2435,
1279,
256,
17,
13,
40926,
2435,
5357,
360,
1404,
2767,
12789,
7,
83,
17,
13,
40926,
2435,
8,
38651,
8845,
1677,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
8,
5357,
360,
1404,
2767,
12789,
7,
83,
16,
13,
40926,
2435,
11,
705,
10,
17,
1227,
11537,
44441,
11050,
256,
17,
13,
291,
67,
24,
62,
8189,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
513,
8
] |
How old is the average person for each job Show bar chart, sort by the X in ascending. | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY job | [
2437,
1468,
318,
262,
2811,
1048,
329,
1123,
1693,
5438,
2318,
8262,
11,
3297,
416,
262,
1395,
287,
41988,
13,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
1693,
38678,
11050,
1693
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1468,
318,
262,
2811,
1048,
329,
1123,
1693,
5438,
2318,
8262,
11,
3297,
416,
262,
1395,
287,
41988,
13,
46506,
1693,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
1693,
38678,
11050,
1693
] |
What is the WPW freq with a day power of 250? | SELECT SUM("Freq") FROM table_32765 WHERE "Owner" = 'wpw' AND "Day Power ( W )" > '250' | [
2061,
318,
262,
28993,
54,
2030,
80,
351,
257,
1110,
1176,
286,
8646,
30,
46506,
35683,
7203,
20366,
80,
4943,
16034,
3084,
62,
34159,
2996,
33411,
366,
42419,
1,
796,
705,
24142,
86,
6,
5357,
366,
12393,
4333,
357,
370,
1267,
1,
1875,
705,
9031,
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
] | [
2061,
318,
262,
28993,
54,
2030,
80,
351,
257,
1110,
1176,
286,
8646,
30,
46506,
35683,
7203,
20366,
80,
4943,
16034,
3084,
62,
34159,
2996,
33411,
366,
42419,
1,
796,
705,
24142,
86,
6,
5357,
366,
12393,
4333,
357,
370,
1267,
1,
1875,
705,
9031,
6
] |
provide the number of patients whose admission type is emergency and diagnoses long title is chronic pancreatitis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Chronic pancreatitis" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
10726,
47767,
11815,
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,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
1925,
4565,
47767,
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,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
10726,
47767,
11815,
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,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
1925,
4565,
47767,
11815,
1
] |
If the year is 2007, what is the top ten? | SELECT top_10s FROM table_22838521_3 WHERE year = 2007 | [
1532,
262,
614,
318,
4343,
11,
644,
318,
262,
1353,
3478,
30,
46506,
1353,
62,
940,
82,
16034,
3084,
62,
23815,
27203,
2481,
62,
18,
33411,
614,
796,
4343
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
614,
318,
4343,
11,
644,
318,
262,
1353,
3478,
30,
46506,
1353,
62,
940,
82,
16034,
3084,
62,
23815,
27203,
2481,
62,
18,
33411,
614,
796,
4343
] |
What are all the dates with a score of 203 (-13)? | SELECT "Date" FROM table_16954 WHERE "Score" = '203 (-13)' | [
2061,
389,
477,
262,
9667,
351,
257,
4776,
286,
27408,
13841,
1485,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
1433,
48372,
33411,
366,
26595,
1,
796,
705,
22416,
13841,
1485,
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
] | [
2061,
389,
477,
262,
9667,
351,
257,
4776,
286,
27408,
13841,
1485,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
1433,
48372,
33411,
366,
26595,
1,
796,
705,
22416,
13841,
1485,
33047
] |
What's the to Iran with fewer than 9 survivors, more than 3 damaged, and an ussr an-26 aircraft? | SELECT AVG("to Iran") FROM table_59152 WHERE "survived" < '9' AND "Aircraft" = 'ussr an-26' AND "damaged" > '3' | [
2061,
338,
262,
284,
4068,
351,
7380,
621,
860,
13644,
11,
517,
621,
513,
9694,
11,
290,
281,
514,
27891,
281,
12,
2075,
6215,
30,
46506,
35224,
7203,
1462,
4068,
4943,
16034,
3084,
62,
3270,
17827,
33411,
366,
48846,
1572,
1,
1279,
705,
24,
6,
5357,
366,
32,
27002,
1,
796,
705,
1046,
81,
281,
12,
2075,
6,
5357,
366,
11043,
1886,
1,
1875,
705,
18,
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
] | [
2061,
338,
262,
284,
4068,
351,
7380,
621,
860,
13644,
11,
517,
621,
513,
9694,
11,
290,
281,
514,
27891,
281,
12,
2075,
6215,
30,
46506,
35224,
7203,
1462,
4068,
4943,
16034,
3084,
62,
3270,
17827,
33411,
366,
48846,
1572,
1,
1279,
705,
24,
6,
5357,
366,
32,
27002,
1,
796,
705,
1046,
81,
281,
12,
2075,
6,
5357,
366,
11043,
1886,
1,
1875,
705,
18,
6
] |
provide the number of home discharged patients who had sodium lab test done. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "HOME" AND lab.label = "Sodium" | [
15234,
485,
262,
1271,
286,
1363,
26476,
3871,
508,
550,
21072,
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,
6381,
10136,
62,
24886,
796,
366,
39069,
1,
5357,
2248,
13,
18242,
796,
366,
50,
12664,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
26476,
3871,
508,
550,
21072,
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,
6381,
10136,
62,
24886,
796,
366,
39069,
1,
5357,
2248,
13,
18242,
796,
366,
50,
12664,
1
] |
what is the score for the game on 21 april 2001? | SELECT "Score" FROM table_15776 WHERE "Date" = '21 april 2001' | [
10919,
318,
262,
4776,
329,
262,
983,
319,
2310,
46593,
346,
5878,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1314,
39509,
33411,
366,
10430,
1,
796,
705,
2481,
46593,
346,
5878,
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
] | [
10919,
318,
262,
4776,
329,
262,
983,
319,
2310,
46593,
346,
5878,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1314,
39509,
33411,
366,
10430,
1,
796,
705,
2481,
46593,
346,
5878,
6
] |
What years did Orlando have stanley roberts on the team? | SELECT years_in_orlando FROM table_name_75 WHERE player = "stanley roberts" | [
2061,
812,
750,
13117,
423,
336,
272,
1636,
686,
527,
912,
319,
262,
1074,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
2425,
33411,
2137,
796,
366,
14192,
1636,
686,
527,
912,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
750,
13117,
423,
336,
272,
1636,
686,
527,
912,
319,
262,
1074,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
2425,
33411,
2137,
796,
366,
14192,
1636,
686,
527,
912,
1
] |
how many patients have undergone a intravenous diuretic - iv furosemide two or more times during the last year? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'intravenous diuretic - iv furosemide' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) GROUP BY patient.uniquepid) AS t1 WHERE t1.c1 >= 2 | [
4919,
867,
3871,
423,
29900,
257,
45840,
516,
2566,
495,
13370,
532,
21628,
277,
1434,
43616,
485,
734,
393,
517,
1661,
1141,
262,
938,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
327,
28270,
7,
28104,
7054,
269,
16,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
796,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
600,
430,
574,
516,
2566,
495,
13370,
532,
21628,
277,
1434,
43616,
485,
6,
5357,
360,
1404,
2767,
12789,
7,
42487,
13,
42487,
2435,
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,
6,
4008,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
18189,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29900,
257,
45840,
516,
2566,
495,
13370,
532,
21628,
277,
1434,
43616,
485,
734,
393,
517,
1661,
1141,
262,
938,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
327,
28270,
7,
28104,
7054,
269,
16,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
796,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
600,
430,
574,
516,
2566,
495,
13370,
532,
21628,
277,
1434,
43616,
485,
6,
5357,
360,
1404,
2767,
12789,
7,
42487,
13,
42487,
2435,
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,
6,
4008,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
18189,
362
] |
What year is the latest year that has no under director? | SELECT MAX(year) FROM table_name_18 WHERE director = "no" | [
2061,
614,
318,
262,
3452,
614,
326,
468,
645,
739,
3437,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
3437,
796,
366,
3919,
1
] | [
1,
1,
1,
1,
1,
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,
614,
318,
262,
3452,
614,
326,
468,
645,
739,
3437,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
3437,
796,
366,
3919,
1
] |
What round was Craig Erickson drafted? | SELECT "Round" FROM table_10734 WHERE "Player" = 'craig erickson' | [
2061,
2835,
373,
13854,
7651,
46505,
15937,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
15982,
2682,
33411,
366,
14140,
1,
796,
705,
66,
430,
328,
1931,
46381,
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
] | [
2061,
2835,
373,
13854,
7651,
46505,
15937,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
15982,
2682,
33411,
366,
14140,
1,
796,
705,
66,
430,
328,
1931,
46381,
6
] |
provide the number of patients whose admission year is less than 2145 and procedure icd9 code is 17? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2145" AND procedures.icd9_code = "17" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
18781,
290,
8771,
14158,
67,
24,
2438,
318,
1596,
30,
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,
76,
414,
451,
1279,
366,
17,
18781,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
1558,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
614,
318,
1342,
621,
362,
18781,
290,
8771,
14158,
67,
24,
2438,
318,
1596,
30,
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,
76,
414,
451,
1279,
366,
17,
18781,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
1558,
1
] |
Who was in 4th when in 6th is Air Traffic? | SELECT "Fourth" FROM table_72843 WHERE "Sixth" = 'Air Traffic' | [
8241,
373,
287,
604,
400,
618,
287,
718,
400,
318,
3701,
23624,
30,
46506,
366,
45530,
1,
16034,
3084,
62,
48524,
3559,
33411,
366,
21447,
400,
1,
796,
705,
16170,
23624,
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
] | [
8241,
373,
287,
604,
400,
618,
287,
718,
400,
318,
3701,
23624,
30,
46506,
366,
45530,
1,
16034,
3084,
62,
48524,
3559,
33411,
366,
21447,
400,
1,
796,
705,
16170,
23624,
6
] |
What was the result of the election in the Arkansas 4 district? | SELECT "Result" FROM table_18678 WHERE "District" = 'Arkansas 4' | [
2061,
373,
262,
1255,
286,
262,
3071,
287,
262,
14538,
604,
4783,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1507,
30924,
33411,
366,
44857,
1,
796,
705,
42007,
6618,
604,
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
] | [
2061,
373,
262,
1255,
286,
262,
3071,
287,
262,
14538,
604,
4783,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1507,
30924,
33411,
366,
44857,
1,
796,
705,
42007,
6618,
604,
6
] |
what is the census ranking when the area km 2 is 173.4? | SELECT "Census Ranking" FROM table_9181 WHERE "Area km 2" = '173.4' | [
10919,
318,
262,
21649,
12759,
618,
262,
1989,
10571,
362,
318,
28174,
13,
19,
30,
46506,
366,
34,
7314,
45407,
1,
16034,
3084,
62,
24,
27057,
33411,
366,
30547,
10571,
362,
1,
796,
705,
25399,
13,
19,
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
] | [
10919,
318,
262,
21649,
12759,
618,
262,
1989,
10571,
362,
318,
28174,
13,
19,
30,
46506,
366,
34,
7314,
45407,
1,
16034,
3084,
62,
24,
27057,
33411,
366,
30547,
10571,
362,
1,
796,
705,
25399,
13,
19,
6
] |
What status has an area km 2 greater than 10.9, with 4,674 of 5,008 as the census ranking | SELECT "Status" FROM table_9037 WHERE "Area km 2" > '10.9' AND "Census Ranking" = '4,674 of 5,008' | [
2061,
3722,
468,
281,
1989,
10571,
362,
3744,
621,
838,
13,
24,
11,
351,
604,
11,
45385,
286,
642,
11,
25257,
355,
262,
21649,
12759,
46506,
366,
19580,
1,
16034,
3084,
62,
3829,
2718,
33411,
366,
30547,
10571,
362,
1,
1875,
705,
940,
13,
24,
6,
5357,
366,
34,
7314,
45407,
1,
796,
705,
19,
11,
45385,
286,
642,
11,
25257,
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
] | [
2061,
3722,
468,
281,
1989,
10571,
362,
3744,
621,
838,
13,
24,
11,
351,
604,
11,
45385,
286,
642,
11,
25257,
355,
262,
21649,
12759,
46506,
366,
19580,
1,
16034,
3084,
62,
3829,
2718,
33411,
366,
30547,
10571,
362,
1,
1875,
705,
940,
13,
24,
6,
5357,
366,
34,
7314,
45407,
1,
796,
705,
19,
11,
45385,
286,
642,
11,
25257,
6
] |
Which home team has an away team score of 11.13 (79)? | SELECT "Home team" FROM table_10155 WHERE "Away team score" = '11.13 (79)' | [
13828,
1363,
1074,
468,
281,
1497,
1074,
4776,
286,
1367,
13,
1485,
357,
3720,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
8784,
2816,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1157,
13,
1485,
357,
3720,
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
] | [
13828,
1363,
1074,
468,
281,
1497,
1074,
4776,
286,
1367,
13,
1485,
357,
3720,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
8784,
2816,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1157,
13,
1485,
357,
3720,
33047
] |
how many times did patient 11823 make the ostomy (output) in 11/last year? | SELECT COUNT(*) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11823)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'ostomy (output)' AND d_items.linksto = 'outputevents') AND DATETIME(outputevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', outputevents.charttime) = '11' | [
4919,
867,
1661,
750,
5827,
19035,
1954,
787,
262,
23619,
9145,
357,
22915,
8,
287,
1367,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
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,
19035,
1954,
4008,
5357,
38701,
1133,
85,
658,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
455,
9145,
357,
22915,
33047,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
448,
79,
1133,
85,
658,
11537,
5357,
360,
1404,
2767,
12789,
7,
448,
79,
1133,
85,
658,
13,
40926,
2435,
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,
38701,
1133,
85,
658,
13,
40926,
2435,
8,
796,
705,
1157,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
750,
5827,
19035,
1954,
787,
262,
23619,
9145,
357,
22915,
8,
287,
1367,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
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,
19035,
1954,
4008,
5357,
38701,
1133,
85,
658,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
455,
9145,
357,
22915,
33047,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
448,
79,
1133,
85,
658,
11537,
5357,
360,
1404,
2767,
12789,
7,
448,
79,
1133,
85,
658,
13,
40926,
2435,
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,
38701,
1133,
85,
658,
13,
40926,
2435,
8,
796,
705,
1157,
6
] |
Show the id, name of each editor and the number of journal committees they are on. | SELECT T1.Editor_ID, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Editor_ID | [
15307,
262,
4686,
11,
1438,
286,
1123,
5464,
290,
262,
1271,
286,
3989,
17460,
484,
389,
319,
13,
46506,
309,
16,
13,
17171,
62,
2389,
11,
309,
16,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
5464,
7054,
309,
16,
32357,
1268,
3989,
62,
26799,
7054,
309,
17,
6177,
309,
16,
13,
17171,
62,
2389,
796,
309,
17,
13,
17171,
62,
2389,
44441,
11050,
309,
16,
13,
17171,
62,
2389
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4686,
11,
1438,
286,
1123,
5464,
290,
262,
1271,
286,
3989,
17460,
484,
389,
319,
13,
46506,
309,
16,
13,
17171,
62,
2389,
11,
309,
16,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
5464,
7054,
309,
16,
32357,
1268,
3989,
62,
26799,
7054,
309,
17,
6177,
309,
16,
13,
17171,
62,
2389,
796,
309,
17,
13,
17171,
62,
2389,
44441,
11050,
309,
16,
13,
17171,
62,
2389
] |
During what year was Wicked associated with the Green Room Awards? | SELECT year FROM table_name_44 WHERE production = "wicked" AND award = "green room awards" | [
7191,
644,
614,
373,
42956,
3917,
351,
262,
3469,
10096,
15434,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
2598,
33411,
3227,
796,
366,
86,
9484,
1,
5357,
5764,
796,
366,
14809,
2119,
13304,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7191,
644,
614,
373,
42956,
3917,
351,
262,
3469,
10096,
15434,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
2598,
33411,
3227,
796,
366,
86,
9484,
1,
5357,
5764,
796,
366,
14809,
2119,
13304,
1
] |
Visualize the average smallest rating of different movie title using a bar chart, and order by the total number in desc. | SELECT T2.title, AVG(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY AVG(MIN(T1.stars)) DESC | [
36259,
1096,
262,
2811,
18197,
7955,
286,
1180,
3807,
3670,
1262,
257,
2318,
8262,
11,
290,
1502,
416,
262,
2472,
1271,
287,
1715,
13,
46506,
309,
17,
13,
7839,
11,
35224,
7,
23678,
7,
51,
16,
13,
30783,
4008,
16034,
12028,
7054,
309,
16,
32357,
1268,
15875,
7054,
309,
17,
6177,
309,
16,
13,
76,
2389,
796,
309,
17,
13,
76,
2389,
44441,
11050,
309,
17,
13,
7839,
38678,
11050,
35224,
7,
23678,
7,
51,
16,
13,
30783,
4008,
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
] | [
36259,
1096,
262,
2811,
18197,
7955,
286,
1180,
3807,
3670,
1262,
257,
2318,
8262,
11,
290,
1502,
416,
262,
2472,
1271,
287,
1715,
13,
46506,
309,
17,
13,
7839,
11,
35224,
7,
23678,
7,
51,
16,
13,
30783,
4008,
16034,
12028,
7054,
309,
16,
32357,
1268,
15875,
7054,
309,
17,
6177,
309,
16,
13,
76,
2389,
796,
309,
17,
13,
76,
2389,
44441,
11050,
309,
17,
13,
7839,
38678,
11050,
35224,
7,
23678,
7,
51,
16,
13,
30783,
4008,
22196,
34
] |
For all storms with at least 1 death, compare the number of deaths by dates active with a bar graph, and I want to rank in descending by the x-axis. | SELECT Dates_active, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Dates_active DESC | [
1890,
477,
20228,
351,
379,
1551,
352,
1918,
11,
8996,
262,
1271,
286,
7040,
416,
9667,
4075,
351,
257,
2318,
4823,
11,
290,
314,
765,
284,
4279,
287,
31491,
416,
262,
2124,
12,
22704,
13,
46506,
44712,
62,
5275,
11,
7913,
62,
20148,
82,
16034,
6388,
33411,
7913,
62,
20148,
82,
18189,
352,
38678,
11050,
44712,
62,
5275,
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
] | [
1890,
477,
20228,
351,
379,
1551,
352,
1918,
11,
8996,
262,
1271,
286,
7040,
416,
9667,
4075,
351,
257,
2318,
4823,
11,
290,
314,
765,
284,
4279,
287,
31491,
416,
262,
2124,
12,
22704,
13,
46506,
44712,
62,
5275,
11,
7913,
62,
20148,
82,
16034,
6388,
33411,
7913,
62,
20148,
82,
18189,
352,
38678,
11050,
44712,
62,
5275,
22196,
34
] |
What is the maximum number of 2nd places for Tajikistan? | SELECT MAX(second_place) FROM table_2876467_3 WHERE region_represented = "Tajikistan" | [
2061,
318,
262,
5415,
1271,
286,
362,
358,
4113,
329,
32490,
1134,
4103,
30,
46506,
25882,
7,
12227,
62,
5372,
8,
16034,
3084,
62,
27800,
2414,
3134,
62,
18,
33411,
3814,
62,
33469,
796,
366,
51,
1228,
1134,
4103,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
1271,
286,
362,
358,
4113,
329,
32490,
1134,
4103,
30,
46506,
25882,
7,
12227,
62,
5372,
8,
16034,
3084,
62,
27800,
2414,
3134,
62,
18,
33411,
3814,
62,
33469,
796,
366,
51,
1228,
1134,
4103,
1
] |
What is the location of the venue owned by johnson c. smith university? | SELECT "Location" FROM table_40342 WHERE "Owner" = 'johnson c. smith university' | [
2061,
318,
262,
4067,
286,
262,
14359,
6898,
416,
45610,
1559,
269,
13,
895,
342,
6403,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
1821,
31575,
33411,
366,
42419,
1,
796,
705,
30686,
1559,
269,
13,
895,
342,
6403,
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
] | [
2061,
318,
262,
4067,
286,
262,
14359,
6898,
416,
45610,
1559,
269,
13,
895,
342,
6403,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
1821,
31575,
33411,
366,
42419,
1,
796,
705,
30686,
1559,
269,
13,
895,
342,
6403,
6
] |
What is the date where john wall (11) had the high assists? | SELECT date FROM table_27721131_6 WHERE high_assists = "John Wall (11)" | [
2061,
318,
262,
3128,
810,
45610,
3355,
357,
1157,
8,
550,
262,
1029,
13648,
30,
46506,
3128,
16034,
3084,
62,
1983,
4761,
1157,
3132,
62,
21,
33411,
1029,
62,
562,
1023,
796,
366,
7554,
5007,
357,
1157,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
810,
45610,
3355,
357,
1157,
8,
550,
262,
1029,
13648,
30,
46506,
3128,
16034,
3084,
62,
1983,
4761,
1157,
3132,
62,
21,
33411,
1029,
62,
562,
1023,
796,
366,
7554,
5007,
357,
1157,
16725
] |
what is maximum days of hospital stay of patients whose age is greater than or equal to 68? | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.age >= "68" | [
10919,
318,
5415,
1528,
286,
4436,
2652,
286,
3871,
3025,
2479,
318,
3744,
621,
393,
4961,
284,
8257,
30,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
496,
18189,
366,
3104,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
1528,
286,
4436,
2652,
286,
3871,
3025,
2479,
318,
3744,
621,
393,
4961,
284,
8257,
30,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
496,
18189,
366,
3104,
1
] |
What's the sum of the Pick that has the Player of Robert Ingalls? | SELECT COUNT("Pick") FROM table_35393 WHERE "Player" = 'robert ingalls' | [
2061,
338,
262,
2160,
286,
262,
12346,
326,
468,
262,
7853,
286,
5199,
17589,
5691,
30,
46506,
327,
28270,
7203,
31686,
4943,
16034,
3084,
62,
2327,
26007,
33411,
366,
14140,
1,
796,
705,
305,
4835,
5347,
5691,
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
] | [
2061,
338,
262,
2160,
286,
262,
12346,
326,
468,
262,
7853,
286,
5199,
17589,
5691,
30,
46506,
327,
28270,
7203,
31686,
4943,
16034,
3084,
62,
2327,
26007,
33411,
366,
14140,
1,
796,
705,
305,
4835,
5347,
5691,
6
] |
What is the lowest bronze total that has a rank of 1 and more than 34 total medals? | SELECT MIN(bronze) FROM table_name_83 WHERE rank = "1" AND total > 34 | [
2061,
318,
262,
9016,
22101,
2472,
326,
468,
257,
4279,
286,
352,
290,
517,
621,
4974,
2472,
28057,
30,
46506,
20625,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
4279,
796,
366,
16,
1,
5357,
2472,
1875,
4974
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
22101,
2472,
326,
468,
257,
4279,
286,
352,
290,
517,
621,
4974,
2472,
28057,
30,
46506,
20625,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
4279,
796,
366,
16,
1,
5357,
2472,
1875,
4974
] |
What player position was drafted in 1955? | SELECT "Position" FROM table_32637 WHERE "From" = '1955' | [
2061,
2137,
2292,
373,
15937,
287,
25325,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
39195,
2718,
33411,
366,
4863,
1,
796,
705,
1129,
2816,
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,
2137,
2292,
373,
15937,
287,
25325,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
39195,
2718,
33411,
366,
4863,
1,
796,
705,
1129,
2816,
6
] |
how many times does patient 10855 get a creatine kinase, mb isoenzyme test in 12/this year? | SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'creatine kinase, mb isoenzyme') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10855) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', labevents.charttime) = '12' | [
4919,
867,
1661,
857,
5827,
15495,
2816,
651,
257,
49346,
18967,
589,
11,
285,
65,
318,
6571,
24266,
1332,
287,
1105,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
312,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
18242,
796,
705,
20123,
500,
18967,
589,
11,
285,
65,
318,
6571,
24266,
11537,
5357,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
15495,
2816,
8,
5357,
360,
1404,
2767,
12789,
7,
23912,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
2248,
31534,
13,
40926,
2435,
8,
796,
705,
1065,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
857,
5827,
15495,
2816,
651,
257,
49346,
18967,
589,
11,
285,
65,
318,
6571,
24266,
1332,
287,
1105,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
312,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
18242,
796,
705,
20123,
500,
18967,
589,
11,
285,
65,
318,
6571,
24266,
11537,
5357,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
15495,
2816,
8,
5357,
360,
1404,
2767,
12789,
7,
23912,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
2248,
31534,
13,
40926,
2435,
8,
796,
705,
1065,
6
] |
What type is the school located in Macon, Georgia? | SELECT "Type" FROM table_23218 WHERE "Location" = 'Macon, Georgia' | [
2061,
2099,
318,
262,
1524,
5140,
287,
4100,
261,
11,
7859,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
24339,
1507,
33411,
366,
14749,
1,
796,
705,
44,
7807,
11,
7859,
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
] | [
2061,
2099,
318,
262,
1524,
5140,
287,
4100,
261,
11,
7859,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
24339,
1507,
33411,
366,
14749,
1,
796,
705,
44,
7807,
11,
7859,
6
] |
How many tree species are there when the total plant species is 113? | SELECT COUNT("Tree species") FROM table_20914 WHERE "Total plant species" = '113' | [
2437,
867,
5509,
4693,
389,
612,
618,
262,
2472,
4618,
4693,
318,
17318,
30,
46506,
327,
28270,
7203,
27660,
4693,
4943,
16034,
3084,
62,
22567,
1415,
33411,
366,
14957,
4618,
4693,
1,
796,
705,
16616,
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
] | [
2437,
867,
5509,
4693,
389,
612,
618,
262,
2472,
4618,
4693,
318,
17318,
30,
46506,
327,
28270,
7203,
27660,
4693,
4943,
16034,
3084,
62,
22567,
1415,
33411,
366,
14957,
4618,
4693,
1,
796,
705,
16616,
6
] |
Return a bar chart on what are the names of the different bank branches, and what are their total loan amounts? | SELECT bname, SUM(amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_ID = T2.branch_ID GROUP BY T1.bname | [
13615,
257,
2318,
8262,
319,
644,
389,
262,
3891,
286,
262,
1180,
3331,
13737,
11,
290,
644,
389,
511,
2472,
8063,
6867,
30,
46506,
275,
3672,
11,
35683,
7,
17287,
8,
16034,
3331,
7054,
309,
16,
32357,
1268,
8063,
7054,
309,
17,
6177,
309,
16,
13,
1671,
3702,
62,
2389,
796,
309,
17,
13,
1671,
3702,
62,
2389,
44441,
11050,
309,
16,
13,
65,
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
] | [
13615,
257,
2318,
8262,
319,
644,
389,
262,
3891,
286,
262,
1180,
3331,
13737,
11,
290,
644,
389,
511,
2472,
8063,
6867,
30,
46506,
275,
3672,
11,
35683,
7,
17287,
8,
16034,
3331,
7054,
309,
16,
32357,
1268,
8063,
7054,
309,
17,
6177,
309,
16,
13,
1671,
3702,
62,
2389,
796,
309,
17,
13,
1671,
3702,
62,
2389,
44441,
11050,
309,
16,
13,
65,
3672
] |
how many bridges were built in 1931 ? | SELECT COUNT("bridge name") FROM table_204_507 WHERE "year completed" = 1931 | [
4919,
867,
19432,
547,
3170,
287,
34625,
5633,
46506,
327,
28270,
7203,
9458,
1438,
4943,
16034,
3084,
62,
18638,
62,
35378,
33411,
366,
1941,
5668,
1,
796,
34625
] | [
1,
1,
1,
1,
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,
19432,
547,
3170,
287,
34625,
5633,
46506,
327,
28270,
7203,
9458,
1438,
4943,
16034,
3084,
62,
18638,
62,
35378,
33411,
366,
1941,
5668,
1,
796,
34625
] |
What are the names of actors and the musicals that they are in? | SELECT T1.name, T2.name FROM actor AS T1 JOIN musical AS T2 ON T1.musical_id = T2.musical_id | [
2061,
389,
262,
3891,
286,
10544,
290,
262,
10530,
82,
326,
484,
389,
287,
30,
46506,
309,
16,
13,
3672,
11,
309,
17,
13,
3672,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
309,
16,
13,
14664,
605,
62,
312,
796,
309,
17,
13,
14664,
605,
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
] | [
2061,
389,
262,
3891,
286,
10544,
290,
262,
10530,
82,
326,
484,
389,
287,
30,
46506,
309,
16,
13,
3672,
11,
309,
17,
13,
3672,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
309,
16,
13,
14664,
605,
62,
312,
796,
309,
17,
13,
14664,
605,
62,
312
] |
What is every affiliation for candidate Daren Ireland? | SELECT "Affiliation" FROM table_73864 WHERE "Candidate" = 'Daren Ireland' | [
2061,
318,
790,
26218,
329,
4540,
360,
5757,
7517,
30,
46506,
366,
35191,
15547,
1,
16034,
3084,
62,
22,
2548,
2414,
33411,
366,
41572,
20540,
1,
796,
705,
35,
5757,
7517,
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
] | [
2061,
318,
790,
26218,
329,
4540,
360,
5757,
7517,
30,
46506,
366,
35191,
15547,
1,
16034,
3084,
62,
22,
2548,
2414,
33411,
366,
41572,
20540,
1,
796,
705,
35,
5757,
7517,
6
] |
how many patients is antihypertensive drug given to two times since 1 year ago? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'antihypertensive drug' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-1 year')) GROUP BY patient.uniquepid) AS t1 WHERE t1.c1 = 2 | [
4919,
867,
3871,
318,
3098,
12114,
11766,
2021,
2563,
1813,
284,
734,
1661,
1201,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
327,
28270,
7,
28104,
7054,
269,
16,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
796,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
415,
4449,
88,
11766,
2021,
2563,
6,
5357,
360,
1404,
2767,
12789,
7,
42487,
13,
42487,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
16,
614,
6,
4008,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
796,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
3098,
12114,
11766,
2021,
2563,
1813,
284,
734,
1661,
1201,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
327,
28270,
7,
28104,
7054,
269,
16,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
796,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
415,
4449,
88,
11766,
2021,
2563,
6,
5357,
360,
1404,
2767,
12789,
7,
42487,
13,
42487,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
16,
614,
6,
4008,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
796,
362
] |
What left office does the First Minister of henry mcleish belong to? | SELECT "Left Office" FROM table_15413 WHERE "First Minister" = 'henry mcleish' | [
2061,
1364,
2607,
857,
262,
3274,
4139,
286,
30963,
563,
285,
2375,
680,
5594,
284,
30,
46506,
366,
18819,
4452,
1,
16034,
3084,
62,
21526,
1485,
33411,
366,
5962,
4139,
1,
796,
705,
831,
563,
285,
2375,
680,
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
] | [
2061,
1364,
2607,
857,
262,
3274,
4139,
286,
30963,
563,
285,
2375,
680,
5594,
284,
30,
46506,
366,
18819,
4452,
1,
16034,
3084,
62,
21526,
1485,
33411,
366,
5962,
4139,
1,
796,
705,
831,
563,
285,
2375,
680,
6
] |
Name the manner of departure for date of vacancy 25 august 2008 | SELECT "Manner of departure" FROM table_22421 WHERE "Date of vacancy" = '25 August 2008' | [
5376,
262,
5642,
286,
12928,
329,
3128,
286,
39836,
1679,
16339,
436,
3648,
46506,
366,
5124,
1008,
286,
12928,
1,
16034,
3084,
62,
24137,
2481,
33411,
366,
10430,
286,
39836,
1,
796,
705,
1495,
2932,
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,
1,
1,
1,
1
] | [
5376,
262,
5642,
286,
12928,
329,
3128,
286,
39836,
1679,
16339,
436,
3648,
46506,
366,
5124,
1008,
286,
12928,
1,
16034,
3084,
62,
24137,
2481,
33411,
366,
10430,
286,
39836,
1,
796,
705,
1495,
2932,
3648,
6
] |
What are the distinct names of customers who have purchased at least three different products? | SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id GROUP BY T1.customer_id HAVING COUNT(DISTINCT T3.product_id) >= 3 | [
2061,
389,
262,
7310,
3891,
286,
4297,
508,
423,
8155,
379,
1551,
1115,
1180,
3186,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
23144,
263,
62,
3672,
16034,
4297,
7054,
309,
16,
32357,
1268,
6491,
62,
6361,
7054,
309,
17,
6177,
309,
16,
13,
23144,
263,
62,
312,
796,
309,
17,
13,
23144,
263,
62,
312,
32357,
1268,
1502,
62,
23814,
7054,
309,
18,
6177,
309,
17,
13,
2875,
62,
312,
796,
309,
18,
13,
2875,
62,
312,
44441,
11050,
309,
16,
13,
23144,
263,
62,
312,
367,
10116,
2751,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
18,
13,
11167,
62,
312,
8,
18189,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7310,
3891,
286,
4297,
508,
423,
8155,
379,
1551,
1115,
1180,
3186,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
23144,
263,
62,
3672,
16034,
4297,
7054,
309,
16,
32357,
1268,
6491,
62,
6361,
7054,
309,
17,
6177,
309,
16,
13,
23144,
263,
62,
312,
796,
309,
17,
13,
23144,
263,
62,
312,
32357,
1268,
1502,
62,
23814,
7054,
309,
18,
6177,
309,
17,
13,
2875,
62,
312,
796,
309,
18,
13,
2875,
62,
312,
44441,
11050,
309,
16,
13,
23144,
263,
62,
312,
367,
10116,
2751,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
18,
13,
11167,
62,
312,
8,
18189,
513
] |
Who was the opponent on week 5? | SELECT "Opponent" FROM table_54580 WHERE "Week" = '5' | [
8241,
373,
262,
6125,
319,
1285,
642,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
45326,
1795,
33411,
366,
20916,
1,
796,
705,
20,
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
] | [
8241,
373,
262,
6125,
319,
1285,
642,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
45326,
1795,
33411,
366,
20916,
1,
796,
705,
20,
6
] |
What's the name of the award given to Team number 23? | SELECT "Award name" FROM table_7568 WHERE "Team number" = '23' | [
2061,
338,
262,
1438,
286,
262,
5764,
1813,
284,
4816,
1271,
2242,
30,
46506,
366,
32,
904,
1438,
1,
16034,
3084,
62,
2425,
3104,
33411,
366,
15592,
1271,
1,
796,
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
] | [
2061,
338,
262,
1438,
286,
262,
5764,
1813,
284,
4816,
1271,
2242,
30,
46506,
366,
32,
904,
1438,
1,
16034,
3084,
62,
2425,
3104,
33411,
366,
15592,
1271,
1,
796,
705,
1954,
6
] |
Who was drafted by the Washington Capitals? | SELECT player FROM table_2840500_2 WHERE nhl_team = "Washington Capitals" | [
8241,
373,
15937,
416,
262,
2669,
40707,
30,
46506,
2137,
16034,
3084,
62,
2078,
1821,
4059,
62,
17,
33411,
299,
18519,
62,
15097,
796,
366,
17402,
40707,
1
] | [
1,
1,
1,
1,
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,
15937,
416,
262,
2669,
40707,
30,
46506,
2137,
16034,
3084,
62,
2078,
1821,
4059,
62,
17,
33411,
299,
18519,
62,
15097,
796,
366,
17402,
40707,
1
] |
count the number of patients whose language is cape and admission location is emergency room admit? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "CAPE" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | [
9127,
262,
1271,
286,
3871,
3025,
3303,
318,
36023,
290,
13938,
4067,
318,
6334,
2119,
9159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
33177,
36,
1,
5357,
16728,
13,
324,
3411,
62,
24886,
796,
366,
3620,
49837,
45155,
15107,
2662,
5984,
36393,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3303,
318,
36023,
290,
13938,
4067,
318,
6334,
2119,
9159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
33177,
36,
1,
5357,
16728,
13,
324,
3411,
62,
24886,
796,
366,
3620,
49837,
45155,
15107,
2662,
5984,
36393,
1
] |
What is the record when the game was at the San Diego Stadium? | SELECT record FROM table_17848578_1 WHERE game_site = "San Diego Stadium" | [
2061,
318,
262,
1700,
618,
262,
983,
373,
379,
262,
2986,
9500,
10499,
30,
46506,
1700,
16034,
3084,
62,
23188,
2780,
38907,
62,
16,
33411,
983,
62,
15654,
796,
366,
15017,
9500,
10499,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1700,
618,
262,
983,
373,
379,
262,
2986,
9500,
10499,
30,
46506,
1700,
16034,
3084,
62,
23188,
2780,
38907,
62,
16,
33411,
983,
62,
15654,
796,
366,
15017,
9500,
10499,
1
] |
Name the least game for score of l 93 109 (ot) | SELECT MIN("Game") FROM table_2796 WHERE "Score" = 'L 93–109 (OT)' | [
5376,
262,
1551,
983,
329,
4776,
286,
300,
10261,
16003,
357,
313,
8,
46506,
20625,
7203,
8777,
4943,
16034,
3084,
62,
1983,
4846,
33411,
366,
26595,
1,
796,
705,
43,
10261,
1906,
14454,
357,
2394,
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
] | [
5376,
262,
1551,
983,
329,
4776,
286,
300,
10261,
16003,
357,
313,
8,
46506,
20625,
7203,
8777,
4943,
16034,
3084,
62,
1983,
4846,
33411,
366,
26595,
1,
796,
705,
43,
10261,
1906,
14454,
357,
2394,
33047
] |
What is average Overall, when Pick is 19? | SELECT AVG("Overall") FROM table_44768 WHERE "Pick" = '19' | [
2061,
318,
2811,
14674,
11,
618,
12346,
318,
678,
30,
46506,
35224,
7203,
16350,
4943,
16034,
3084,
62,
2598,
30610,
33411,
366,
31686,
1,
796,
705,
1129,
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
] | [
2061,
318,
2811,
14674,
11,
618,
12346,
318,
678,
30,
46506,
35224,
7203,
16350,
4943,
16034,
3084,
62,
2598,
30610,
33411,
366,
31686,
1,
796,
705,
1129,
6
] |
Number of comments over time. | SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS "date", COUNT(*) AS "occurence" FROM Comments GROUP BY DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) ORDER BY DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) | [
15057,
286,
3651,
625,
640,
13,
46506,
360,
6158,
29266,
7,
8424,
11,
360,
11617,
29267,
7,
8424,
11,
657,
11,
21582,
10430,
828,
657,
8,
7054,
366,
4475,
1600,
327,
28270,
7,
28104,
7054,
366,
13966,
495,
1198,
1,
16034,
19502,
44441,
11050,
360,
6158,
29266,
7,
8424,
11,
360,
11617,
29267,
7,
8424,
11,
657,
11,
21582,
10430,
828,
657,
8,
38678,
11050,
360,
6158,
29266,
7,
8424,
11,
360,
11617,
29267,
7,
8424,
11,
657,
11,
21582,
10430,
828,
657,
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
] | [
15057,
286,
3651,
625,
640,
13,
46506,
360,
6158,
29266,
7,
8424,
11,
360,
11617,
29267,
7,
8424,
11,
657,
11,
21582,
10430,
828,
657,
8,
7054,
366,
4475,
1600,
327,
28270,
7,
28104,
7054,
366,
13966,
495,
1198,
1,
16034,
19502,
44441,
11050,
360,
6158,
29266,
7,
8424,
11,
360,
11617,
29267,
7,
8424,
11,
657,
11,
21582,
10430,
828,
657,
8,
38678,
11050,
360,
6158,
29266,
7,
8424,
11,
360,
11617,
29267,
7,
8424,
11,
657,
11,
21582,
10430,
828,
657,
8
] |
what is the constituency when the rank is less than 5 and the result is con hold? | SELECT constituency FROM table_name_64 WHERE rank < 5 AND result = "con hold" | [
10919,
318,
262,
28280,
618,
262,
4279,
318,
1342,
621,
642,
290,
262,
1255,
318,
369,
1745,
30,
46506,
28280,
16034,
3084,
62,
3672,
62,
2414,
33411,
4279,
1279,
642,
5357,
1255,
796,
366,
1102,
1745,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28280,
618,
262,
4279,
318,
1342,
621,
642,
290,
262,
1255,
318,
369,
1745,
30,
46506,
28280,
16034,
3084,
62,
3672,
62,
2414,
33411,
4279,
1279,
642,
5357,
1255,
796,
366,
1102,
1745,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a line chart about the change of salary over hire_date . | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
1627,
8262,
546,
262,
1487,
286,
9588,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
42475,
13153,
16034,
4409,
33411,
5626,
5550,
30709,
10979,
62,
2389,
3268,
357,
46506,
5550,
30709,
10979,
62,
2389,
16034,
13346,
33411,
17254,
4760,
1137,
62,
2389,
38651,
8845,
1677,
1802,
5357,
939,
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
] | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
1627,
8262,
546,
262,
1487,
286,
9588,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
42475,
13153,
16034,
4409,
33411,
5626,
5550,
30709,
10979,
62,
2389,
3268,
357,
46506,
5550,
30709,
10979,
62,
2389,
16034,
13346,
33411,
17254,
4760,
1137,
62,
2389,
38651,
8845,
1677,
1802,
5357,
939,
8
] |
How many tries had a losing bonus of 5, and were part of the Maesteg Celtic RFC club? | SELECT tries_for FROM table_name_73 WHERE losing_bonus = "5" AND club = "maesteg celtic rfc" | [
2437,
867,
8404,
550,
257,
6078,
7202,
286,
642,
11,
290,
547,
636,
286,
262,
6669,
395,
1533,
27986,
30978,
3430,
30,
46506,
8404,
62,
1640,
16034,
3084,
62,
3672,
62,
4790,
33411,
6078,
62,
4189,
385,
796,
366,
20,
1,
5357,
3430,
796,
366,
2611,
395,
1533,
269,
2120,
291,
374,
16072,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8404,
550,
257,
6078,
7202,
286,
642,
11,
290,
547,
636,
286,
262,
6669,
395,
1533,
27986,
30978,
3430,
30,
46506,
8404,
62,
1640,
16034,
3084,
62,
3672,
62,
4790,
33411,
6078,
62,
4189,
385,
796,
366,
20,
1,
5357,
3430,
796,
366,
2611,
395,
1533,
269,
2120,
291,
374,
16072,
1
] |
The original artist The Temptations has what week #? | SELECT week__number FROM table_26250253_1 WHERE original_artist = "The Temptations" | [
464,
2656,
6802,
383,
309,
1791,
602,
468,
644,
1285,
1303,
30,
46506,
1285,
834,
17618,
16034,
3084,
62,
2075,
9031,
28592,
62,
16,
33411,
2656,
62,
49016,
796,
366,
464,
309,
1791,
602,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
6802,
383,
309,
1791,
602,
468,
644,
1285,
1303,
30,
46506,
1285,
834,
17618,
16034,
3084,
62,
2075,
9031,
28592,
62,
16,
33411,
2656,
62,
49016,
796,
366,
464,
309,
1791,
602,
1
] |
Plot date of transaction by mean share count as a trend line, and I want to show from high to low by the x-axis. | SELECT date_of_transaction, AVG(share_count) FROM Transactions ORDER BY date_of_transaction DESC | [
43328,
3128,
286,
8611,
416,
1612,
2648,
954,
355,
257,
5182,
1627,
11,
290,
314,
765,
284,
905,
422,
1029,
284,
1877,
416,
262,
2124,
12,
22704,
13,
46506,
3128,
62,
1659,
62,
7645,
2673,
11,
35224,
7,
20077,
62,
9127,
8,
16034,
46192,
38678,
11050,
3128,
62,
1659,
62,
7645,
2673,
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
] | [
43328,
3128,
286,
8611,
416,
1612,
2648,
954,
355,
257,
5182,
1627,
11,
290,
314,
765,
284,
905,
422,
1029,
284,
1877,
416,
262,
2124,
12,
22704,
13,
46506,
3128,
62,
1659,
62,
7645,
2673,
11,
35224,
7,
20077,
62,
9127,
8,
16034,
46192,
38678,
11050,
3128,
62,
1659,
62,
7645,
2673,
22196,
34
] |
What was the Date of Death of the person whose Date of Birth was 28 May 1371? | SELECT "Date of death" FROM table_55800 WHERE "Date of birth" = '28 may 1371' | [
2061,
373,
262,
7536,
286,
5830,
286,
262,
1048,
3025,
7536,
286,
17647,
373,
2579,
1737,
1511,
4869,
30,
46506,
366,
10430,
286,
1918,
1,
16034,
3084,
62,
2816,
7410,
33411,
366,
10430,
286,
4082,
1,
796,
705,
2078,
743,
1511,
4869,
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
] | [
2061,
373,
262,
7536,
286,
5830,
286,
262,
1048,
3025,
7536,
286,
17647,
373,
2579,
1737,
1511,
4869,
30,
46506,
366,
10430,
286,
1918,
1,
16034,
3084,
62,
2816,
7410,
33411,
366,
10430,
286,
4082,
1,
796,
705,
2078,
743,
1511,
4869,
6
] |
Tag badge owners, in increasing order of rep. | SELECT U.Id AS "user_link", U.Reputation FROM Users AS U INNER JOIN Badges AS B ON B.UserId = U.Id WHERE B.Class = '##BadgeClass?3##' AND B.TagBased = 1 AND B.Name = '##Tag?haskell##' ORDER BY U.Reputation | [
24835,
23009,
4393,
11,
287,
3649,
1502,
286,
1128,
13,
46506,
471,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
471,
13,
6207,
7094,
16034,
18987,
7054,
471,
3268,
21479,
32357,
1268,
7772,
3212,
7054,
347,
6177,
347,
13,
12982,
7390,
796,
471,
13,
7390,
33411,
347,
13,
9487,
796,
705,
2235,
22069,
469,
9487,
30,
18,
2235,
6,
5357,
347,
13,
24835,
15001,
796,
352,
5357,
347,
13,
5376,
796,
705,
2235,
24835,
30,
10134,
17164,
2235,
6,
38678,
11050,
471,
13,
6207,
7094
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24835,
23009,
4393,
11,
287,
3649,
1502,
286,
1128,
13,
46506,
471,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
471,
13,
6207,
7094,
16034,
18987,
7054,
471,
3268,
21479,
32357,
1268,
7772,
3212,
7054,
347,
6177,
347,
13,
12982,
7390,
796,
471,
13,
7390,
33411,
347,
13,
9487,
796,
705,
2235,
22069,
469,
9487,
30,
18,
2235,
6,
5357,
347,
13,
24835,
15001,
796,
352,
5357,
347,
13,
5376,
796,
705,
2235,
24835,
30,
10134,
17164,
2235,
6,
38678,
11050,
471,
13,
6207,
7094
] |
What was the attendance when the series was at 0-1? | SELECT "Attendance" FROM table_15508 WHERE "Series" = '0-1' | [
2061,
373,
262,
14858,
618,
262,
2168,
373,
379,
657,
12,
16,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
1314,
33042,
33411,
366,
27996,
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
] | [
2061,
373,
262,
14858,
618,
262,
2168,
373,
379,
657,
12,
16,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
1314,
33042,
33411,
366,
27996,
1,
796,
705,
15,
12,
16,
6
] |
What is every year with average start of 27.2? | SELECT "Year" FROM table_3457 WHERE "Avg. Start" = '27.2' | [
2061,
318,
790,
614,
351,
2811,
923,
286,
2681,
13,
17,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
27712,
22,
33411,
366,
48997,
13,
7253,
1,
796,
705,
1983,
13,
17,
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,
790,
614,
351,
2811,
923,
286,
2681,
13,
17,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
27712,
22,
33411,
366,
48997,
13,
7253,
1,
796,
705,
1983,
13,
17,
6
] |
What is Team, when Game is '32'? | SELECT team FROM table_name_96 WHERE game = 32 | [
2061,
318,
4816,
11,
618,
3776,
318,
705,
2624,
30960,
46506,
1074,
16034,
3084,
62,
3672,
62,
4846,
33411,
983,
796,
3933
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
4816,
11,
618,
3776,
318,
705,
2624,
30960,
46506,
1074,
16034,
3084,
62,
3672,
62,
4846,
33411,
983,
796,
3933
] |
What is the smallest number of assists with 70 Pims and less than 19 goals? | SELECT MIN("Assists") FROM table_34709 WHERE "Pims" = '70' AND "Goals" < '19' | [
2061,
318,
262,
18197,
1271,
286,
13648,
351,
4317,
350,
12078,
290,
1342,
621,
678,
4661,
30,
46506,
20625,
7203,
8021,
1023,
4943,
16034,
3084,
62,
2682,
31495,
33411,
366,
47,
12078,
1,
796,
705,
2154,
6,
5357,
366,
5247,
874,
1,
1279,
705,
1129,
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
] | [
2061,
318,
262,
18197,
1271,
286,
13648,
351,
4317,
350,
12078,
290,
1342,
621,
678,
4661,
30,
46506,
20625,
7203,
8021,
1023,
4943,
16034,
3084,
62,
2682,
31495,
33411,
366,
47,
12078,
1,
796,
705,
2154,
6,
5357,
366,
5247,
874,
1,
1279,
705,
1129,
6
] |
What is Date, when Visitor is Toronto? | SELECT "Date" FROM table_47645 WHERE "Visitor" = 'toronto' | [
2061,
318,
7536,
11,
618,
6911,
2072,
318,
6586,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
35435,
2231,
33411,
366,
15854,
2072,
1,
796,
705,
13165,
5957,
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
] | [
2061,
318,
7536,
11,
618,
6911,
2072,
318,
6586,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
35435,
2231,
33411,
366,
15854,
2072,
1,
796,
705,
13165,
5957,
6
] |
Find the number of characteristics that the product 'flax' has. | SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN characteristics AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "flax" | [
16742,
262,
1271,
286,
9695,
326,
262,
1720,
705,
2704,
897,
6,
468,
13,
46506,
327,
28270,
7,
28104,
16034,
3186,
7054,
256,
16,
32357,
1268,
1720,
62,
22769,
3969,
7054,
256,
17,
6177,
256,
16,
13,
11167,
62,
312,
796,
256,
17,
13,
11167,
62,
312,
32357,
1268,
9695,
7054,
256,
18,
6177,
256,
17,
13,
22769,
2569,
62,
312,
796,
256,
18,
13,
22769,
2569,
62,
312,
33411,
256,
16,
13,
11167,
62,
3672,
796,
366,
2704,
897,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
9695,
326,
262,
1720,
705,
2704,
897,
6,
468,
13,
46506,
327,
28270,
7,
28104,
16034,
3186,
7054,
256,
16,
32357,
1268,
1720,
62,
22769,
3969,
7054,
256,
17,
6177,
256,
16,
13,
11167,
62,
312,
796,
256,
17,
13,
11167,
62,
312,
32357,
1268,
9695,
7054,
256,
18,
6177,
256,
17,
13,
22769,
2569,
62,
312,
796,
256,
18,
13,
22769,
2569,
62,
312,
33411,
256,
16,
13,
11167,
62,
3672,
796,
366,
2704,
897,
1
] |
Can you tell me the Score that has the Date of 05 dec? | SELECT "Score" FROM table_58672 WHERE "Date" = '05 dec' | [
6090,
345,
1560,
502,
262,
15178,
326,
468,
262,
7536,
286,
8870,
875,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3365,
43864,
33411,
366,
10430,
1,
796,
705,
2713,
875,
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
] | [
6090,
345,
1560,
502,
262,
15178,
326,
468,
262,
7536,
286,
8870,
875,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3365,
43864,
33411,
366,
10430,
1,
796,
705,
2713,
875,
6
] |
What is the highest Year, when Apparatus is 'Vault', and when Rank-Final is less than 9? | SELECT MAX(year) FROM table_name_45 WHERE apparatus = "vault" AND rank_final < 9 | [
2061,
318,
262,
4511,
6280,
11,
618,
2034,
283,
7240,
318,
705,
53,
1721,
3256,
290,
618,
10916,
12,
19006,
318,
1342,
621,
860,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
21152,
796,
366,
85,
1721,
1,
5357,
4279,
62,
20311,
1279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
6280,
11,
618,
2034,
283,
7240,
318,
705,
53,
1721,
3256,
290,
618,
10916,
12,
19006,
318,
1342,
621,
860,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
21152,
796,
366,
85,
1721,
1,
5357,
4279,
62,
20311,
1279,
860
] |
What is the time for the rank after 5 with sc/d notes? | SELECT "Time" FROM table_63787 WHERE "Notes" = 'sc/d' AND "Rank" > '5' | [
2061,
318,
262,
640,
329,
262,
4279,
706,
642,
351,
629,
14,
67,
4710,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
21,
2718,
5774,
33411,
366,
16130,
1,
796,
705,
1416,
14,
67,
6,
5357,
366,
27520,
1,
1875,
705,
20,
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
] | [
2061,
318,
262,
640,
329,
262,
4279,
706,
642,
351,
629,
14,
67,
4710,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
21,
2718,
5774,
33411,
366,
16130,
1,
796,
705,
1416,
14,
67,
6,
5357,
366,
27520,
1,
1875,
705,
20,
6
] |
How many Stack Exchange Members are there?. | SELECT COUNT(u.Id) AS "total users", SUM(u.UpVotes) AS "total upvotes", SUM(u.DownVotes) AS "total downvotes" FROM Users AS u | [
2437,
867,
23881,
12516,
12688,
389,
612,
30,
13,
46506,
327,
28270,
7,
84,
13,
7390,
8,
7054,
366,
23350,
2985,
1600,
35683,
7,
84,
13,
4933,
53,
6421,
8,
7054,
366,
23350,
510,
29307,
1600,
35683,
7,
84,
13,
8048,
53,
6421,
8,
7054,
366,
23350,
866,
29307,
1,
16034,
18987,
7054,
334
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23881,
12516,
12688,
389,
612,
30,
13,
46506,
327,
28270,
7,
84,
13,
7390,
8,
7054,
366,
23350,
2985,
1600,
35683,
7,
84,
13,
4933,
53,
6421,
8,
7054,
366,
23350,
510,
29307,
1600,
35683,
7,
84,
13,
8048,
53,
6421,
8,
7054,
366,
23350,
866,
29307,
1,
16034,
18987,
7054,
334
] |
Show the total salary by each hire date of employees, and please bin the hire date into the day of week interval for showing a bar chart, and I want to show by the y-axis in descending please. | SELECT HIRE_DATE, SUM(SALARY) FROM employees ORDER BY SUM(SALARY) DESC | [
15307,
262,
2472,
9588,
416,
1123,
11078,
3128,
286,
4409,
11,
290,
3387,
9874,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
329,
4478,
257,
2318,
8262,
11,
290,
314,
765,
284,
905,
416,
262,
331,
12,
22704,
287,
31491,
3387,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
50,
1847,
13153,
8,
16034,
4409,
38678,
11050,
35683,
7,
50,
1847,
13153,
8,
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
] | [
15307,
262,
2472,
9588,
416,
1123,
11078,
3128,
286,
4409,
11,
290,
3387,
9874,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
329,
4478,
257,
2318,
8262,
11,
290,
314,
765,
284,
905,
416,
262,
331,
12,
22704,
287,
31491,
3387,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
50,
1847,
13153,
8,
16034,
4409,
38678,
11050,
35683,
7,
50,
1847,
13153,
8,
22196,
34
] |
show me the earliest flight from BOSTON to DENVER | 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time = (SELECT MIN(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, flight AS FLIGHTalias1 WHERE CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'DENVER' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) | [
12860,
502,
262,
14555,
5474,
422,
347,
10892,
1340,
284,
37692,
28884,
36,
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,
357,
34,
9050,
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,
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,
8,
5357,
5474,
13,
10378,
433,
495,
62,
2435,
796,
357,
46506,
20625,
7,
3697,
9947,
26011,
16,
13,
10378,
433,
495,
62,
2435,
8,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
17,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
18,
11,
1748,
7054,
27993,
26011,
17,
11,
1748,
7054,
27993,
26011,
18,
11,
5474,
7054,
9977,
9947,
26011,
16,
33411,
27993,
26011,
17,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
19205,
62,
8189,
5357,
27993,
26011,
17,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
26011,
18,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
19205,
62,
8189,
5357,
27993,
26011,
18,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
9977,
9947,
26011,
16,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
958,
634,
62,
8189,
5357,
9977,
9947,
26011,
16,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
958,
634,
62,
8189,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
14555,
5474,
422,
347,
10892,
1340,
284,
37692,
28884,
36,
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,
357,
34,
9050,
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,
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,
8,
5357,
5474,
13,
10378,
433,
495,
62,
2435,
796,
357,
46506,
20625,
7,
3697,
9947,
26011,
16,
13,
10378,
433,
495,
62,
2435,
8,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
17,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
18,
11,
1748,
7054,
27993,
26011,
17,
11,
1748,
7054,
27993,
26011,
18,
11,
5474,
7054,
9977,
9947,
26011,
16,
33411,
27993,
26011,
17,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
19205,
62,
8189,
5357,
27993,
26011,
17,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
26011,
18,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
19205,
62,
8189,
5357,
27993,
26011,
18,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
9977,
9947,
26011,
16,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
958,
634,
62,
8189,
5357,
9977,
9947,
26011,
16,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
958,
634,
62,
8189,
8
] |
when did patient 031-16123 first receive since 98 months ago a blood, venipuncture microbiology test? | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123')) AND microlab.culturesite = 'blood, venipuncture' AND DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME(), '-98 month') ORDER BY microlab.culturetakentime LIMIT 1 | [
12518,
750,
5827,
657,
3132,
12,
1433,
10163,
717,
3328,
1201,
9661,
1933,
2084,
257,
2910,
11,
8710,
541,
39187,
24559,
1435,
1332,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
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,
43637,
12,
1433,
10163,
6,
4008,
5357,
4580,
23912,
13,
40820,
942,
578,
796,
705,
18041,
11,
8710,
541,
39187,
6,
5357,
360,
1404,
2767,
12789,
7,
24055,
23912,
13,
25584,
83,
461,
298,
524,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
4089,
1227,
11537,
38678,
11050,
4580,
23912,
13,
25584,
83,
461,
298,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
750,
5827,
657,
3132,
12,
1433,
10163,
717,
3328,
1201,
9661,
1933,
2084,
257,
2910,
11,
8710,
541,
39187,
24559,
1435,
1332,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
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,
43637,
12,
1433,
10163,
6,
4008,
5357,
4580,
23912,
13,
40820,
942,
578,
796,
705,
18041,
11,
8710,
541,
39187,
6,
5357,
360,
1404,
2767,
12789,
7,
24055,
23912,
13,
25584,
83,
461,
298,
524,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
4089,
1227,
11537,
38678,
11050,
4580,
23912,
13,
25584,
83,
461,
298,
524,
27564,
2043,
352
] |
Question-Answer distribution on non-closed questions. | SELECT AnswerCount, COUNT(*) FROM Posts WHERE PostTypeId = 1 GROUP BY AnswerCount ORDER BY AnswerCount | [
24361,
12,
33706,
6082,
319,
1729,
12,
20225,
2683,
13,
46506,
23998,
12332,
11,
327,
28270,
7,
28104,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
44441,
11050,
23998,
12332,
38678,
11050,
23998,
12332
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24361,
12,
33706,
6082,
319,
1729,
12,
20225,
2683,
13,
46506,
23998,
12332,
11,
327,
28270,
7,
28104,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
44441,
11050,
23998,
12332,
38678,
11050,
23998,
12332
] |
List the number of each company whose office is in the building in a bar chart, and sort by the how many name in desc. | SELECT T3.name, COUNT(T3.name) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T3.name ORDER BY COUNT(T3.name) DESC | [
8053,
262,
1271,
286,
1123,
1664,
3025,
2607,
318,
287,
262,
2615,
287,
257,
2318,
8262,
11,
290,
3297,
416,
262,
703,
867,
1438,
287,
1715,
13,
46506,
309,
18,
13,
3672,
11,
327,
28270,
7,
51,
18,
13,
3672,
8,
16034,
4452,
62,
17946,
602,
7054,
309,
16,
32357,
1268,
6832,
7054,
309,
17,
6177,
309,
16,
13,
16894,
62,
312,
796,
309,
17,
13,
312,
32357,
1268,
24382,
7054,
309,
18,
6177,
309,
16,
13,
39722,
62,
312,
796,
309,
18,
13,
312,
44441,
11050,
309,
18,
13,
3672,
38678,
11050,
327,
28270,
7,
51,
18,
13,
3672,
8,
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
] | [
8053,
262,
1271,
286,
1123,
1664,
3025,
2607,
318,
287,
262,
2615,
287,
257,
2318,
8262,
11,
290,
3297,
416,
262,
703,
867,
1438,
287,
1715,
13,
46506,
309,
18,
13,
3672,
11,
327,
28270,
7,
51,
18,
13,
3672,
8,
16034,
4452,
62,
17946,
602,
7054,
309,
16,
32357,
1268,
6832,
7054,
309,
17,
6177,
309,
16,
13,
16894,
62,
312,
796,
309,
17,
13,
312,
32357,
1268,
24382,
7054,
309,
18,
6177,
309,
16,
13,
39722,
62,
312,
796,
309,
18,
13,
312,
44441,
11050,
309,
18,
13,
3672,
38678,
11050,
327,
28270,
7,
51,
18,
13,
3672,
8,
22196,
34
] |
how many times is the location is homestead, florida? | SELECT COUNT(pole_position) FROM table_2696531_2 WHERE location = "Homestead, Florida" | [
4919,
867,
1661,
318,
262,
4067,
318,
3488,
37897,
11,
781,
273,
3755,
30,
46506,
327,
28270,
7,
36869,
62,
9150,
8,
16034,
3084,
62,
26276,
2996,
3132,
62,
17,
33411,
4067,
796,
366,
28718,
37897,
11,
4744,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
318,
262,
4067,
318,
3488,
37897,
11,
781,
273,
3755,
30,
46506,
327,
28270,
7,
36869,
62,
9150,
8,
16034,
3084,
62,
26276,
2996,
3132,
62,
17,
33411,
4067,
796,
366,
28718,
37897,
11,
4744,
1
] |
what number of patients admitted to the emergency room have been diagnosed under icd9 code 52809? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND diagnoses.icd9_code = "52809" | [
10919,
1271,
286,
3871,
6848,
284,
262,
6334,
2119,
423,
587,
14641,
739,
14158,
67,
24,
2438,
6740,
34583,
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,
324,
3411,
62,
24886,
796,
366,
3620,
49837,
45155,
15107,
2662,
5984,
36393,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
4309,
34583,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
6848,
284,
262,
6334,
2119,
423,
587,
14641,
739,
14158,
67,
24,
2438,
6740,
34583,
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,
324,
3411,
62,
24886,
796,
366,
3620,
49837,
45155,
15107,
2662,
5984,
36393,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
4309,
34583,
1
] |
I want the sum of year for edition more than 4 and winners of new york red bulls | SELECT SUM(year) FROM table_name_93 WHERE edition > 4 AND winner = "new york red bulls" | [
40,
765,
262,
2160,
286,
614,
329,
8313,
517,
621,
604,
290,
14591,
286,
649,
331,
967,
2266,
40317,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
8313,
1875,
604,
5357,
8464,
796,
366,
3605,
331,
967,
2266,
40317,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
2160,
286,
614,
329,
8313,
517,
621,
604,
290,
14591,
286,
649,
331,
967,
2266,
40317,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
8313,
1875,
604,
5357,
8464,
796,
366,
3605,
331,
967,
2266,
40317,
1
] |
What is Team (B), when S No is greater than 17? | SELECT "Team (B)" FROM table_41136 WHERE "S No" > '17' | [
2061,
318,
4816,
357,
33,
828,
618,
311,
1400,
318,
3744,
621,
1596,
30,
46506,
366,
15592,
357,
33,
16725,
16034,
3084,
62,
42224,
2623,
33411,
366,
50,
1400,
1,
1875,
705,
1558,
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,
4816,
357,
33,
828,
618,
311,
1400,
318,
3744,
621,
1596,
30,
46506,
366,
15592,
357,
33,
16725,
16034,
3084,
62,
42224,
2623,
33411,
366,
50,
1400,
1,
1875,
705,
1558,
6
] |
What rank has 0 as the bronze, and a total less than 3, with north korea as the nation? | SELECT "Rank" FROM table_7530 WHERE "Bronze" = '0' AND "Total" < '3' AND "Nation" = 'north korea' | [
2061,
4279,
468,
657,
355,
262,
22101,
11,
290,
257,
2472,
1342,
621,
513,
11,
351,
5093,
479,
46215,
355,
262,
3277,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
2425,
1270,
33411,
366,
18760,
2736,
1,
796,
705,
15,
6,
5357,
366,
14957,
1,
1279,
705,
18,
6,
5357,
366,
46108,
1,
796,
705,
43588,
479,
46215,
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
] | [
2061,
4279,
468,
657,
355,
262,
22101,
11,
290,
257,
2472,
1342,
621,
513,
11,
351,
5093,
479,
46215,
355,
262,
3277,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
2425,
1270,
33411,
366,
18760,
2736,
1,
796,
705,
15,
6,
5357,
366,
14957,
1,
1279,
705,
18,
6,
5357,
366,
46108,
1,
796,
705,
43588,
479,
46215,
6
] |
ELI 321 has been in existence for how long ? | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ELI' AND course.number = 321 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | [
3698,
40,
39595,
468,
587,
287,
6224,
329,
703,
890,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
3698,
40,
6,
5357,
1781,
13,
17618,
796,
39595,
5357,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
38678,
11050,
24878,
13,
1941,
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
] | [
3698,
40,
39595,
468,
587,
287,
6224,
329,
703,
890,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
3698,
40,
6,
5357,
1781,
13,
17618,
796,
39595,
5357,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
38678,
11050,
24878,
13,
1941,
27564,
2043,
352
] |
What is the Week of the game against Seattle Seahawks? | SELECT AVG(week) FROM table_name_30 WHERE opponent = "seattle seahawks" | [
2061,
318,
262,
6119,
286,
262,
983,
1028,
7312,
16732,
30,
46506,
35224,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
6125,
796,
366,
325,
1999,
384,
993,
11890,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
6119,
286,
262,
983,
1028,
7312,
16732,
30,
46506,
35224,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
6125,
796,
366,
325,
1999,
384,
993,
11890,
1
] |
What was the Lok Sabha in Karakat (Vidhan Sabha Constituency)? | SELECT lok_sabha FROM table_29785324_5 WHERE vidhan_sabha_constituency = "Karakat (Vidhan Sabha constituency)" | [
2061,
373,
262,
36861,
41941,
287,
9375,
461,
265,
357,
53,
312,
7637,
41941,
4757,
34272,
1387,
19427,
46506,
300,
482,
62,
82,
397,
3099,
16034,
3084,
62,
1959,
3695,
4310,
1731,
62,
20,
33411,
410,
312,
7637,
62,
82,
397,
3099,
62,
9979,
34272,
1387,
796,
366,
42,
30447,
265,
357,
53,
312,
7637,
41941,
28280,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
36861,
41941,
287,
9375,
461,
265,
357,
53,
312,
7637,
41941,
4757,
34272,
1387,
19427,
46506,
300,
482,
62,
82,
397,
3099,
16034,
3084,
62,
1959,
3695,
4310,
1731,
62,
20,
33411,
410,
312,
7637,
62,
82,
397,
3099,
62,
9979,
34272,
1387,
796,
366,
42,
30447,
265,
357,
53,
312,
7637,
41941,
28280,
16725
] |
what are the five year survival rates for those who were prescribed pantoprazole sod after having been diagnosed with pericardial tamponade - by echocardiogram? | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'pericardial tamponade - by echocardiogram' GROUP BY patient.uniquepid HAVING MIN(diagnosis.diagnosistime) = diagnosis.diagnosistime) AS t1) AS t2 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'pantoprazole sod') AS t3 ON t2.uniquepid = t3.uniquepid WHERE t2.diagnosistime < t3.drugstarttime) AS t4 JOIN patient ON t4.uniquepid = patient.uniquepid | [
10919,
389,
262,
1936,
614,
9441,
3965,
329,
883,
508,
547,
14798,
15857,
404,
3247,
2305,
32581,
706,
1719,
587,
14641,
351,
583,
291,
446,
498,
47039,
261,
671,
532,
416,
304,
354,
420,
22490,
21857,
30,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
11121,
395,
7240,
796,
705,
282,
425,
6,
42243,
352,
42099,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
49257,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
256,
19,
13,
47356,
418,
396,
524,
8,
1875,
642,
1635,
21268,
42243,
352,
17852,
5188,
657,
23578,
8,
1635,
1802,
1220,
327,
28270,
7,
28104,
16034,
357,
46506,
256,
17,
13,
403,
1557,
538,
312,
11,
256,
17,
13,
47356,
418,
396,
524,
16034,
357,
46506,
256,
16,
13,
403,
1557,
538,
312,
11,
256,
16,
13,
47356,
418,
396,
524,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
13669,
13,
47356,
418,
396,
524,
16034,
13669,
32357,
1268,
5827,
6177,
13669,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
13669,
13,
47356,
5958,
3672,
796,
705,
525,
291,
446,
498,
47039,
261,
671,
532,
416,
304,
354,
420,
22490,
21857,
6,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
367,
10116,
2751,
20625,
7,
47356,
5958,
13,
47356,
418,
396,
524,
8,
796,
13669,
13,
47356,
418,
396,
524,
8,
7054,
256,
16,
8,
7054,
256,
17,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
14103,
13,
30349,
9688,
2435,
16034,
14103,
32357,
1268,
5827,
6177,
14103,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
14103,
13,
30349,
3672,
796,
705,
79,
415,
404,
3247,
2305,
32581,
11537,
7054,
256,
18,
6177,
256,
17,
13,
403,
1557,
538,
312,
796,
256,
18,
13,
403,
1557,
538,
312,
33411,
256,
17,
13,
47356,
418,
396,
524,
1279,
256,
18,
13,
30349,
9688,
2435,
8,
7054,
256,
19,
32357,
1268,
5827,
6177,
256,
19,
13,
403,
1557,
538,
312,
796,
5827,
13,
403,
1557,
538,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
614,
9441,
3965,
329,
883,
508,
547,
14798,
15857,
404,
3247,
2305,
32581,
706,
1719,
587,
14641,
351,
583,
291,
446,
498,
47039,
261,
671,
532,
416,
304,
354,
420,
22490,
21857,
30,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
11121,
395,
7240,
796,
705,
282,
425,
6,
42243,
352,
42099,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
49257,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
256,
19,
13,
47356,
418,
396,
524,
8,
1875,
642,
1635,
21268,
42243,
352,
17852,
5188,
657,
23578,
8,
1635,
1802,
1220,
327,
28270,
7,
28104,
16034,
357,
46506,
256,
17,
13,
403,
1557,
538,
312,
11,
256,
17,
13,
47356,
418,
396,
524,
16034,
357,
46506,
256,
16,
13,
403,
1557,
538,
312,
11,
256,
16,
13,
47356,
418,
396,
524,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
13669,
13,
47356,
418,
396,
524,
16034,
13669,
32357,
1268,
5827,
6177,
13669,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
13669,
13,
47356,
5958,
3672,
796,
705,
525,
291,
446,
498,
47039,
261,
671,
532,
416,
304,
354,
420,
22490,
21857,
6,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
367,
10116,
2751,
20625,
7,
47356,
5958,
13,
47356,
418,
396,
524,
8,
796,
13669,
13,
47356,
418,
396,
524,
8,
7054,
256,
16,
8,
7054,
256,
17,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
14103,
13,
30349,
9688,
2435,
16034,
14103,
32357,
1268,
5827,
6177,
14103,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
14103,
13,
30349,
3672,
796,
705,
79,
415,
404,
3247,
2305,
32581,
11537,
7054,
256,
18,
6177,
256,
17,
13,
403,
1557,
538,
312,
796,
256,
18,
13,
403,
1557,
538,
312,
33411,
256,
17,
13,
47356,
418,
396,
524,
1279,
256,
18,
13,
30349,
9688,
2435,
8,
7054,
256,
19,
32357,
1268,
5827,
6177,
256,
19,
13,
403,
1557,
538,
312,
796,
5827,
13,
403,
1557,
538,
312
] |
Questions with answercount 0 and an acceptedanswer or merged. | SELECT DISTINCT p.Id AS "post_link", p.AcceptedAnswerId AS "accepted_answer_id", ap.Id AS "post_link", ph.CreationDate AS "merged_on" FROM Posts AS p LEFT OUTER JOIN Posts AS ap ON ap.Id = p.AcceptedAnswerId LEFT OUTER JOIN PostHistory AS ph ON ph.PostId = p.Id AND ph.PostHistoryTypeId = 37 WHERE p.PostTypeId = 1 AND p.AnswerCount = 0 AND NOT p.AcceptedAnswerId IS NULL | [
35741,
351,
2590,
2798,
608,
657,
290,
281,
6292,
41484,
393,
23791,
13,
46506,
360,
8808,
1268,
4177,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
38855,
276,
33706,
7390,
7054,
366,
13635,
276,
62,
41484,
62,
312,
1600,
2471,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
872,
13,
12443,
341,
10430,
7054,
366,
647,
2004,
62,
261,
1,
16034,
12043,
7054,
279,
12509,
9792,
16289,
1137,
32357,
1268,
12043,
7054,
2471,
6177,
2471,
13,
7390,
796,
279,
13,
38855,
276,
33706,
7390,
12509,
9792,
16289,
1137,
32357,
1268,
2947,
18122,
7054,
872,
6177,
872,
13,
6307,
7390,
796,
279,
13,
7390,
5357,
872,
13,
6307,
18122,
6030,
7390,
796,
5214,
33411,
279,
13,
6307,
6030,
7390,
796,
352,
5357,
279,
13,
33706,
12332,
796,
657,
5357,
5626,
279,
13,
38855,
276,
33706,
7390,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35741,
351,
2590,
2798,
608,
657,
290,
281,
6292,
41484,
393,
23791,
13,
46506,
360,
8808,
1268,
4177,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
38855,
276,
33706,
7390,
7054,
366,
13635,
276,
62,
41484,
62,
312,
1600,
2471,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
872,
13,
12443,
341,
10430,
7054,
366,
647,
2004,
62,
261,
1,
16034,
12043,
7054,
279,
12509,
9792,
16289,
1137,
32357,
1268,
12043,
7054,
2471,
6177,
2471,
13,
7390,
796,
279,
13,
38855,
276,
33706,
7390,
12509,
9792,
16289,
1137,
32357,
1268,
2947,
18122,
7054,
872,
6177,
872,
13,
6307,
7390,
796,
279,
13,
7390,
5357,
872,
13,
6307,
18122,
6030,
7390,
796,
5214,
33411,
279,
13,
6307,
6030,
7390,
796,
352,
5357,
279,
13,
33706,
12332,
796,
657,
5357,
5626,
279,
13,
38855,
276,
33706,
7390,
3180,
15697
] |
baseline hgb < 11.7 g / dl in female , or < 13 g / dl in male ; lymphopenia ( < 1000 / microl ) , or leukopenia ( < 3000 total leukocytes / microl ) , or an absolute cd4+ count < 500 / microl., or platelets < 150000 / microl | SELECT * FROM table_dev_47 WHERE (baseline_hemoglobin_hgb < 11.7 AND gender = 'female') OR (baseline_hemoglobin_hgb < 13 AND gender = 'male') OR lymphopenia < 1000 OR leukopenia < 3000 OR cd4_count < 500 OR platelets < 150000 | [
12093,
4470,
289,
22296,
1279,
1367,
13,
22,
308,
1220,
288,
75,
287,
4048,
837,
393,
1279,
1511,
308,
1220,
288,
75,
287,
4257,
2162,
28837,
9654,
544,
357,
1279,
8576,
1220,
4580,
75,
1267,
837,
393,
443,
2724,
9654,
544,
357,
1279,
20343,
2472,
443,
2724,
30309,
1220,
4580,
75,
1267,
837,
393,
281,
4112,
22927,
19,
10,
954,
1279,
5323,
1220,
4580,
75,
1539,
393,
7480,
5289,
1279,
1315,
2388,
1220,
4580,
75,
46506,
1635,
16034,
3084,
62,
7959,
62,
2857,
33411,
357,
12093,
4470,
62,
4411,
49835,
62,
71,
22296,
1279,
1367,
13,
22,
5357,
5279,
796,
705,
24724,
11537,
6375,
357,
12093,
4470,
62,
4411,
49835,
62,
71,
22296,
1279,
1511,
5357,
5279,
796,
705,
22606,
11537,
6375,
28837,
9654,
544,
1279,
8576,
6375,
443,
2724,
9654,
544,
1279,
20343,
6375,
22927,
19,
62,
9127,
1279,
5323,
6375,
7480,
5289,
1279,
1315,
2388
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12093,
4470,
289,
22296,
1279,
1367,
13,
22,
308,
1220,
288,
75,
287,
4048,
837,
393,
1279,
1511,
308,
1220,
288,
75,
287,
4257,
2162,
28837,
9654,
544,
357,
1279,
8576,
1220,
4580,
75,
1267,
837,
393,
443,
2724,
9654,
544,
357,
1279,
20343,
2472,
443,
2724,
30309,
1220,
4580,
75,
1267,
837,
393,
281,
4112,
22927,
19,
10,
954,
1279,
5323,
1220,
4580,
75,
1539,
393,
7480,
5289,
1279,
1315,
2388,
1220,
4580,
75,
46506,
1635,
16034,
3084,
62,
7959,
62,
2857,
33411,
357,
12093,
4470,
62,
4411,
49835,
62,
71,
22296,
1279,
1367,
13,
22,
5357,
5279,
796,
705,
24724,
11537,
6375,
357,
12093,
4470,
62,
4411,
49835,
62,
71,
22296,
1279,
1511,
5357,
5279,
796,
705,
22606,
11537,
6375,
28837,
9654,
544,
1279,
8576,
6375,
443,
2724,
9654,
544,
1279,
20343,
6375,
22927,
19,
62,
9127,
1279,
5323,
6375,
7480,
5289,
1279,
1315,
2388
] |
What season was the episode 'haunted' in? | SELECT MIN("No. in season") FROM table_73974 WHERE "Title" = 'Haunted' | [
2061,
1622,
373,
262,
4471,
705,
71,
20227,
6,
287,
30,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
22,
2670,
4524,
33411,
366,
19160,
1,
796,
705,
46979,
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,
1622,
373,
262,
4471,
705,
71,
20227,
6,
287,
30,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
22,
2670,
4524,
33411,
366,
19160,
1,
796,
705,
46979,
6
] |
What is the score of the match that was against alberto berasategui? | SELECT score_in_the_final FROM table_name_25 WHERE opponent_in_the_final = "alberto berasategui" | [
2061,
318,
262,
4776,
286,
262,
2872,
326,
373,
1028,
435,
32371,
18157,
292,
2397,
9019,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
1495,
33411,
6125,
62,
259,
62,
1169,
62,
20311,
796,
366,
282,
32371,
18157,
292,
2397,
9019,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
2872,
326,
373,
1028,
435,
32371,
18157,
292,
2397,
9019,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
1495,
33411,
6125,
62,
259,
62,
1169,
62,
20311,
796,
366,
282,
32371,
18157,
292,
2397,
9019,
1
] |
How many different players trained for more than 1000 hours? | SELECT COUNT(*) FROM player WHERE hs > 1000 | [
2437,
867,
1180,
1938,
8776,
329,
517,
621,
8576,
2250,
30,
46506,
327,
28270,
7,
28104,
16034,
2137,
33411,
289,
82,
1875,
8576
] | [
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,
1180,
1938,
8776,
329,
517,
621,
8576,
2250,
30,
46506,
327,
28270,
7,
28104,
16034,
2137,
33411,
289,
82,
1875,
8576
] |
What's the smallest total with a bronze count of 5 and a gold count less than 8? | SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8 | [
2061,
338,
262,
18197,
2472,
351,
257,
22101,
954,
286,
642,
290,
257,
3869,
954,
1342,
621,
807,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
22101,
796,
642,
5357,
3869,
1279,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18197,
2472,
351,
257,
22101,
954,
286,
642,
290,
257,
3869,
954,
1342,
621,
807,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
22101,
796,
642,
5357,
3869,
1279,
807
] |
What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread? | SELECT SUM("Billboard 200 Peak") FROM table_43346 WHERE "Title" = 'bread' | [
2061,
318,
262,
2160,
286,
262,
36229,
939,
23974,
8198,
1813,
284,
262,
3496,
351,
262,
11851,
28731,
30,
46506,
35683,
7203,
17798,
3526,
939,
23974,
4943,
16034,
3084,
62,
42117,
3510,
33411,
366,
19160,
1,
796,
705,
29573,
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
] | [
2061,
318,
262,
2160,
286,
262,
36229,
939,
23974,
8198,
1813,
284,
262,
3496,
351,
262,
11851,
28731,
30,
46506,
35683,
7203,
17798,
3526,
939,
23974,
4943,
16034,
3084,
62,
42117,
3510,
33411,
366,
19160,
1,
796,
705,
29573,
6
] |
What series was directed by Mark Roskin? | SELECT MIN("Series #") FROM table_23825 WHERE "Directed by" = 'Mark Roskin' | [
2061,
2168,
373,
7924,
416,
2940,
10018,
5116,
30,
46506,
20625,
7203,
27996,
1303,
4943,
16034,
3084,
62,
23721,
1495,
33411,
366,
13470,
276,
416,
1,
796,
705,
9704,
10018,
5116,
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
] | [
2061,
2168,
373,
7924,
416,
2940,
10018,
5116,
30,
46506,
20625,
7203,
27996,
1303,
4943,
16034,
3084,
62,
23721,
1495,
33411,
366,
13470,
276,
416,
1,
796,
705,
9704,
10018,
5116,
6
] |
What song was directed by Shankar Jaikishan? | SELECT song FROM table_name_13 WHERE music_director_s_ = "shankar jaikishan" | [
2061,
3496,
373,
7924,
416,
41595,
283,
13790,
1134,
680,
272,
30,
46506,
3496,
16034,
3084,
62,
3672,
62,
1485,
33411,
2647,
62,
35248,
62,
82,
62,
796,
366,
1477,
962,
283,
45091,
1134,
680,
272,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3496,
373,
7924,
416,
41595,
283,
13790,
1134,
680,
272,
30,
46506,
3496,
16034,
3084,
62,
3672,
62,
1485,
33411,
2647,
62,
35248,
62,
82,
62,
796,
366,
1477,
962,
283,
45091,
1134,
680,
272,
1
] |
What is the record of the game on May 30? | SELECT record FROM table_name_36 WHERE date = "may 30" | [
2061,
318,
262,
1700,
286,
262,
983,
319,
1737,
1542,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2623,
33411,
3128,
796,
366,
11261,
1542,
1
] | [
1,
1,
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,
1700,
286,
262,
983,
319,
1737,
1542,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2623,
33411,
3128,
796,
366,
11261,
1542,
1
] |
Return a bar chart about the distribution of name and meter_100 , and order in desc by the x-axis please. | SELECT name, meter_100 FROM swimmer ORDER BY name DESC | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
16430,
62,
3064,
837,
290,
1502,
287,
1715,
416,
262,
2124,
12,
22704,
3387,
13,
46506,
1438,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
1438,
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
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
16430,
62,
3064,
837,
290,
1502,
287,
1715,
416,
262,
2124,
12,
22704,
3387,
13,
46506,
1438,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
1438,
22196,
34
] |
Find the name and position of physicians who prescribe some medication whose brand is X? | SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.brand = "X" | [
16742,
262,
1438,
290,
2292,
286,
17206,
508,
32651,
617,
14103,
3025,
4508,
318,
1395,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
11,
309,
16,
13,
9150,
16034,
14325,
7054,
309,
16,
32357,
1268,
10859,
22090,
7054,
309,
17,
6177,
309,
16,
13,
7033,
1453,
312,
796,
309,
17,
13,
34411,
6749,
32357,
1268,
14103,
7054,
309,
18,
6177,
309,
18,
13,
8189,
796,
309,
17,
13,
1150,
3299,
33411,
309,
18,
13,
17938,
796,
366,
55,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1438,
290,
2292,
286,
17206,
508,
32651,
617,
14103,
3025,
4508,
318,
1395,
30,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
11,
309,
16,
13,
9150,
16034,
14325,
7054,
309,
16,
32357,
1268,
10859,
22090,
7054,
309,
17,
6177,
309,
16,
13,
7033,
1453,
312,
796,
309,
17,
13,
34411,
6749,
32357,
1268,
14103,
7054,
309,
18,
6177,
309,
18,
13,
8189,
796,
309,
17,
13,
1150,
3299,
33411,
309,
18,
13,
17938,
796,
366,
55,
1
] |
What are the goals of the assists of 5? | SELECT goals FROM table_name_92 WHERE assists = "5" | [
2061,
389,
262,
4661,
286,
262,
13648,
286,
642,
30,
46506,
4661,
16034,
3084,
62,
3672,
62,
5892,
33411,
13648,
796,
366,
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
] | [
2061,
389,
262,
4661,
286,
262,
13648,
286,
642,
30,
46506,
4661,
16034,
3084,
62,
3672,
62,
5892,
33411,
13648,
796,
366,
20,
1
] |
What is Score, when Outcome is 'winner', when Partnering is 'Nicole Sewell', and when Opponent in Final is 'Victoria Davies / Kate Warne-Holland'? | SELECT score FROM table_name_50 WHERE outcome = "winner" AND partnering = "nicole sewell" AND opponent_in_final = "victoria davies / kate warne-holland" | [
2061,
318,
15178,
11,
618,
3806,
2958,
318,
705,
39791,
3256,
618,
35532,
278,
318,
705,
30403,
2305,
27347,
695,
3256,
290,
618,
9385,
3471,
287,
8125,
318,
705,
49898,
26618,
1220,
16693,
1810,
710,
12,
39,
692,
392,
30960,
46506,
4776,
16034,
3084,
62,
3672,
62,
1120,
33411,
8055,
796,
366,
39791,
1,
5357,
41759,
796,
366,
6988,
2305,
384,
4053,
1,
5357,
6125,
62,
259,
62,
20311,
796,
366,
32433,
7661,
288,
615,
444,
1220,
479,
378,
1175,
710,
12,
71,
692,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
11,
618,
3806,
2958,
318,
705,
39791,
3256,
618,
35532,
278,
318,
705,
30403,
2305,
27347,
695,
3256,
290,
618,
9385,
3471,
287,
8125,
318,
705,
49898,
26618,
1220,
16693,
1810,
710,
12,
39,
692,
392,
30960,
46506,
4776,
16034,
3084,
62,
3672,
62,
1120,
33411,
8055,
796,
366,
39791,
1,
5357,
41759,
796,
366,
6988,
2305,
384,
4053,
1,
5357,
6125,
62,
259,
62,
20311,
796,
366,
32433,
7661,
288,
615,
444,
1220,
479,
378,
1175,
710,
12,
71,
692,
392,
1
] |
What is the name of the player when the Score was 72-73-67-72=284? | SELECT "Player" FROM table_8311 WHERE "Score" = '72-73-67-72=284' | [
2061,
318,
262,
1438,
286,
262,
2137,
618,
262,
15178,
373,
7724,
12,
4790,
12,
3134,
12,
4761,
28,
30336,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
5999,
1157,
33411,
366,
26595,
1,
796,
705,
4761,
12,
4790,
12,
3134,
12,
4761,
28,
30336,
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
] | [
2061,
318,
262,
1438,
286,
262,
2137,
618,
262,
15178,
373,
7724,
12,
4790,
12,
3134,
12,
4761,
28,
30336,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
5999,
1157,
33411,
366,
26595,
1,
796,
705,
4761,
12,
4790,
12,
3134,
12,
4761,
28,
30336,
6
] |
What is the name of the conference that K. C. Jones was a head coach in? | SELECT "Conf." FROM table_42065 WHERE "Head coach" = 'k. c. jones' | [
2061,
318,
262,
1438,
286,
262,
4495,
326,
509,
13,
327,
13,
5437,
373,
257,
1182,
3985,
287,
30,
46506,
366,
18546,
526,
16034,
3084,
62,
27211,
2996,
33411,
366,
13847,
3985,
1,
796,
705,
74,
13,
269,
13,
474,
1952,
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
] | [
2061,
318,
262,
1438,
286,
262,
4495,
326,
509,
13,
327,
13,
5437,
373,
257,
1182,
3985,
287,
30,
46506,
366,
18546,
526,
16034,
3084,
62,
27211,
2996,
33411,
366,
13847,
3985,
1,
796,
705,
74,
13,
269,
13,
474,
1952,
6
] |
What is the lowest total for 1985-1986 when the total points are 124? | SELECT MIN(1985 AS _1986) FROM table_name_33 WHERE total_points = 124 | [
2061,
318,
262,
9016,
2472,
329,
12863,
12,
28054,
618,
262,
2472,
2173,
389,
19755,
30,
46506,
20625,
7,
29110,
7054,
4808,
28054,
8,
16034,
3084,
62,
3672,
62,
2091,
33411,
2472,
62,
13033,
796,
19755
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
2472,
329,
12863,
12,
28054,
618,
262,
2472,
2173,
389,
19755,
30,
46506,
20625,
7,
29110,
7054,
4808,
28054,
8,
16034,
3084,
62,
3672,
62,
2091,
33411,
2472,
62,
13033,
796,
19755
] |
Subsets and Splits