instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|
what was the last diagnosis for patient 005-46456 in the last year. | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-46456')) AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY diagnosis.diagnosistime DESC LIMIT 1 | [
10919,
373,
262,
938,
13669,
329,
5827,
3571,
20,
12,
3510,
29228,
287,
262,
938,
614,
13,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22544,
12,
3510,
29228,
6,
4008,
5357,
360,
1404,
2767,
12789,
7,
47356,
5958,
13,
47356,
418,
396,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
938,
13669,
329,
5827,
3571,
20,
12,
3510,
29228,
287,
262,
938,
614,
13,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22544,
12,
3510,
29228,
6,
4008,
5357,
360,
1404,
2767,
12789,
7,
47356,
5958,
13,
47356,
418,
396,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404
] |
what's the average total cost of the hospital that involves a procedure called glycoprotein iib/iiia inhibitor - eptifibatide? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'glycoprotein iib/iiia inhibitor - eptifibatide')) GROUP BY cost.patienthealthsystemstayid) AS t1 | [
10919,
338,
262,
2811,
2472,
1575,
286,
262,
4436,
326,
9018,
257,
8771,
1444,
13874,
22163,
35574,
1312,
571,
14,
4178,
544,
41704,
532,
304,
457,
361,
571,
265,
485,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
10853
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
2811,
2472,
1575,
286,
262,
4436,
326,
9018,
257,
8771,
1444,
13874,
22163,
35574,
1312,
571,
14,
4178,
544,
41704,
532,
304,
457,
361,
571,
265,
485,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
10853
] |
What was the result for incumbent Joseph McKenna who was first elected in 1884? | SELECT result FROM table_name_77 WHERE first_elected = "1884" AND incumbent = "joseph mckenna" | [
2061,
373,
262,
1255,
329,
23526,
7212,
48403,
508,
373,
717,
7018,
287,
1248,
5705,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3324,
33411,
717,
62,
28604,
796,
366,
1507,
5705,
1,
5357,
23526,
796,
366,
73,
577,
746,
285,
694,
13713,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
329,
23526,
7212,
48403,
508,
373,
717,
7018,
287,
1248,
5705,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3324,
33411,
717,
62,
28604,
796,
366,
1507,
5705,
1,
5357,
23526,
796,
366,
73,
577,
746,
285,
694,
13713,
1
] |
Visualize a bar chart for the number of trains for each station by the station network name, I want to list by the y axis from low to high. | SELECT network_name, COUNT(*) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id ORDER BY COUNT(*) | [
36259,
1096,
257,
2318,
8262,
329,
262,
1271,
286,
13404,
329,
1123,
4429,
416,
262,
4429,
3127,
1438,
11,
314,
765,
284,
1351,
416,
262,
331,
16488,
422,
1877,
284,
1029,
13,
46506,
3127,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
4429,
7054,
256,
16,
32357,
1268,
6339,
7054,
256,
17,
6177,
256,
16,
13,
312,
796,
256,
17,
13,
17529,
62,
312,
44441,
11050,
256,
17,
13,
17529,
62,
312,
38678,
11050,
327,
28270,
7,
28104
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
329,
262,
1271,
286,
13404,
329,
1123,
4429,
416,
262,
4429,
3127,
1438,
11,
314,
765,
284,
1351,
416,
262,
331,
16488,
422,
1877,
284,
1029,
13,
46506,
3127,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
4429,
7054,
256,
16,
32357,
1268,
6339,
7054,
256,
17,
6177,
256,
16,
13,
312,
796,
256,
17,
13,
17529,
62,
312,
44441,
11050,
256,
17,
13,
17529,
62,
312,
38678,
11050,
327,
28270,
7,
28104
] |
Name the crew chief for rhonda thorson | SELECT crew_chief FROM table_24535095_2 WHERE listed_owner_s_ = "Rhonda Thorson" | [
5376,
262,
5462,
4039,
329,
9529,
13533,
294,
669,
261,
46506,
5462,
62,
17351,
16034,
3084,
62,
1731,
4310,
1120,
3865,
62,
17,
33411,
5610,
62,
18403,
62,
82,
62,
796,
366,
38576,
13533,
536,
669,
261,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5462,
4039,
329,
9529,
13533,
294,
669,
261,
46506,
5462,
62,
17351,
16034,
3084,
62,
1731,
4310,
1120,
3865,
62,
17,
33411,
5610,
62,
18403,
62,
82,
62,
796,
366,
38576,
13533,
536,
669,
261,
1
] |
How in prothrombin affected by glanzmann's thrombasthenia. | SELECT prothrombin_time FROM table_1226250_1 WHERE condition = "Glanzmann's thrombasthenia" | [
2437,
287,
386,
400,
398,
8800,
5676,
416,
1278,
35410,
9038,
338,
294,
398,
65,
459,
831,
544,
13,
46506,
386,
400,
398,
8800,
62,
2435,
16034,
3084,
62,
1065,
2075,
9031,
62,
16,
33411,
4006,
796,
366,
38,
9620,
89,
9038,
338,
294,
398,
65,
459,
831,
544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
287,
386,
400,
398,
8800,
5676,
416,
1278,
35410,
9038,
338,
294,
398,
65,
459,
831,
544,
13,
46506,
386,
400,
398,
8800,
62,
2435,
16034,
3084,
62,
1065,
2075,
9031,
62,
16,
33411,
4006,
796,
366,
38,
9620,
89,
9038,
338,
294,
398,
65,
459,
831,
544,
1
] |
what is the days of hospital stay of subject id 17519? | SELECT demographic.days_stay FROM demographic WHERE demographic.subject_id = "17519" | [
10919,
318,
262,
1528,
286,
4436,
2652,
286,
2426,
4686,
19038,
1129,
30,
46506,
16728,
13,
12545,
62,
31712,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
17430,
1129,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
286,
4436,
2652,
286,
2426,
4686,
19038,
1129,
30,
46506,
16728,
13,
12545,
62,
31712,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
17430,
1129,
1
] |
What is the last episode in the season that had 3.91 million viewers in the US? | SELECT MIN(season_no) FROM table_29154676_1 WHERE us_viewers__millions_ = "3.91" | [
2061,
318,
262,
938,
4471,
287,
262,
1622,
326,
550,
513,
13,
6420,
1510,
10209,
287,
262,
1294,
30,
46506,
20625,
7,
6230,
62,
3919,
8,
16034,
3084,
62,
1959,
21526,
42548,
62,
16,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
18,
13,
6420,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
938,
4471,
287,
262,
1622,
326,
550,
513,
13,
6420,
1510,
10209,
287,
262,
1294,
30,
46506,
20625,
7,
6230,
62,
3919,
8,
16034,
3084,
62,
1959,
21526,
42548,
62,
16,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
18,
13,
6420,
1
] |
which country had the most finishers in the top 8 ? | SELECT "nationality" FROM table_204_59 GROUP BY "nationality" ORDER BY COUNT("athlete") DESC LIMIT 1 | [
4758,
1499,
550,
262,
749,
957,
39116,
287,
262,
1353,
807,
5633,
46506,
366,
14648,
414,
1,
16034,
3084,
62,
18638,
62,
3270,
44441,
11050,
366,
14648,
414,
1,
38678,
11050,
327,
28270,
7203,
776,
5807,
4943,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
1499,
550,
262,
749,
957,
39116,
287,
262,
1353,
807,
5633,
46506,
366,
14648,
414,
1,
16034,
3084,
62,
18638,
62,
3270,
44441,
11050,
366,
14648,
414,
1,
38678,
11050,
327,
28270,
7203,
776,
5807,
4943,
22196,
34,
27564,
2043,
352
] |
Draw a pie chart about the proportion of All_Road and Team_ID. | SELECT All_Road, Team_ID FROM basketball_match | [
25302,
257,
2508,
8262,
546,
262,
9823,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2508,
8262,
546,
262,
9823,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] |
What number of patients who were diagnosed under diagnoses icd9 code 42613 had a lab test category of hamatology? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "42613" AND lab."CATEGORY" = "Hematology" | [
2061,
1271,
286,
3871,
508,
547,
14641,
739,
40567,
14158,
67,
24,
2438,
48065,
1485,
550,
257,
2248,
1332,
6536,
286,
8891,
265,
1435,
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,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
42780,
1485,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
508,
547,
14641,
739,
40567,
14158,
67,
24,
2438,
48065,
1485,
550,
257,
2248,
1332,
6536,
286,
8891,
265,
1435,
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,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
42780,
1485,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1
] |
give me the number of patients whose gender is f and lab test name is vancomycin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Vancomycin" | [
26535,
502,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
2248,
1332,
1438,
318,
5719,
785,
88,
17879,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
2248,
13,
18242,
796,
366,
25298,
785,
88,
17879,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
502,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
2248,
1332,
1438,
318,
5719,
785,
88,
17879,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
2248,
13,
18242,
796,
366,
25298,
785,
88,
17879,
1
] |
When bloggers was the poll winner, who was the root of all evil? | SELECT root_of_all_evil FROM table_15781170_3 WHERE poll_winner = "Bloggers" | [
2215,
30357,
373,
262,
3278,
8464,
11,
508,
373,
262,
6808,
286,
477,
6181,
30,
46506,
6808,
62,
1659,
62,
439,
62,
23542,
16034,
3084,
62,
1314,
3695,
1157,
2154,
62,
18,
33411,
3278,
62,
39791,
796,
366,
42383,
5355,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
30357,
373,
262,
3278,
8464,
11,
508,
373,
262,
6808,
286,
477,
6181,
30,
46506,
6808,
62,
1659,
62,
439,
62,
23542,
16034,
3084,
62,
1314,
3695,
1157,
2154,
62,
18,
33411,
3278,
62,
39791,
796,
366,
42383,
5355,
1
] |
what is the difference in tonnes between the malabar class and the ut507 class ? | SELECT ABS((SELECT "displacement" FROM table_203_201 WHERE "class" = 'malabar class') - (SELECT "displacement" FROM table_203_201 WHERE "class" = 'ut507 class')) | [
10919,
318,
262,
3580,
287,
26840,
1022,
262,
6428,
397,
283,
1398,
290,
262,
3384,
35378,
1398,
5633,
46506,
29950,
19510,
46506,
366,
6381,
489,
5592,
1,
16034,
3084,
62,
22416,
62,
1264,
33411,
366,
4871,
1,
796,
705,
7617,
397,
283,
1398,
11537,
532,
357,
46506,
366,
6381,
489,
5592,
1,
16034,
3084,
62,
22416,
62,
1264,
33411,
366,
4871,
1,
796,
705,
315,
35378,
1398,
6,
4008
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3580,
287,
26840,
1022,
262,
6428,
397,
283,
1398,
290,
262,
3384,
35378,
1398,
5633,
46506,
29950,
19510,
46506,
366,
6381,
489,
5592,
1,
16034,
3084,
62,
22416,
62,
1264,
33411,
366,
4871,
1,
796,
705,
7617,
397,
283,
1398,
11537,
532,
357,
46506,
366,
6381,
489,
5592,
1,
16034,
3084,
62,
22416,
62,
1264,
33411,
366,
4871,
1,
796,
705,
315,
35378,
1398,
6,
4008
] |
Name the M809 seris with M939 series of M931/932 | SELECT "M809 series" FROM table_6012 WHERE "M939 series" = 'm931/932' | [
5376,
262,
337,
34583,
1055,
271,
351,
337,
24,
2670,
2168,
286,
337,
24,
3132,
14,
24,
2624,
46506,
366,
44,
34583,
2168,
1,
16034,
3084,
62,
21,
30206,
33411,
366,
44,
24,
2670,
2168,
1,
796,
705,
76,
24,
3132,
14,
24,
2624,
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
] | [
5376,
262,
337,
34583,
1055,
271,
351,
337,
24,
2670,
2168,
286,
337,
24,
3132,
14,
24,
2624,
46506,
366,
44,
34583,
2168,
1,
16034,
3084,
62,
21,
30206,
33411,
366,
44,
24,
2670,
2168,
1,
796,
705,
76,
24,
3132,
14,
24,
2624,
6
] |
had patient 035-6788 been prescribed regular insulin, acetaminophen 325 mg po tabs, or glucose? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-6788')) AND medication.drugname IN ('acetaminophen 325 mg po tabs', 'regular insulin', 'glucose') | [
18108,
5827,
657,
2327,
12,
3134,
3459,
587,
14798,
3218,
14588,
11,
25174,
5669,
47806,
29524,
10527,
745,
22524,
11,
393,
15701,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
14103,
33411,
14103,
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,
44215,
12,
3134,
3459,
6,
4008,
5357,
14103,
13,
30349,
3672,
3268,
19203,
23253,
5669,
47806,
29524,
10527,
745,
22524,
3256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
18108,
5827,
657,
2327,
12,
3134,
3459,
587,
14798,
3218,
14588,
11,
25174,
5669,
47806,
29524,
10527,
745,
22524,
11,
393,
15701,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
14103,
33411,
14103,
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,
44215,
12,
3134,
3459,
6,
4008,
5357,
14103,
13,
30349,
3672,
3268,
19203,
23253,
5669,
47806,
29524,
10527,
745,
22524,
3256
] |
how much do resp tract intubat nec costs? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'resp tract intubat nec')) | [
4919,
881,
466,
1217,
14998,
493,
549,
265,
27576,
3484,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
1676,
771,
942,
62,
291,
67,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
357,
46506,
9021,
62,
291,
67,
13,
808,
62,
312,
16034,
9021,
62,
291,
67,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
466,
1217,
14998,
493,
549,
265,
27576,
3484,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
1676,
771,
942,
62,
291,
67,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
357,
46506,
9021,
62,
291,
67,
13,
808,
62,
312,
16034,
9021,
62,
291,
67,
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
] |
Who was the opponent the falcons played against on week 3? | SELECT opponent FROM table_name_87 WHERE week = 3 | [
8241,
373,
262,
6125,
262,
24215,
5936,
2826,
1028,
319,
1285,
513,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
5774,
33411,
1285,
796,
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
] | [
8241,
373,
262,
6125,
262,
24215,
5936,
2826,
1028,
319,
1285,
513,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
5774,
33411,
1285,
796,
513
] |
What is the highest win percentage when there were 23 losses? | SELECT MAX(win_percentage) FROM table_name_18 WHERE losses = 23 | [
2061,
318,
262,
4511,
1592,
5873,
618,
612,
547,
2242,
9089,
30,
46506,
25882,
7,
5404,
62,
25067,
496,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
9089,
796,
2242
] | [
1,
1,
1,
1,
1,
1,
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,
1592,
5873,
618,
612,
547,
2242,
9089,
30,
46506,
25882,
7,
5404,
62,
25067,
496,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
9089,
796,
2242
] |
When the Mole was Petrina Edge, what was the potential prize money? | SELECT "Potential prize money" FROM table_59558 WHERE "Mole" = 'petrina edge' | [
2215,
262,
25726,
373,
4767,
22267,
13113,
11,
644,
373,
262,
2785,
11596,
1637,
30,
46506,
366,
25396,
1843,
11596,
1637,
1,
16034,
3084,
62,
3270,
40486,
33411,
366,
44,
2305,
1,
796,
705,
6449,
22267,
5743,
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
] | [
2215,
262,
25726,
373,
4767,
22267,
13113,
11,
644,
373,
262,
2785,
11596,
1637,
30,
46506,
366,
25396,
1843,
11596,
1637,
1,
16034,
3084,
62,
3270,
40486,
33411,
366,
44,
2305,
1,
796,
705,
6449,
22267,
5743,
6
] |
How much Converted has a Number of 35, and a Withdrawn smaller than 1952? | SELECT COUNT("Converted") FROM table_63177 WHERE "Number" = '35' AND "Withdrawn" < '1952' | [
2437,
881,
43433,
468,
257,
7913,
286,
3439,
11,
290,
257,
2080,
41549,
4833,
621,
26352,
30,
46506,
327,
28270,
7203,
3103,
13658,
4943,
16034,
3084,
62,
5066,
22413,
33411,
366,
15057,
1,
796,
705,
2327,
6,
5357,
366,
3152,
41549,
1,
1279,
705,
1129,
4309,
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
] | [
2437,
881,
43433,
468,
257,
7913,
286,
3439,
11,
290,
257,
2080,
41549,
4833,
621,
26352,
30,
46506,
327,
28270,
7203,
3103,
13658,
4943,
16034,
3084,
62,
5066,
22413,
33411,
366,
15057,
1,
796,
705,
2327,
6,
5357,
366,
3152,
41549,
1,
1279,
705,
1129,
4309,
6
] |
What engine has a start less than 7, and 23 as a finish? | SELECT engine FROM table_name_19 WHERE start < 7 AND finish = 23 | [
2061,
3113,
468,
257,
923,
1342,
621,
767,
11,
290,
2242,
355,
257,
5461,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
1129,
33411,
923,
1279,
767,
5357,
5461,
796,
2242
] | [
1,
1,
1,
1,
1,
1,
1,
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,
3113,
468,
257,
923,
1342,
621,
767,
11,
290,
2242,
355,
257,
5461,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
1129,
33411,
923,
1279,
767,
5357,
5461,
796,
2242
] |
What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012? | SELECT SUM("Number of Episodes") FROM table_45281 WHERE "Original Air Date" > '1991' AND "Series Number" < '21' AND "DVD Region 2 release date" = '26 march 2012' | [
2061,
338,
262,
2160,
286,
262,
1271,
286,
8640,
326,
6198,
18530,
706,
10249,
351,
257,
2168,
1271,
4833,
621,
2310,
290,
257,
12490,
17718,
362,
2650,
3128,
286,
2608,
9960,
2321,
30,
46506,
35683,
7203,
15057,
286,
4551,
8052,
4943,
16034,
3084,
62,
2231,
30368,
33411,
366,
20556,
3701,
7536,
1,
1875,
705,
24529,
6,
5357,
366,
27996,
7913,
1,
1279,
705,
2481,
6,
5357,
366,
39218,
17718,
362,
2650,
3128,
1,
796,
705,
2075,
9960,
2321,
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
] | [
2061,
338,
262,
2160,
286,
262,
1271,
286,
8640,
326,
6198,
18530,
706,
10249,
351,
257,
2168,
1271,
4833,
621,
2310,
290,
257,
12490,
17718,
362,
2650,
3128,
286,
2608,
9960,
2321,
30,
46506,
35683,
7203,
15057,
286,
4551,
8052,
4943,
16034,
3084,
62,
2231,
30368,
33411,
366,
20556,
3701,
7536,
1,
1875,
705,
24529,
6,
5357,
366,
27996,
7913,
1,
1279,
705,
2481,
6,
5357,
366,
39218,
17718,
362,
2650,
3128,
1,
796,
705,
2075,
9960,
2321,
6
] |
who was the first miami heat player to have their jersey retired ? | SELECT "name" FROM table_203_348 WHERE "team" = 'miami heat' ORDER BY "years with franchise" LIMIT 1 | [
8727,
373,
262,
717,
285,
7871,
4894,
2137,
284,
423,
511,
22383,
9880,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
28978,
33411,
366,
15097,
1,
796,
705,
76,
7871,
4894,
6,
38678,
11050,
366,
19002,
351,
8663,
1,
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
] | [
8727,
373,
262,
717,
285,
7871,
4894,
2137,
284,
423,
511,
22383,
9880,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
28978,
33411,
366,
15097,
1,
796,
705,
76,
7871,
4894,
6,
38678,
11050,
366,
19002,
351,
8663,
1,
27564,
2043,
352
] |
List of users by reputation from answers (not working properly). Ranks users by total reputation from questions (estimated by using the post score). | SELECT Users.Id AS "user_link", Users.Reputation AS "total_rep", SUM(Posts.Score) * 10 + COUNT(Posts.AcceptedAnswerId) * 15 AS "answer_rep" FROM Users INNER JOIN Posts ON Posts.OwnerUserId = Users.Id WHERE Posts.PostTypeId = 2 AND Posts.CommunityOwnedDate IS NULL GROUP BY Users.Reputation, Users.Id ORDER BY 'answer_rep' DESC LIMIT 500 | [
8053,
286,
2985,
416,
8507,
422,
7429,
357,
1662,
1762,
6105,
737,
371,
2283,
2985,
416,
2472,
8507,
422,
2683,
357,
395,
15655,
416,
1262,
262,
1281,
4776,
737,
46506,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
18987,
13,
6207,
7094,
7054,
366,
23350,
62,
7856,
1600,
35683,
7,
21496,
13,
26595,
8,
1635,
838,
1343,
327,
28270,
7,
21496,
13,
38855,
276,
33706,
7390,
8,
1635,
1315,
7054,
366,
41484,
62,
7856,
1,
16034,
18987,
3268,
21479,
32357,
1268,
12043,
6177,
12043,
13,
42419,
12982,
7390,
796,
18987,
13,
7390,
33411,
12043,
13,
6307,
6030,
7390,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
2985,
416,
8507,
422,
7429,
357,
1662,
1762,
6105,
737,
371,
2283,
2985,
416,
2472,
8507,
422,
2683,
357,
395,
15655,
416,
1262,
262,
1281,
4776,
737,
46506,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
18987,
13,
6207,
7094,
7054,
366,
23350,
62,
7856,
1600,
35683,
7,
21496,
13,
26595,
8,
1635,
838,
1343,
327,
28270,
7,
21496,
13,
38855,
276,
33706,
7390,
8,
1635,
1315,
7054,
366,
41484,
62,
7856,
1,
16034,
18987,
3268,
21479,
32357,
1268,
12043,
6177,
12043,
13,
42419,
12982,
7390,
796,
18987,
13,
7390,
33411,
12043,
13,
6307,
6030,
7390,
796
] |
kbmk and kbyz call signs both have a city of license listed as what city ? | SELECT "city of license" FROM table_203_749 WHERE "call sign" = 'kbmk' | [
74,
20475,
74,
290,
479,
1525,
89,
869,
5895,
1111,
423,
257,
1748,
286,
5964,
5610,
355,
644,
1748,
5633,
46506,
366,
19205,
286,
5964,
1,
16034,
3084,
62,
22416,
62,
22,
2920,
33411,
366,
13345,
1051,
1,
796,
705,
74,
20475,
74,
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
] | [
74,
20475,
74,
290,
479,
1525,
89,
869,
5895,
1111,
423,
257,
1748,
286,
5964,
5610,
355,
644,
1748,
5633,
46506,
366,
19205,
286,
5964,
1,
16034,
3084,
62,
22416,
62,
22,
2920,
33411,
366,
13345,
1051,
1,
796,
705,
74,
20475,
74,
6
] |
give me the number of patients whose admission type is emergency and insurance is government? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.insurance = "Government" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
5096,
318,
1230,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
16728,
13,
1040,
3874,
796,
366,
28848,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
5096,
318,
1230,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
16728,
13,
1040,
3874,
796,
366,
28848,
1
] |
Which team has run 3 of 1:20.77? | SELECT team FROM table_name_18 WHERE run_3 = "1:20.77" | [
13828,
1074,
468,
1057,
513,
286,
352,
25,
1238,
13,
3324,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
1507,
33411,
1057,
62,
18,
796,
366,
16,
25,
1238,
13,
3324,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
468,
1057,
513,
286,
352,
25,
1238,
13,
3324,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
1507,
33411,
1057,
62,
18,
796,
366,
16,
25,
1238,
13,
3324,
1
] |
Which stories have a rank of 14? | SELECT stories FROM table_name_43 WHERE rank = "14" | [
13828,
3923,
423,
257,
4279,
286,
1478,
30,
46506,
3923,
16034,
3084,
62,
3672,
62,
3559,
33411,
4279,
796,
366,
1415,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3923,
423,
257,
4279,
286,
1478,
30,
46506,
3923,
16034,
3084,
62,
3672,
62,
3559,
33411,
4279,
796,
366,
1415,
1
] |
how did patient 022-30957 last visit the hospital in 2101? | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '022-30957' AND STRFTIME('%y', patient.hospitaladmittime) = '2101' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
4919,
750,
5827,
657,
1828,
12,
26895,
3553,
938,
3187,
262,
4436,
287,
2310,
486,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44087,
12,
26895,
3553,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
5827,
13,
49257,
324,
20124,
524,
8,
796,
705,
2481,
486,
6,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
750,
5827,
657,
1828,
12,
26895,
3553,
938,
3187,
262,
4436,
287,
2310,
486,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44087,
12,
26895,
3553,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
5827,
13,
49257,
324,
20124,
524,
8,
796,
705,
2481,
486,
6,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] |
Give me a bar chart for employee_id of each last name, could you order in asc by the x-axis? | SELECT LAST_NAME, EMPLOYEE_ID FROM employees ORDER BY LAST_NAME | [
23318,
502,
257,
2318,
8262,
329,
6538,
62,
312,
286,
1123,
938,
1438,
11,
714,
345,
1502,
287,
10570,
416,
262,
2124,
12,
22704,
30,
46506,
41894,
62,
20608,
11,
17228,
6489,
21414,
6500,
62,
2389,
16034,
4409,
38678,
11050,
41894,
62,
20608
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
257,
2318,
8262,
329,
6538,
62,
312,
286,
1123,
938,
1438,
11,
714,
345,
1502,
287,
10570,
416,
262,
2124,
12,
22704,
30,
46506,
41894,
62,
20608,
11,
17228,
6489,
21414,
6500,
62,
2389,
16034,
4409,
38678,
11050,
41894,
62,
20608
] |
CodeGolf answers with no links. | SELECT Posts.*, Question.Tags FROM Posts INNER JOIN Posts AS Question ON Question.Id = Posts.ParentId WHERE Posts.PostTypeId = 2 AND NOT Posts.Body LIKE '%http%' AND NOT Posts.Body LIKE '%blockquote%' | [
10669,
38,
4024,
7429,
351,
645,
6117,
13,
46506,
12043,
15885,
11,
18233,
13,
36142,
16034,
12043,
3268,
21479,
32357,
1268,
12043,
7054,
18233,
6177,
18233,
13,
7390,
796,
12043,
13,
24546,
7390,
33411,
12043,
13,
6307,
6030,
7390,
796,
362,
5357,
5626,
12043,
13,
25842,
34178,
705,
4,
4023,
4,
6,
5357,
5626,
12043,
13,
25842,
34178,
705,
4,
9967,
22708,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10669,
38,
4024,
7429,
351,
645,
6117,
13,
46506,
12043,
15885,
11,
18233,
13,
36142,
16034,
12043,
3268,
21479,
32357,
1268,
12043,
7054,
18233,
6177,
18233,
13,
7390,
796,
12043,
13,
24546,
7390,
33411,
12043,
13,
6307,
6030,
7390,
796,
362,
5357,
5626,
12043,
13,
25842,
34178,
705,
4,
4023,
4,
6,
5357,
5626,
12043,
13,
25842,
34178,
705,
4,
9967,
22708,
4,
6
] |
what was the name of the organism that was found in the last sputum test of patient 15125, since 01/2103? | SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15125) AND microbiologyevents.spec_type_desc = 'sputum' AND NOT microbiologyevents.org_name IS NULL AND STRFTIME('%y-%m', microbiologyevents.charttime) >= '2103-01' ORDER BY microbiologyevents.charttime DESC LIMIT 1 | [
10919,
373,
262,
1438,
286,
262,
26433,
326,
373,
1043,
287,
262,
938,
599,
315,
388,
1332,
286,
5827,
1315,
11623,
11,
1201,
5534,
14,
17,
15197,
30,
46506,
24559,
1435,
31534,
13,
2398,
62,
3672,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1315,
11623,
8,
5357,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
82,
1996,
388,
6,
5357,
5626,
24559,
1435,
31534,
13,
2398,
62,
3672,
3180,
15697,
5357,
19269,
9792
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
1438,
286,
262,
26433,
326,
373,
1043,
287,
262,
938,
599,
315,
388,
1332,
286,
5827,
1315,
11623,
11,
1201,
5534,
14,
17,
15197,
30,
46506,
24559,
1435,
31534,
13,
2398,
62,
3672,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1315,
11623,
8,
5357,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
82,
1996,
388,
6,
5357,
5626,
24559,
1435,
31534,
13,
2398,
62,
3672,
3180,
15697,
5357,
19269,
9792
] |
What are the number in series of the pieces directed by Win Phelps and which number in season is 11? | SELECT "No. in series" FROM table_27827 WHERE "Directed by" = 'Win Phelps' AND "No. in season" = '11' | [
2061,
389,
262,
1271,
287,
2168,
286,
262,
5207,
7924,
416,
7178,
40587,
290,
543,
1271,
287,
1622,
318,
1367,
30,
46506,
366,
2949,
13,
287,
2168,
1,
16034,
3084,
62,
25870,
1983,
33411,
366,
13470,
276,
416,
1,
796,
705,
16643,
40587,
6,
5357,
366,
2949,
13,
287,
1622,
1,
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
] | [
2061,
389,
262,
1271,
287,
2168,
286,
262,
5207,
7924,
416,
7178,
40587,
290,
543,
1271,
287,
1622,
318,
1367,
30,
46506,
366,
2949,
13,
287,
2168,
1,
16034,
3084,
62,
25870,
1983,
33411,
366,
13470,
276,
416,
1,
796,
705,
16643,
40587,
6,
5357,
366,
2949,
13,
287,
1622,
1,
796,
705,
1157,
6
] |
What is the Visitor in the game with a Record of 11 49 7? | SELECT visitor FROM table_name_98 WHERE record = "11–49–7" | [
2061,
318,
262,
6911,
2072,
287,
262,
983,
351,
257,
13266,
286,
1367,
5125,
767,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
4089,
33411,
1700,
796,
366,
1157,
1906,
2920,
1906,
22,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6911,
2072,
287,
262,
983,
351,
257,
13266,
286,
1367,
5125,
767,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
4089,
33411,
1700,
796,
366,
1157,
1906,
2920,
1906,
22,
1
] |
find the number of patients with lab test item id 50896 who have never been hospitalized. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "0" AND lab.itemid = "50896" | [
19796,
262,
1271,
286,
3871,
351,
2248,
1332,
2378,
4686,
2026,
48712,
508,
423,
1239,
587,
31736,
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,
12545,
62,
31712,
1875,
366,
15,
1,
5357,
2248,
13,
9186,
312,
796,
366,
1120,
48712,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
262,
1271,
286,
3871,
351,
2248,
1332,
2378,
4686,
2026,
48712,
508,
423,
1239,
587,
31736,
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,
12545,
62,
31712,
1875,
366,
15,
1,
5357,
2248,
13,
9186,
312,
796,
366,
1120,
48712,
1
] |
what is the competition when the date is 16 january 1996? | SELECT "Competition" FROM table_45341 WHERE "Date" = '16 january 1996' | [
10919,
318,
262,
5449,
618,
262,
3128,
318,
1467,
42897,
2838,
8235,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
2231,
33660,
33411,
366,
10430,
1,
796,
705,
1433,
42897,
2838,
8235,
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
] | [
10919,
318,
262,
5449,
618,
262,
3128,
318,
1467,
42897,
2838,
8235,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
2231,
33660,
33411,
366,
10430,
1,
796,
705,
1433,
42897,
2838,
8235,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, find first_name and commission_pct , and visualize them by a bar chart, order by the total number from low to high. | SELECT FIRST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
717,
62,
3672,
290,
5810,
62,
79,
310,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
1502,
416,
262,
2472,
1271,
422,
1877,
284,
1029,
13,
46506,
31328,
62,
20608,
11,
22240,
40373,
62,
47,
4177,
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,
38678,
11050,
22240,
40373,
62,
47,
4177
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
717,
62,
3672,
290,
5810,
62,
79,
310,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
1502,
416,
262,
2472,
1271,
422,
1877,
284,
1029,
13,
46506,
31328,
62,
20608,
11,
22240,
40373,
62,
47,
4177,
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,
38678,
11050,
22240,
40373,
62,
47,
4177
] |
During the Fall and Winter terms , how many 500 -level classes are expected to be offered ? | SELECT COUNT(DISTINCT course.department, course.name, course.number, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 500 AND 500 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_offering.semester AND semester.year = 2016 | [
7191,
262,
7218,
290,
10633,
2846,
837,
703,
867,
5323,
532,
5715,
6097,
389,
2938,
284,
307,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
8,
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,
10378,
1823,
15,
6,
5357,
1781,
13,
17618,
38651,
8845,
1677,
5323,
5357,
5323,
1343,
1802,
5357,
24878,
13,
325,
6880,
353,
3268
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
7218,
290,
10633,
2846,
837,
703,
867,
5323,
532,
5715,
6097,
389,
2938,
284,
307,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
8,
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,
10378,
1823,
15,
6,
5357,
1781,
13,
17618,
38651,
8845,
1677,
5323,
5357,
5323,
1343,
1802,
5357,
24878,
13,
325,
6880,
353,
3268
] |
What was the score when the location attendance was Air Canada Centre 18,067? | SELECT "Score" FROM table_17296 WHERE "Location Attendance" = 'Air Canada Centre 18,067' | [
2061,
373,
262,
4776,
618,
262,
4067,
14858,
373,
3701,
3340,
9072,
1248,
11,
15,
3134,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1558,
27137,
33411,
366,
14749,
46502,
590,
1,
796,
705,
16170,
3340,
9072,
1248,
11,
15,
3134,
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,
373,
262,
4776,
618,
262,
4067,
14858,
373,
3701,
3340,
9072,
1248,
11,
15,
3134,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1558,
27137,
33411,
366,
14749,
46502,
590,
1,
796,
705,
16170,
3340,
9072,
1248,
11,
15,
3134,
6
] |
For all employees who have the letters D or S in their first name, give me the comparison about the sum of department_id over the job_id , and group by attribute job_id, could you rank bars in asc order? | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
5011,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
714,
345,
4279,
9210,
287,
10570,
1502,
30,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
7206,
30709,
10979,
62,
2389,
8,
16034,
4409,
33411,
31328,
62,
20608,
34178,
705,
4,
35,
4,
6,
6375,
31328,
62,
20608,
34178,
705,
4,
50,
4,
6,
44441,
11050,
449,
9864,
62,
2389,
38678,
11050,
449,
9864,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
5011,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
714,
345,
4279,
9210,
287,
10570,
1502,
30,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
7206,
30709,
10979,
62,
2389,
8,
16034,
4409,
33411,
31328,
62,
20608,
34178,
705,
4,
35,
4,
6,
6375,
31328,
62,
20608,
34178,
705,
4,
50,
4,
6,
44441,
11050,
449,
9864,
62,
2389,
38678,
11050,
449,
9864,
62,
2389
] |
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1? | SELECT "Date" FROM table_37562 WHERE "UCI Rating" = '1.1' AND "Race Name" = 'omloop van de vlaamse scheldeboorden' | [
2061,
318,
262,
3128,
286,
262,
267,
4029,
11224,
5719,
390,
410,
5031,
321,
325,
3897,
335,
1765,
78,
585,
268,
3234,
351,
257,
14417,
40,
7955,
286,
352,
13,
16,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
22318,
5237,
33411,
366,
9598,
40,
12028,
1,
796,
705,
16,
13,
16,
6,
5357,
366,
35157,
6530,
1,
796,
705,
296,
26268,
5719,
390,
410,
5031,
321,
325,
3897,
335,
1765,
78,
585,
268,
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
] | [
2061,
318,
262,
3128,
286,
262,
267,
4029,
11224,
5719,
390,
410,
5031,
321,
325,
3897,
335,
1765,
78,
585,
268,
3234,
351,
257,
14417,
40,
7955,
286,
352,
13,
16,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
22318,
5237,
33411,
366,
9598,
40,
12028,
1,
796,
705,
16,
13,
16,
6,
5357,
366,
35157,
6530,
1,
796,
705,
296,
26268,
5719,
390,
410,
5031,
321,
325,
3897,
335,
1765,
78,
585,
268,
6
] |
What is the Country of the Player in Place 1? | SELECT country FROM table_name_39 WHERE place = "1" | [
2061,
318,
262,
12946,
286,
262,
7853,
287,
8474,
352,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2670,
33411,
1295,
796,
366,
16,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
12946,
286,
262,
7853,
287,
8474,
352,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2670,
33411,
1295,
796,
366,
16,
1
] |
The Engineering Design Practice class has what for a course number ? | SELECT DISTINCT number FROM course WHERE (description LIKE '%Engineering Design Practice%' OR name LIKE '%Engineering Design Practice%') AND department = 'EECS' | [
464,
14044,
8495,
19939,
1398,
468,
644,
329,
257,
1781,
1271,
5633,
46506,
360,
8808,
1268,
4177,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
13798,
1586,
8495,
19939,
4,
6,
6375,
1438,
34178,
705,
4,
13798,
1586,
8495,
19939,
4,
11537,
5357,
5011,
796,
705,
36,
2943,
50,
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
] | [
464,
14044,
8495,
19939,
1398,
468,
644,
329,
257,
1781,
1271,
5633,
46506,
360,
8808,
1268,
4177,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
13798,
1586,
8495,
19939,
4,
6,
6375,
1438,
34178,
705,
4,
13798,
1586,
8495,
19939,
4,
11537,
5357,
5011,
796,
705,
36,
2943,
50,
6
] |
What the H/A when the opponent is the Bohemians? | SELECT "H / A" FROM table_48781 WHERE "Opponents" = 'bohemians' | [
2061,
262,
367,
14,
32,
618,
262,
6125,
318,
262,
45560,
1547,
30,
46506,
366,
39,
1220,
317,
1,
16034,
3084,
62,
2780,
49703,
33411,
366,
27524,
3906,
1,
796,
705,
2127,
4411,
1547,
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
] | [
2061,
262,
367,
14,
32,
618,
262,
6125,
318,
262,
45560,
1547,
30,
46506,
366,
39,
1220,
317,
1,
16034,
3084,
62,
2780,
49703,
33411,
366,
27524,
3906,
1,
796,
705,
2127,
4411,
1547,
6
] |
Who's the captain of the team whose stadium is Gradski Stadion? | SELECT "Team captain" FROM table_2800 WHERE "Stadium" = 'Gradski Stadion' | [
8241,
338,
262,
10654,
286,
262,
1074,
3025,
10308,
318,
1902,
5643,
4106,
520,
324,
295,
30,
46506,
366,
15592,
10654,
1,
16034,
3084,
62,
2078,
405,
33411,
366,
1273,
6271,
1,
796,
705,
8642,
5643,
4106,
520,
324,
295,
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
] | [
8241,
338,
262,
10654,
286,
262,
1074,
3025,
10308,
318,
1902,
5643,
4106,
520,
324,
295,
30,
46506,
366,
15592,
10654,
1,
16034,
3084,
62,
2078,
405,
33411,
366,
1273,
6271,
1,
796,
705,
8642,
5643,
4106,
520,
324,
295,
6
] |
For those employees who did not have any job in the past, give me the comparison about the sum of employee_id over the hire_date bin hire_date by time, and list in asc by the total number. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
290,
1351,
287,
10570,
416,
262,
2472,
1271,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8,
16034,
4409,
33411,
5626,
17228,
6489,
21414,
6500,
62,
2389,
3268,
357,
46506,
17228,
6489,
21414,
6500,
62,
2389,
16034,
1693,
62,
23569,
8,
38678,
11050,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
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
] | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
11,
290,
1351,
287,
10570,
416,
262,
2472,
1271,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8,
16034,
4409,
33411,
5626,
17228,
6489,
21414,
6500,
62,
2389,
3268,
357,
46506,
17228,
6489,
21414,
6500,
62,
2389,
16034,
1693,
62,
23569,
8,
38678,
11050,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8
] |
How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5? | SELECT SUM("Silver") FROM table_64196 WHERE "Bronze" < '5' AND "Gold" > '0' AND "Rank" = '22' | [
2437,
867,
8465,
329,
4279,
2534,
618,
3869,
954,
373,
517,
621,
657,
290,
19461,
954,
373,
1342,
621,
642,
30,
46506,
35683,
7203,
26766,
4943,
16034,
3084,
62,
2414,
25272,
33411,
366,
18760,
2736,
1,
1279,
705,
20,
6,
5357,
366,
13306,
1,
1875,
705,
15,
6,
5357,
366,
27520,
1,
796,
705,
1828,
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
] | [
2437,
867,
8465,
329,
4279,
2534,
618,
3869,
954,
373,
517,
621,
657,
290,
19461,
954,
373,
1342,
621,
642,
30,
46506,
35683,
7203,
26766,
4943,
16034,
3084,
62,
2414,
25272,
33411,
366,
18760,
2736,
1,
1279,
705,
20,
6,
5357,
366,
13306,
1,
1875,
705,
15,
6,
5357,
366,
27520,
1,
796,
705,
1828,
6
] |
What is the name of the department with the fewest professors? | SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) LIMIT 1 | [
2061,
318,
262,
1438,
286,
262,
5011,
351,
262,
1178,
395,
20339,
30,
46506,
309,
17,
13,
2934,
457,
62,
3672,
16034,
6240,
7054,
309,
16,
32357,
1268,
5011,
7054,
309,
17,
6177,
309,
16,
13,
2934,
457,
62,
8189,
796,
309,
17,
13,
2934,
457,
62,
8189,
44441,
11050,
309,
16,
13,
2934,
457,
62,
8189,
38678,
11050,
327,
28270,
7,
28104,
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
] | [
2061,
318,
262,
1438,
286,
262,
5011,
351,
262,
1178,
395,
20339,
30,
46506,
309,
17,
13,
2934,
457,
62,
3672,
16034,
6240,
7054,
309,
16,
32357,
1268,
5011,
7054,
309,
17,
6177,
309,
16,
13,
2934,
457,
62,
8189,
796,
309,
17,
13,
2934,
457,
62,
8189,
44441,
11050,
309,
16,
13,
2934,
457,
62,
8189,
38678,
11050,
327,
28270,
7,
28104,
27564,
2043,
352
] |
Who was the runner-up for the Bulgaria Open, before 2007? | SELECT score FROM table_name_40 WHERE year < 2007 AND outcome = "runner-up" AND tournament = "bulgaria open" | [
8241,
373,
262,
17490,
12,
929,
329,
262,
27902,
4946,
11,
878,
4343,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1821,
33411,
614,
1279,
4343,
5357,
8055,
796,
366,
16737,
12,
929,
1,
5357,
7756,
796,
366,
15065,
4563,
544,
1280,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
17490,
12,
929,
329,
262,
27902,
4946,
11,
878,
4343,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1821,
33411,
614,
1279,
4343,
5357,
8055,
796,
366,
16737,
12,
929,
1,
5357,
7756,
796,
366,
15065,
4563,
544,
1280,
1
] |
Find Editors with More than X Edits in One Day. | SELECT UserId, MAX(ph_count) FROM (SELECT ph.UserId, YEAR(ph.CreationDate) AS year, MONTH(ph.CreationDate) AS month, DAY(ph.CreationDate - 1) AS day, COUNT(DISTINCT ph.Id) AS ph_count FROM PostHistory AS ph INNER JOIN Posts AS p ON (p.Id = ph.PostId AND p.OwnerUserId != ph.UserId AND ph.PostHistoryTypeId IN (4, 5)) INNER JOIN Badges AS b ON (b.Name = 'Strunk & White' AND b.UserId = ph.UserId AND b.UserId NOT IN (SELECT b2.UserId FROM Badges AS b2 WHERE b2.Name = 'Copy Editor')) GROUP BY ph.UserId, YEAR(ph.CreationDate), MONTH(ph.CreationDate), DAY(ph.CreationDate - 1)) AS innerTable GROUP BY UserId HAVING MAX(ph_count) BETWEEN 5 AND 79 | [
16742,
48073,
351,
3125,
621,
1395,
1717,
896,
287,
1881,
3596,
13,
46506,
11787,
7390,
11,
25882,
7,
746,
62,
9127,
8,
16034,
357,
46506,
872,
13,
12982,
7390,
11,
32914,
7,
746,
13,
12443,
341,
10430,
8,
7054,
614,
11,
25000,
4221,
7,
746,
13,
12443,
341,
10430,
8,
7054,
1227,
11,
24644,
7,
746,
13,
12443,
341,
10430,
532,
352,
8,
7054,
1110,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
872,
13,
7390,
8,
7054,
872,
62,
9127,
16034,
2947,
18122,
7054,
872,
3268,
21479,
32357,
1268,
12043,
7054,
279,
6177,
357,
79,
13,
7390,
796,
872
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48073,
351,
3125,
621,
1395,
1717,
896,
287,
1881,
3596,
13,
46506,
11787,
7390,
11,
25882,
7,
746,
62,
9127,
8,
16034,
357,
46506,
872,
13,
12982,
7390,
11,
32914,
7,
746,
13,
12443,
341,
10430,
8,
7054,
614,
11,
25000,
4221,
7,
746,
13,
12443,
341,
10430,
8,
7054,
1227,
11,
24644,
7,
746,
13,
12443,
341,
10430,
532,
352,
8,
7054,
1110,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
872,
13,
7390,
8,
7054,
872,
62,
9127,
16034,
2947,
18122,
7054,
872,
3268,
21479,
32357,
1268,
12043,
7054,
279,
6177,
357,
79,
13,
7390,
796,
872
] |
Users with reputation > X by Join Date. | SELECT TOT.cYear, TOT.cMonth, totalUsers, repUsers, (1.0 * repUsers / totalUsers) AS Percentage FROM (SELECT YEAR(CreationDate) AS cYear, MONTH(CreationDate) AS cMonth, COUNT(*) AS repUsers FROM Users WHERE Reputation > '##baseRep##' GROUP BY YEAR(CreationDate), MONTH(CreationDate)) AS REP JOIN (SELECT YEAR(CreationDate) AS cYear, MONTH(CreationDate) AS cMonth, COUNT(*) AS totalUsers FROM Users GROUP BY YEAR(CreationDate), MONTH(CreationDate)) AS TOT ON TOT.cYear = REP.cYear AND TOT.cMonth = REP.cMonth ORDER BY 1, 2 | [
14490,
351,
8507,
1875,
1395,
416,
15251,
7536,
13,
46506,
309,
2394,
13,
66,
17688,
11,
309,
2394,
13,
66,
31948,
11,
2472,
14490,
11,
1128,
14490,
11,
357,
16,
13,
15,
1635,
1128,
14490,
1220,
2472,
14490,
8,
7054,
36013,
16034,
357,
46506,
32914,
7,
12443,
341,
10430,
8,
7054,
269,
17688,
11,
25000,
4221,
7,
12443,
341,
10430,
8,
7054,
269,
31948,
11,
327,
28270,
7,
28104,
7054,
1128,
14490,
16034,
18987,
33411,
1432,
7094,
1875,
705,
2235,
8692,
6207,
2235,
6,
44441,
11050,
32914,
7,
12443,
341,
10430,
828,
25000,
4221,
7,
12443,
341,
10430,
4008,
7054
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14490,
351,
8507,
1875,
1395,
416,
15251,
7536,
13,
46506,
309,
2394,
13,
66,
17688,
11,
309,
2394,
13,
66,
31948,
11,
2472,
14490,
11,
1128,
14490,
11,
357,
16,
13,
15,
1635,
1128,
14490,
1220,
2472,
14490,
8,
7054,
36013,
16034,
357,
46506,
32914,
7,
12443,
341,
10430,
8,
7054,
269,
17688,
11,
25000,
4221,
7,
12443,
341,
10430,
8,
7054,
269,
31948,
11,
327,
28270,
7,
28104,
7054,
1128,
14490,
16034,
18987,
33411,
1432,
7094,
1875,
705,
2235,
8692,
6207,
2235,
6,
44441,
11050,
32914,
7,
12443,
341,
10430,
828,
25000,
4221,
7,
12443,
341,
10430,
4008,
7054
] |
Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars. | SELECT T3.name, T2.title, T1.stars, T1.ratingdate FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid JOIN reviewer AS T3 ON T1.rid = T3.rid ORDER BY T3.name, T2.title, T1.stars | [
13615,
37823,
1438,
11,
3807,
3670,
11,
5788,
11,
290,
7955,
10430,
13,
843,
3297,
262,
1366,
717,
416,
37823,
1438,
11,
788,
416,
3807,
3670,
11,
290,
938,
306,
416,
1271,
286,
5788,
13,
46506,
309,
18,
13,
3672,
11,
309,
17,
13,
7839,
11,
309,
16,
13,
30783,
11,
309,
16,
13,
8821,
4475,
16034,
7955,
7054,
309,
16,
32357,
1268,
3807,
7054,
309,
17,
6177,
309,
16,
13,
13602,
796,
309,
17,
13,
13602,
32357,
1268,
37823,
7054,
309,
18,
6177,
309,
16,
13,
6058,
796,
309,
18,
13,
6058,
38678,
11050,
309,
18,
13,
3672,
11
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
37823,
1438,
11,
3807,
3670,
11,
5788,
11,
290,
7955,
10430,
13,
843,
3297,
262,
1366,
717,
416,
37823,
1438,
11,
788,
416,
3807,
3670,
11,
290,
938,
306,
416,
1271,
286,
5788,
13,
46506,
309,
18,
13,
3672,
11,
309,
17,
13,
7839,
11,
309,
16,
13,
30783,
11,
309,
16,
13,
8821,
4475,
16034,
7955,
7054,
309,
16,
32357,
1268,
3807,
7054,
309,
17,
6177,
309,
16,
13,
13602,
796,
309,
17,
13,
13602,
32357,
1268,
37823,
7054,
309,
18,
6177,
309,
16,
13,
6058,
796,
309,
18,
13,
6058,
38678,
11050,
309,
18,
13,
3672,
11
] |
absence of skin lesions. | SELECT * FROM table_train_19 WHERE skin_lesion = 0 | [
8937,
594,
286,
4168,
35258,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
1129,
33411,
4168,
62,
829,
295,
796,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8937,
594,
286,
4168,
35258,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
1129,
33411,
4168,
62,
829,
295,
796,
657
] |
What was the Rd. Time for October 3, 2009? | SELECT rd, _time FROM table_name_86 WHERE date = "october 3, 2009" | [
2061,
373,
262,
20769,
13,
3862,
329,
3267,
513,
11,
3717,
30,
46506,
374,
67,
11,
4808,
2435,
16034,
3084,
62,
3672,
62,
4521,
33411,
3128,
796,
366,
38441,
2023,
513,
11,
3717,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20769,
13,
3862,
329,
3267,
513,
11,
3717,
30,
46506,
374,
67,
11,
4808,
2435,
16034,
3084,
62,
3672,
62,
4521,
33411,
3128,
796,
366,
38441,
2023,
513,
11,
3717,
1
] |
What are the names and distances for all airplanes Visualize by bar chart, list from high to low by the bar. | SELECT name, distance FROM aircraft ORDER BY name DESC | [
2061,
389,
262,
3891,
290,
18868,
329,
477,
32808,
15612,
1096,
416,
2318,
8262,
11,
1351,
422,
1029,
284,
1877,
416,
262,
2318,
13,
46506,
1438,
11,
5253,
16034,
6215,
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
] | [
2061,
389,
262,
3891,
290,
18868,
329,
477,
32808,
15612,
1096,
416,
2318,
8262,
11,
1351,
422,
1029,
284,
1877,
416,
262,
2318,
13,
46506,
1438,
11,
5253,
16034,
6215,
38678,
11050,
1438,
22196,
34
] |
Which airport has an IATA of hgh? | SELECT "Airport" FROM table_14654 WHERE "IATA" = 'hgh' | [
13828,
9003,
468,
281,
314,
13563,
286,
289,
456,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
1415,
39111,
33411,
366,
40,
13563,
1,
796,
705,
71,
456,
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
] | [
13828,
9003,
468,
281,
314,
13563,
286,
289,
456,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
1415,
39111,
33411,
366,
40,
13563,
1,
796,
705,
71,
456,
6
] |
In the past , who has taught SOC 463 ? | SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'SOC' AND course.number = 463 AND NOT (semester.semester = 'WN' AND semester.year = 2016) | [
818,
262,
1613,
837,
508,
468,
7817,
31430,
604,
5066,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273,
13,
2364,
1586,
62,
312,
796,
1781,
62,
2364,
1586,
13,
2364,
1586,
62,
312,
3268,
21479,
32357,
1268,
21187,
6177,
6011,
62,
259,
7249,
273,
13,
259,
7249,
273,
62,
312,
796,
21187,
13,
259,
7249,
273,
62,
312,
3268
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
262,
1613,
837,
508,
468,
7817,
31430,
604,
5066,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273,
13,
2364,
1586,
62,
312,
796,
1781,
62,
2364,
1586,
13,
2364,
1586,
62,
312,
3268,
21479,
32357,
1268,
21187,
6177,
6011,
62,
259,
7249,
273,
13,
259,
7249,
273,
62,
312,
796,
21187,
13,
259,
7249,
273,
62,
312,
3268
] |
what was the last single kitty wells released ? | SELECT "title" FROM table_204_500 ORDER BY id DESC LIMIT 1 | [
10919,
373,
262,
938,
2060,
479,
9760,
22571,
2716,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
4059,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
938,
2060,
479,
9760,
22571,
2716,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
4059,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
What party was Dewey Short associated with? | SELECT "Party" FROM table_756 WHERE "Incumbent" = 'Dewey Short' | [
2061,
2151,
373,
25075,
2959,
10073,
3917,
351,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
38219,
33411,
366,
25517,
2178,
298,
1,
796,
705,
35,
413,
2959,
10073,
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
] | [
2061,
2151,
373,
25075,
2959,
10073,
3917,
351,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
38219,
33411,
366,
25517,
2178,
298,
1,
796,
705,
35,
413,
2959,
10073,
6
] |
What is the Release Date when sSpec Number is sl5xl, sl657, sl6by, sl6jp? | SELECT release_date FROM table_name_96 WHERE sspec_number = "sl5xl, sl657, sl6by, sl6jp" | [
2061,
318,
262,
13868,
7536,
618,
264,
22882,
7913,
318,
1017,
20,
87,
75,
11,
1017,
37680,
11,
1017,
21,
1525,
11,
1017,
21,
34523,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
4846,
33411,
264,
16684,
62,
17618,
796,
366,
6649,
20,
87,
75,
11,
1017,
37680,
11,
1017,
21,
1525,
11,
1017,
21,
34523,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13868,
7536,
618,
264,
22882,
7913,
318,
1017,
20,
87,
75,
11,
1017,
37680,
11,
1017,
21,
1525,
11,
1017,
21,
34523,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
4846,
33411,
264,
16684,
62,
17618,
796,
366,
6649,
20,
87,
75,
11,
1017,
37680,
11,
1017,
21,
1525,
11,
1017,
21,
34523,
1
] |
what 's the difference in meters between the 2004 and 2009 competitions ? | SELECT (SELECT "notes" FROM table_203_436 WHERE "year" = 2004) - (SELECT "notes" FROM table_203_436 WHERE "year" = 2009) | [
10919,
705,
82,
262,
3580,
287,
10700,
1022,
262,
5472,
290,
3717,
24174,
5633,
46506,
357,
46506,
366,
17815,
1,
16034,
3084,
62,
22416,
62,
43690,
33411,
366,
1941,
1,
796,
5472,
8,
532,
357,
46506,
366,
17815,
1,
16034,
3084,
62,
22416,
62,
43690,
33411,
366,
1941,
1,
796,
3717,
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
] | [
10919,
705,
82,
262,
3580,
287,
10700,
1022,
262,
5472,
290,
3717,
24174,
5633,
46506,
357,
46506,
366,
17815,
1,
16034,
3084,
62,
22416,
62,
43690,
33411,
366,
1941,
1,
796,
5472,
8,
532,
357,
46506,
366,
17815,
1,
16034,
3084,
62,
22416,
62,
43690,
33411,
366,
1941,
1,
796,
3717,
8
] |
how many milion of viewers where in the episode called in english 'is a great way to care | SELECT hk_viewers FROM table_29633639_1 WHERE english_title = "A Great Way to Care" | [
4919,
867,
1465,
295,
286,
10209,
810,
287,
262,
4471,
1444,
287,
46932,
705,
271,
257,
1049,
835,
284,
1337,
46506,
289,
74,
62,
1177,
364,
16034,
3084,
62,
27137,
29211,
2670,
62,
16,
33411,
46932,
62,
7839,
796,
366,
32,
3878,
6378,
284,
7276,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1465,
295,
286,
10209,
810,
287,
262,
4471,
1444,
287,
46932,
705,
271,
257,
1049,
835,
284,
1337,
46506,
289,
74,
62,
1177,
364,
16034,
3084,
62,
27137,
29211,
2670,
62,
16,
33411,
46932,
62,
7839,
796,
366,
32,
3878,
6378,
284,
7276,
1
] |
count the number of patients whose diagnoses long title is other specified cardiac dysrhythmias and lab test abnormal status is delta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Other specified cardiac dysrhythmias" AND lab.flag = "delta" | [
9127,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
584,
7368,
26077,
13147,
17179,
34853,
4448,
290,
2248,
1332,
18801,
3722,
318,
25979,
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,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
40567,
13,
6511,
62,
7839,
796,
366,
6395,
7368,
26077,
13147,
17179,
34853,
4448,
1,
5357,
2248,
13,
32109,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
890,
3670,
318,
584,
7368,
26077,
13147,
17179,
34853,
4448,
290,
2248,
1332,
18801,
3722,
318,
25979,
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,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
40567,
13,
6511,
62,
7839,
796,
366,
6395,
7368,
26077,
13147,
17179,
34853,
4448,
1,
5357,
2248,
13,
32109,
796
] |
Which Record has a Date of 23 february 1986? | SELECT "Record" FROM table_42247 WHERE "Date" = '23 february 1986' | [
13828,
13266,
468,
257,
7536,
286,
2242,
730,
65,
3728,
12113,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3682,
23753,
33411,
366,
10430,
1,
796,
705,
1954,
730,
65,
3728,
12113,
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,
13266,
468,
257,
7536,
286,
2242,
730,
65,
3728,
12113,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3682,
23753,
33411,
366,
10430,
1,
796,
705,
1954,
730,
65,
3728,
12113,
6
] |
Name the report for philip fotheringham-parker | SELECT "Report" FROM table_78009 WHERE "Winning driver" = 'philip fotheringham-parker' | [
5376,
262,
989,
329,
5206,
541,
277,
847,
25875,
12,
20928,
263,
46506,
366,
19100,
1,
16034,
3084,
62,
3695,
28694,
33411,
366,
16643,
768,
4639,
1,
796,
705,
28864,
541,
277,
847,
25875,
12,
20928,
263,
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
] | [
5376,
262,
989,
329,
5206,
541,
277,
847,
25875,
12,
20928,
263,
46506,
366,
19100,
1,
16034,
3084,
62,
3695,
28694,
33411,
366,
16643,
768,
4639,
1,
796,
705,
28864,
541,
277,
847,
25875,
12,
20928,
263,
6
] |
With theme the Year They Were Born, what is the song of choice? | SELECT "Song choice" FROM table_24427 WHERE "Theme" = 'Year They Were Born' | [
3152,
7505,
262,
6280,
1119,
15176,
18889,
11,
644,
318,
262,
3496,
286,
3572,
30,
46506,
366,
44241,
3572,
1,
16034,
3084,
62,
25707,
1983,
33411,
366,
47863,
1,
796,
705,
17688,
1119,
15176,
18889,
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
] | [
3152,
7505,
262,
6280,
1119,
15176,
18889,
11,
644,
318,
262,
3496,
286,
3572,
30,
46506,
366,
44241,
3572,
1,
16034,
3084,
62,
25707,
1983,
33411,
366,
47863,
1,
796,
705,
17688,
1119,
15176,
18889,
6
] |
how many states have done executions in 2014 ? | SELECT COUNT("state") FROM table_203_9 WHERE "last execution date" = 2014 | [
4919,
867,
2585,
423,
1760,
30632,
287,
1946,
5633,
46506,
327,
28270,
7203,
5219,
4943,
16034,
3084,
62,
22416,
62,
24,
33411,
366,
12957,
9706,
3128,
1,
796,
1946
] | [
1,
1,
1,
1,
1,
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,
2585,
423,
1760,
30632,
287,
1946,
5633,
46506,
327,
28270,
7203,
5219,
4943,
16034,
3084,
62,
22416,
62,
24,
33411,
366,
12957,
9706,
3128,
1,
796,
1946
] |
ground transportation atl to ATL | SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city AS CITY_0, city AS CITY_1, ground_service WHERE airport.airport_code = airport_service.airport_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = airport_service.city_code AND CITY_1.city_name = 'ATLANTA' AND ground_service.airport_code = airport.airport_code AND ground_service.city_code = CITY_0.city_code | [
2833,
9358,
379,
75,
284,
41051,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
62,
8189,
796,
9003,
62,
15271,
13,
958,
634,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
1404,
25697,
5603,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
1404,
25697,
5603
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2833,
9358,
379,
75,
284,
41051,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
62,
8189,
796,
9003,
62,
15271,
13,
958,
634,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
1404,
25697,
5603,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
1404,
25697,
5603
] |
for the last time in 2101, when did patient 027-186593 get admitted via operating room to the hospital? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '027-186593' AND patient.hospitaladmitsource = 'operating room' AND STRFTIME('%y', patient.hospitaladmittime) = '2101' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
1640,
262,
938,
640,
287,
2310,
486,
11,
618,
750,
5827,
657,
1983,
12,
1507,
2996,
6052,
651,
6848,
2884,
5361,
2119,
284,
262,
4436,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
1507,
2996,
6052,
6,
5357,
5827,
13,
49257,
324,
24883,
1668,
796,
705,
3575,
803,
2119,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
5827,
13,
49257,
324,
20124,
524,
8,
796,
705,
2481,
486,
6,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1640,
262,
938,
640,
287,
2310,
486,
11,
618,
750,
5827,
657,
1983,
12,
1507,
2996,
6052,
651,
6848,
2884,
5361,
2119,
284,
262,
4436,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
1507,
2996,
6052,
6,
5357,
5827,
13,
49257,
324,
24883,
1668,
796,
705,
3575,
803,
2119,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
5827,
13,
49257,
324,
20124,
524,
8,
796,
705,
2481,
486,
6,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] |
list the top three most common drugs that patients were prescribed with within 2 months, after they were prescribed with sodium fluoride (dental gel) during this year. | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'sodium fluoride (dental gel)' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.startdate < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.startdate) AND DATETIME(t1.startdate, '+2 month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3 | [
4868,
262,
1353,
1115,
749,
2219,
5010,
326,
3871,
547,
14798,
351,
1626,
362,
1933,
11,
706,
484,
547,
14798,
351,
21072,
40311,
357,
67,
2470,
20383,
8,
1141,
428,
614,
13,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
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,
34092,
13,
9688,
4475,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
34092
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4868,
262,
1353,
1115,
749,
2219,
5010,
326,
3871,
547,
14798,
351,
1626,
362,
1933,
11,
706,
484,
547,
14798,
351,
21072,
40311,
357,
67,
2470,
20383,
8,
1141,
428,
614,
13,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
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,
34092,
13,
9688,
4475,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
34092
] |
what is the attendance on the date of october 16 and the game is more than 5? | SELECT SUM("Attendance") FROM table_11406 WHERE "Date" = 'october 16' AND "Game" > '5' | [
10919,
318,
262,
14858,
319,
262,
3128,
286,
19318,
2023,
1467,
290,
262,
983,
318,
517,
621,
642,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
1157,
29703,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1467,
6,
5357,
366,
8777,
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,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
14858,
319,
262,
3128,
286,
19318,
2023,
1467,
290,
262,
983,
318,
517,
621,
642,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
1157,
29703,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1467,
6,
5357,
366,
8777,
1,
1875,
705,
20,
6
] |
What episode in the season was episode us18 in the series? | SELECT COUNT(no_in_season) FROM table_19897294_11 WHERE no_in_series = "US18" | [
2061,
4471,
287,
262,
1622,
373,
4471,
514,
1507,
287,
262,
2168,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
25475,
22,
27696,
62,
1157,
33411,
645,
62,
259,
62,
25076,
796,
366,
2937,
1507,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
287,
262,
1622,
373,
4471,
514,
1507,
287,
262,
2168,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
25475,
22,
27696,
62,
1157,
33411,
645,
62,
259,
62,
25076,
796,
366,
2937,
1507,
1
] |
Name the country for 2002 | SELECT country FROM table_name_81 WHERE year = 2002 | [
5376,
262,
1499,
329,
6244,
46506,
1499,
16034,
3084,
62,
3672,
62,
6659,
33411,
614,
796,
6244
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1499,
329,
6244,
46506,
1499,
16034,
3084,
62,
3672,
62,
6659,
33411,
614,
796,
6244
] |
Bar chart x axis meter 700 y axis id, display y-axis in desc order. | SELECT meter_700, ID FROM swimmer ORDER BY ID DESC | [
10374,
8262,
2124,
16488,
16430,
13037,
331,
16488,
4686,
11,
3359,
331,
12,
22704,
287,
1715,
1502,
13,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
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
] | [
10374,
8262,
2124,
16488,
16430,
13037,
331,
16488,
4686,
11,
3359,
331,
12,
22704,
287,
1715,
1502,
13,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
22196,
34
] |
What club has 693 points for? | SELECT club FROM table_1676073_13 WHERE points_for = "693" | [
2061,
3430,
468,
718,
6052,
2173,
329,
30,
46506,
3430,
16034,
3084,
62,
21940,
1899,
4790,
62,
1485,
33411,
2173,
62,
1640,
796,
366,
48528,
1
] | [
1,
1,
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,
3430,
468,
718,
6052,
2173,
329,
30,
46506,
3430,
16034,
3084,
62,
21940,
1899,
4790,
62,
1485,
33411,
2173,
62,
1640,
796,
366,
48528,
1
] |
During the act, Playing on Glasses, what was the semi-final? | SELECT "Semi-final" FROM table_26064 WHERE "Act" = 'Playing on Glasses' | [
7191,
262,
719,
11,
23911,
319,
12158,
274,
11,
644,
373,
262,
10663,
12,
20311,
30,
46506,
366,
13900,
72,
12,
20311,
1,
16034,
3084,
62,
21719,
2414,
33411,
366,
6398,
1,
796,
705,
36530,
319,
12158,
274,
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
] | [
7191,
262,
719,
11,
23911,
319,
12158,
274,
11,
644,
373,
262,
10663,
12,
20311,
30,
46506,
366,
13900,
72,
12,
20311,
1,
16034,
3084,
62,
21719,
2414,
33411,
366,
6398,
1,
796,
705,
36530,
319,
12158,
274,
6
] |
How many arson-related fires were there in 2010? | SELECT COUNT(*) FROM fires WHERE fire_year = 2010 AND stat_cause_descr LIKE "%Arson%" | [
2437,
867,
35181,
12,
5363,
12252,
547,
612,
287,
3050,
30,
46506,
327,
28270,
7,
28104,
16034,
12252,
33411,
2046,
62,
1941,
796,
3050,
5357,
1185,
62,
25587,
62,
20147,
81,
34178,
36521,
3163,
1559,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
35181,
12,
5363,
12252,
547,
612,
287,
3050,
30,
46506,
327,
28270,
7,
28104,
16034,
12252,
33411,
2046,
62,
1941,
796,
3050,
5357,
1185,
62,
25587,
62,
20147,
81,
34178,
36521,
3163,
1559,
39658
] |
In 1962, what was the total number of points, when the Engine was Ferrari v6? | SELECT COUNT("Points") FROM table_71422 WHERE "Engine" = 'ferrari v6' AND "Year" = '1962' | [
818,
20033,
11,
644,
373,
262,
2472,
1271,
286,
2173,
11,
618,
262,
7117,
373,
23502,
410,
21,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
45722,
1828,
33411,
366,
13798,
1,
796,
705,
2232,
81,
2743,
410,
21,
6,
5357,
366,
17688,
1,
796,
705,
1129,
5237,
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
] | [
818,
20033,
11,
644,
373,
262,
2472,
1271,
286,
2173,
11,
618,
262,
7117,
373,
23502,
410,
21,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
45722,
1828,
33411,
366,
13798,
1,
796,
705,
2232,
81,
2743,
410,
21,
6,
5357,
366,
17688,
1,
796,
705,
1129,
5237,
6
] |
count the number of patients whose diagnoses short title is dvrtcli colon w/o hmrhg and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Dvrtcli colon w/o hmrhg" AND lab.flag = "abnormal" | [
9127,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
288,
85,
17034,
44506,
7633,
266,
14,
78,
289,
76,
17179,
70,
290,
2248,
1332,
18801,
3722,
318,
18801,
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,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
35,
85,
17034,
44506,
7633,
266,
14,
78
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
1790,
3670,
318,
288,
85,
17034,
44506,
7633,
266,
14,
78,
289,
76,
17179,
70,
290,
2248,
1332,
18801,
3722,
318,
18801,
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,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
35,
85,
17034,
44506,
7633,
266,
14,
78
] |
What is the smallest average for Beijing Guo'an when they played more than 240 games? | SELECT MIN(average) FROM table_name_26 WHERE team = "beijing guo'an" AND games > 240 | [
2061,
318,
262,
18197,
2811,
329,
11618,
1962,
78,
6,
272,
618,
484,
2826,
517,
621,
14956,
1830,
30,
46506,
20625,
7,
23913,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
1074,
796,
366,
1350,
11030,
915,
78,
6,
272,
1,
5357,
1830,
1875,
14956
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
329,
11618,
1962,
78,
6,
272,
618,
484,
2826,
517,
621,
14956,
1830,
30,
46506,
20625,
7,
23913,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
1074,
796,
366,
1350,
11030,
915,
78,
6,
272,
1,
5357,
1830,
1875,
14956
] |
did patient 025-27850 ever have oxygen therapy (40% to 60%) - face mask during this year? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-27850')) AND treatment.treatmentname = 'oxygen therapy (40% to 60%) - face mask' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
20839,
5827,
657,
1495,
12,
1983,
25764,
1683,
423,
11863,
9102,
357,
1821,
4,
284,
3126,
4407,
532,
1986,
9335,
1141,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
1983,
25764,
6,
4008,
5357,
3513,
13,
42487,
3672,
796,
705,
23536,
5235,
9102,
357,
1821,
4,
284
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20839,
5827,
657,
1495,
12,
1983,
25764,
1683,
423,
11863,
9102,
357,
1821,
4,
284,
3126,
4407,
532,
1986,
9335,
1141,
428,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
1983,
25764,
6,
4008,
5357,
3513,
13,
42487,
3672,
796,
705,
23536,
5235,
9102,
357,
1821,
4,
284
] |
Show me about the distribution of All_Games and Team_ID in a bar chart. | SELECT All_Games, Team_ID FROM basketball_match | [
15307,
502,
546,
262,
6082,
286,
1439,
62,
24474,
290,
4816,
62,
2389,
287,
257,
2318,
8262,
13,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
1,
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,
502,
546,
262,
6082,
286,
1439,
62,
24474,
290,
4816,
62,
2389,
287,
257,
2318,
8262,
13,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] |
How many Top 10s have Wins larger than 0, and Poles larger than 0? | SELECT COUNT("Top 10") FROM table_38441 WHERE "Wins" > '0' AND "Poles" > '0' | [
2437,
867,
5849,
838,
82,
423,
24423,
4025,
621,
657,
11,
290,
45631,
4025,
621,
657,
30,
46506,
327,
28270,
7203,
9126,
838,
4943,
16034,
3084,
62,
2548,
39710,
33411,
366,
54,
1040,
1,
1875,
705,
15,
6,
5357,
366,
47,
4316,
1,
1875,
705,
15,
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
] | [
2437,
867,
5849,
838,
82,
423,
24423,
4025,
621,
657,
11,
290,
45631,
4025,
621,
657,
30,
46506,
327,
28270,
7203,
9126,
838,
4943,
16034,
3084,
62,
2548,
39710,
33411,
366,
54,
1040,
1,
1875,
705,
15,
6,
5357,
366,
47,
4316,
1,
1875,
705,
15,
6
] |
What's the To par of St Andrews before the year 1888? | SELECT "To par [a ]" FROM table_13963 WHERE "Course" = 'st andrews' AND "Year" < '1888' | [
2061,
338,
262,
1675,
1582,
286,
520,
26414,
878,
262,
614,
49584,
30,
46506,
366,
2514,
1582,
685,
64,
2361,
1,
16034,
3084,
62,
1485,
4846,
18,
33411,
366,
49046,
1,
796,
705,
301,
290,
1809,
82,
6,
5357,
366,
17688,
1,
1279,
705,
1507,
3459,
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
] | [
2061,
338,
262,
1675,
1582,
286,
520,
26414,
878,
262,
614,
49584,
30,
46506,
366,
2514,
1582,
685,
64,
2361,
1,
16034,
3084,
62,
1485,
4846,
18,
33411,
366,
49046,
1,
796,
705,
301,
290,
1809,
82,
6,
5357,
366,
17688,
1,
1279,
705,
1507,
3459,
6
] |
Name the position for british columbia | SELECT position FROM table_28059992_2 WHERE college = "British Columbia" | [
5376,
262,
2292,
329,
275,
799,
680,
951,
2178,
544,
46506,
2292,
16034,
3084,
62,
21033,
43452,
5892,
62,
17,
33411,
4152,
796,
366,
25631,
9309,
1
] | [
1,
1,
1,
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,
2292,
329,
275,
799,
680,
951,
2178,
544,
46506,
2292,
16034,
3084,
62,
21033,
43452,
5892,
62,
17,
33411,
4152,
796,
366,
25631,
9309,
1
] |
Are there any morning classes for MFG 990 ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'MFG' AND course.number = 990 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | [
8491,
612,
597,
3329,
6097,
329,
337,
30386,
860,
3829,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
1279,
705,
1065,
25,
405,
25,
405,
6,
5357,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
18189,
705,
2919,
25,
405,
25,
405,
6,
5357,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
44,
30386,
6,
5357,
1781,
13,
17618,
796,
860,
3829,
5357,
24878,
13,
325,
6880,
353,
796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8491,
612,
597,
3329,
6097,
329,
337,
30386,
860,
3829,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
1279,
705,
1065,
25,
405,
25,
405,
6,
5357,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
18189,
705,
2919,
25,
405,
25,
405,
6,
5357,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
44,
30386,
6,
5357,
1781,
13,
17618,
796,
860,
3829,
5357,
24878,
13,
325,
6880,
353,
796
] |
What contestant is 173 cm tall? | SELECT contestant FROM table_20754016_2 WHERE height__cm_ = 173 | [
2061,
44047,
318,
28174,
12067,
7331,
30,
46506,
44047,
16034,
3084,
62,
1238,
2425,
21844,
21,
62,
17,
33411,
6001,
834,
11215,
62,
796,
28174
] | [
1,
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,
44047,
318,
28174,
12067,
7331,
30,
46506,
44047,
16034,
3084,
62,
1238,
2425,
21844,
21,
62,
17,
33411,
6001,
834,
11215,
62,
796,
28174
] |
What is Tatyana Gubina's Weight? | SELECT "Weight" FROM table_61423 WHERE "Name" = 'tatyana gubina' | [
2061,
318,
29070,
88,
2271,
402,
549,
1437,
338,
14331,
30,
46506,
366,
25844,
1,
16034,
3084,
62,
46841,
1954,
33411,
366,
5376,
1,
796,
705,
83,
265,
88,
2271,
308,
549,
1437,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
29070,
88,
2271,
402,
549,
1437,
338,
14331,
30,
46506,
366,
25844,
1,
16034,
3084,
62,
46841,
1954,
33411,
366,
5376,
1,
796,
705,
83,
265,
88,
2271,
308,
549,
1437,
6
] |
how many patients whose insurance is medicare and lab test name is uptake ratio? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Medicare" AND lab.label = "Uptake Ratio" | [
4919,
867,
3871,
3025,
5096,
318,
6924,
533,
290,
2248,
1332,
1438,
318,
35340,
8064,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
533,
1,
5357,
2248,
13,
18242,
796,
366,
52,
457,
539,
33956,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
3025,
5096,
318,
6924,
533,
290,
2248,
1332,
1438,
318,
35340,
8064,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
533,
1,
5357,
2248,
13,
18242,
796,
366,
52,
457,
539,
33956,
1
] |
how many patients aged below 83 years had the primary disease celo-vessicle fistula? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" AND demographic.age < "83" | [
4919,
867,
3871,
9722,
2174,
9698,
812,
550,
262,
4165,
4369,
18725,
78,
12,
85,
408,
1548,
18606,
4712,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
34,
3698,
46,
12,
53,
7597,
31419,
376,
8808,
6239,
32,
1,
5357,
16728,
13,
496,
1279,
366,
5999,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9722,
2174,
9698,
812,
550,
262,
4165,
4369,
18725,
78,
12,
85,
408,
1548,
18606,
4712,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
34,
3698,
46,
12,
53,
7597,
31419,
376,
8808,
6239,
32,
1,
5357,
16728,
13,
496,
1279,
366,
5999,
1
] |
What is the score for the Dec 11 game? | SELECT "Score" FROM table_39365 WHERE "December" = '11' | [
2061,
318,
262,
4776,
329,
262,
4280,
1367,
983,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2670,
24760,
33411,
366,
20588,
1,
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
] | [
2061,
318,
262,
4776,
329,
262,
4280,
1367,
983,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2670,
24760,
33411,
366,
20588,
1,
796,
705,
1157,
6
] |
What is the highest total number? | SELECT MAX("Total") FROM table_3443 | [
2061,
318,
262,
4511,
2472,
1271,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
33535,
18
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
2472,
1271,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
33535,
18
] |
What is the total number of episodes aired in Canada on 22 October 2004? | SELECT COUNT("Episode") FROM table_5257 WHERE "Airdate (Canada)" = '22 october 2004' | [
2061,
318,
262,
2472,
1271,
286,
8640,
18530,
287,
3340,
319,
2534,
3267,
5472,
30,
46506,
327,
28270,
7203,
23758,
4943,
16034,
3084,
62,
20,
28676,
33411,
366,
32,
1447,
378,
357,
17940,
16725,
796,
705,
1828,
19318,
2023,
5472,
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
] | [
2061,
318,
262,
2472,
1271,
286,
8640,
18530,
287,
3340,
319,
2534,
3267,
5472,
30,
46506,
327,
28270,
7203,
23758,
4943,
16034,
3084,
62,
20,
28676,
33411,
366,
32,
1447,
378,
357,
17940,
16725,
796,
705,
1828,
19318,
2023,
5472,
6
] |
What was the score of the game on June 1? | SELECT score FROM table_name_38 WHERE date = "june 1" | [
2061,
373,
262,
4776,
286,
262,
983,
319,
2795,
352,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2548,
33411,
3128,
796,
366,
73,
1726,
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
] | [
2061,
373,
262,
4776,
286,
262,
983,
319,
2795,
352,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2548,
33411,
3128,
796,
366,
73,
1726,
352,
1
] |
What is the production code for the number 5 series ? | SELECT "Production code" FROM table_29031 WHERE "No. in series" = '5' | [
2061,
318,
262,
3227,
2438,
329,
262,
1271,
642,
2168,
5633,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
1959,
43637,
33411,
366,
2949,
13,
287,
2168,
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,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3227,
2438,
329,
262,
1271,
642,
2168,
5633,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
1959,
43637,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
20,
6
] |
list all round trip fares from PITTSBURGH to WASHINGTON | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND CITY_1.state_code = 'DC' AND NOT fare.round_trip_cost IS NULL AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | [
4868,
477,
2835,
5296,
33164,
422,
49040,
4694,
38926,
17511,
284,
370,
19436,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
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,
14505,
11,
5474,
11,
5474,
62,
9496,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
47,
2043,
4694
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4868,
477,
2835,
5296,
33164,
422,
49040,
4694,
38926,
17511,
284,
370,
19436,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
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,
14505,
11,
5474,
11,
5474,
62,
9496,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
47,
2043,
4694
] |
How many points under par was the winner of the Miyagi TV Cup Dunlop Ladies Open? | SELECT to_par FROM table_2126093_3 WHERE tournament = "Miyagi TV Cup Dunlop Ladies Open" | [
2437,
867,
2173,
739,
1582,
373,
262,
8464,
286,
262,
29464,
18013,
3195,
5454,
5648,
75,
404,
37401,
4946,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
21777,
1899,
6052,
62,
18,
33411,
7756,
796,
366,
44,
7745,
18013,
3195,
5454,
5648,
75,
404,
37401,
4946,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
739,
1582,
373,
262,
8464,
286,
262,
29464,
18013,
3195,
5454,
5648,
75,
404,
37401,
4946,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
21777,
1899,
6052,
62,
18,
33411,
7756,
796,
366,
44,
7745,
18013,
3195,
5454,
5648,
75,
404,
37401,
4946,
1
] |
What is the Championship Game that has 4 Bids and a .600 Win %? | SELECT "Championship Game" FROM table_45882 WHERE "# of Bids" = '4' AND "Win %" = '.600' | [
2061,
318,
262,
10749,
3776,
326,
468,
604,
347,
2340,
290,
257,
764,
8054,
7178,
4064,
30,
46506,
366,
1925,
4350,
1056,
3776,
1,
16034,
3084,
62,
2231,
42980,
33411,
25113,
286,
347,
2340,
1,
796,
705,
19,
6,
5357,
366,
16643,
4064,
1,
796,
45302,
8054,
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
] | [
2061,
318,
262,
10749,
3776,
326,
468,
604,
347,
2340,
290,
257,
764,
8054,
7178,
4064,
30,
46506,
366,
1925,
4350,
1056,
3776,
1,
16034,
3084,
62,
2231,
42980,
33411,
25113,
286,
347,
2340,
1,
796,
705,
19,
6,
5357,
366,
16643,
4064,
1,
796,
45302,
8054,
6
] |
Plot a scatter chart, low estimate by high_estimate. | SELECT Low_Estimate, High_Estimate FROM film_market_estimation | [
43328,
257,
41058,
8262,
11,
1877,
8636,
416,
1029,
62,
395,
1920,
13,
46506,
7754,
62,
22362,
1920,
11,
3334,
62,
22362,
1920,
16034,
2646,
62,
10728,
62,
395,
18991
] | [
1,
1,
1,
1,
1,
1,
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,
257,
41058,
8262,
11,
1877,
8636,
416,
1029,
62,
395,
1920,
13,
46506,
7754,
62,
22362,
1920,
11,
3334,
62,
22362,
1920,
16034,
2646,
62,
10728,
62,
395,
18991
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.