instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|
What is the sum of caps for players with less than 9 goals ranked below 8? | SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8 | [
2061,
318,
262,
2160,
286,
11022,
329,
1938,
351,
1342,
621,
860,
4661,
10307,
2174,
807,
30,
46506,
35683,
7,
27979,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
4661,
1279,
860,
5357,
4279,
1875,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
11022,
329,
1938,
351,
1342,
621,
860,
4661,
10307,
2174,
807,
30,
46506,
35683,
7,
27979,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
4661,
1279,
860,
5357,
4279,
1875,
807
] |
What was the TV time for Chicago's road game against Phoenix on June 18? | SELECT tv_time FROM table_name_66 WHERE road_team = "phoenix" AND date = "june 18" | [
2061,
373,
262,
3195,
640,
329,
4842,
338,
2975,
983,
1028,
9643,
319,
2795,
1248,
30,
46506,
31557,
62,
2435,
16034,
3084,
62,
3672,
62,
2791,
33411,
2975,
62,
15097,
796,
366,
746,
8538,
1,
5357,
3128,
796,
366,
73,
1726,
1248,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3195,
640,
329,
4842,
338,
2975,
983,
1028,
9643,
319,
2795,
1248,
30,
46506,
31557,
62,
2435,
16034,
3084,
62,
3672,
62,
2791,
33411,
2975,
62,
15097,
796,
366,
746,
8538,
1,
5357,
3128,
796,
366,
73,
1726,
1248,
1
] |
how many patients whose year of birth is less than 2073 and lab test abnormal status is delta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2073" AND lab.flag = "delta" | [
4919,
867,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
4790,
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,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
4790,
1,
5357,
2248,
13,
32109,
796,
366,
67,
12514,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
4790,
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,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
4790,
1,
5357,
2248,
13,
32109,
796,
366,
67,
12514,
1
] |
What position is the player from the Regina Pats (WHL)? | SELECT "Position" FROM table_29019 WHERE "College/junior/club team" = 'Regina Pats (WHL)' | [
2061,
2292,
318,
262,
2137,
422,
262,
38739,
47216,
357,
54,
6581,
19427,
46506,
366,
26545,
1,
16034,
3084,
62,
1959,
30484,
33411,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
796,
705,
8081,
1437,
47216,
357,
54,
6581,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
318,
262,
2137,
422,
262,
38739,
47216,
357,
54,
6581,
19427,
46506,
366,
26545,
1,
16034,
3084,
62,
1959,
30484,
33411,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
796,
705,
8081,
1437,
47216,
357,
54,
6581,
33047
] |
The competition located in Northampton had a resulting score of what? | SELECT "Score" FROM table_15693 WHERE "Location" = 'northampton' | [
464,
5449,
5140,
287,
2258,
23427,
550,
257,
7186,
4776,
286,
644,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1314,
48528,
33411,
366,
14749,
1,
796,
705,
43588,
23427,
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
] | [
464,
5449,
5140,
287,
2258,
23427,
550,
257,
7186,
4776,
286,
644,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1314,
48528,
33411,
366,
14749,
1,
796,
705,
43588,
23427,
6
] |
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by weekday, order by the y-axis from low to high. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(EMPLOYEE_ID) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
1502,
416,
262,
331,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
3620,
6489,
21414,
6500,
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,
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,
1,
1,
1,
1
] | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
1502,
416,
262,
331,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
3620,
6489,
21414,
6500,
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,
38678,
11050,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8
] |
what is the first medication that patient 007-2065 has been prescribed in the first hospital encounter? | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-2065' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1)) ORDER BY medication.drugstarttime LIMIT 1 | [
10919,
318,
262,
717,
14103,
326,
5827,
3571,
22,
12,
1238,
2996,
468,
587,
14798,
287,
262,
717,
4436,
8791,
30,
46506,
14103,
13,
30349,
3672,
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,
25816,
12,
1238,
2996,
6,
5357,
5626,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
27564
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
14103,
326,
5827,
3571,
22,
12,
1238,
2996,
468,
587,
14798,
287,
262,
717,
4436,
8791,
30,
46506,
14103,
13,
30349,
3672,
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,
25816,
12,
1238,
2996,
6,
5357,
5626,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
27564
] |
In what Week resulting in the bottom 3 was Endre Jansen Partner? | SELECT MAX(week) FROM table_name_97 WHERE result = "bottom 3" AND partner = "endre jansen" | [
818,
644,
6119,
7186,
287,
262,
4220,
513,
373,
5268,
260,
449,
33807,
35532,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
1255,
796,
366,
22487,
513,
1,
5357,
5212,
796,
366,
437,
260,
474,
33807,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
644,
6119,
7186,
287,
262,
4220,
513,
373,
5268,
260,
449,
33807,
35532,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
1255,
796,
366,
22487,
513,
1,
5357,
5212,
796,
366,
437,
260,
474,
33807,
1
] |
Who is the director of 'new girls'? | SELECT "Director" FROM table_28147 WHERE "Title" = 'New Girls' | [
8241,
318,
262,
3437,
286,
705,
3605,
4813,
30960,
46506,
366,
28702,
1,
16034,
3084,
62,
2078,
20198,
33411,
366,
19160,
1,
796,
705,
3791,
12002,
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
] | [
8241,
318,
262,
3437,
286,
705,
3605,
4813,
30960,
46506,
366,
28702,
1,
16034,
3084,
62,
2078,
20198,
33411,
366,
19160,
1,
796,
705,
3791,
12002,
6
] |
how many patients aged below 64 year died in or before year 2174? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "64" AND demographic.dod_year <= "2174.0" | [
4919,
867,
3871,
9722,
2174,
5598,
614,
3724,
287,
393,
878,
614,
362,
22985,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
366,
2414,
1,
5357,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
22985,
13,
15,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
9722,
2174,
5598,
614,
3724,
287,
393,
878,
614,
362,
22985,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
366,
2414,
1,
5357,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
22985,
13,
15,
1
] |
count the number of patients whose gender is m and procedure long title is insertion of non-drug-eluting coronary artery stent(s)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.long_title = "Insertion of non-drug-eluting coronary artery stent(s)" | [
9127,
262,
1271,
286,
3871,
3025,
5279,
318,
285,
290,
8771,
890,
3670,
318,
36075,
286,
1729,
12,
30349,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
9021,
13,
6511,
62,
7839,
796,
366,
44402,
295,
286,
1729,
12,
30349,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5279,
318,
285,
290,
8771,
890,
3670,
318,
36075,
286,
1729,
12,
30349,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
9021,
13,
6511,
62,
7839,
796,
366,
44402,
295,
286,
1729,
12,
30349,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
16725
] |
On what date was the score 6 4? | SELECT date FROM table_name_1 WHERE score = "6–4" | [
2202,
644,
3128,
373,
262,
4776,
718,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
16,
33411,
4776,
796,
366,
21,
1906,
19,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
373,
262,
4776,
718,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
16,
33411,
4776,
796,
366,
21,
1906,
19,
1
] |
Visualize a bar chart about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home, and display by the X in descending please. | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
290,
3359,
416,
262,
1395,
287,
31491,
3387,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
15592,
62,
2389,
8,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
38678,
11050,
1439,
62,
16060,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
290,
3359,
416,
262,
1395,
287,
31491,
3387,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
15592,
62,
2389,
8,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
38678,
11050,
1439,
62,
16060,
22196,
34
] |
What time was the kickoff on week 5? | SELECT kickoff_ AS "a_" FROM table_name_60 WHERE week = "5" | [
2061,
640,
373,
262,
40532,
319,
1285,
642,
30,
46506,
40532,
62,
7054,
366,
64,
62,
1,
16034,
3084,
62,
3672,
62,
1899,
33411,
1285,
796,
366,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
640,
373,
262,
40532,
319,
1285,
642,
30,
46506,
40532,
62,
7054,
366,
64,
62,
1,
16034,
3084,
62,
3672,
62,
1899,
33411,
1285,
796,
366,
20,
1
] |
what is the venue where the scores are 15.13 (103) 8.4 (52)? | SELECT "Venue" FROM table_16703 WHERE "Scores" = '15.13 (103) – 8.4 (52)' | [
10919,
318,
262,
14359,
810,
262,
8198,
389,
1315,
13,
1485,
357,
15197,
8,
807,
13,
19,
357,
4309,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
1433,
36809,
33411,
366,
3351,
2850,
1,
796,
705,
1314,
13,
1485,
357,
15197,
8,
784,
807,
13,
19,
357,
4309,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
14359,
810,
262,
8198,
389,
1315,
13,
1485,
357,
15197,
8,
807,
13,
19,
357,
4309,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
1433,
36809,
33411,
366,
3351,
2850,
1,
796,
705,
1314,
13,
1485,
357,
15197,
8,
784,
807,
13,
19,
357,
4309,
33047
] |
Who put stackoverflow.com as their personal website?. It's amazing how many people just dislike showing any personal link in the WebsiteUrl, and instead they put http://stackoverflow.com, their personal SO profile link, or any sub-link of stackoverflow!
This simple query shows people who do that. | SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND NOT ClosedDate IS NULL AND LOWER(Body) LIKE '%stackoverflow.com%' | [
8241,
1234,
8931,
2502,
11125,
13,
785,
355,
511,
2614,
3052,
30,
13,
632,
338,
4998,
703,
867,
661,
655,
23109,
4478,
597,
2614,
2792,
287,
262,
15887,
28165,
11,
290,
2427,
484,
1234,
2638,
1378,
25558,
2502,
11125,
13,
785,
11,
511,
2614,
12809,
7034,
2792,
11,
393,
597,
850,
12,
8726,
286,
8931,
2502,
11125,
0,
201,
198,
201,
198,
1212,
2829,
12405,
2523,
661,
508,
466,
326,
13,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
5626,
30550,
10430,
3180,
15697,
5357,
406,
36048,
7,
25842,
8,
34178,
705,
4,
25558
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1234,
8931,
2502,
11125,
13,
785,
355,
511,
2614,
3052,
30,
13,
632,
338,
4998,
703,
867,
661,
655,
23109,
4478,
597,
2614,
2792,
287,
262,
15887,
28165,
11,
290,
2427,
484,
1234,
2638,
1378,
25558,
2502,
11125,
13,
785,
11,
511,
2614,
12809,
7034,
2792,
11,
393,
597,
850,
12,
8726,
286,
8931,
2502,
11125,
0,
201,
198,
201,
198,
1212,
2829,
12405,
2523,
661,
508,
466,
326,
13,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
5626,
30550,
10430,
3180,
15697,
5357,
406,
36048,
7,
25842,
8,
34178,
705,
4,
25558
] |
What's the part 3 of the verb with part 4 gelopen? | SELECT part_3 FROM table_1745843_7 WHERE part_4 = "gelopen" | [
2061,
338,
262,
636,
513,
286,
262,
15942,
351,
636,
604,
20383,
9654,
30,
46506,
636,
62,
18,
16034,
3084,
62,
1558,
29334,
3559,
62,
22,
33411,
636,
62,
19,
796,
366,
25280,
9654,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
636,
513,
286,
262,
15942,
351,
636,
604,
20383,
9654,
30,
46506,
636,
62,
18,
16034,
3084,
62,
1558,
29334,
3559,
62,
22,
33411,
636,
62,
19,
796,
366,
25280,
9654,
1
] |
give me the number of patients whose drug code is pant40i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "PANT40I" | [
26535,
502,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
15857,
1821,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
47,
8643,
1821,
40,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
2438,
318,
15857,
1821,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
47,
8643,
1821,
40,
1
] |
What is the sum of the pop density people/km2 with a population % of EU of 0.1%, an area % of EU of 0.1%, and has more than 0.5 population in millions? | SELECT SUM("Pop. density People/km 2") FROM table_42009 WHERE "Population % of EU" = '0.1%' AND "Area % of EU" = '0.1%' AND "Population in millions" > '0.5' | [
2061,
318,
262,
2160,
286,
262,
1461,
12109,
661,
14,
13276,
17,
351,
257,
3265,
4064,
286,
4576,
286,
657,
13,
16,
7441,
281,
1989,
4064,
286,
4576,
286,
657,
13,
16,
7441,
290,
468,
517,
621,
657,
13,
20,
3265,
287,
5242,
30,
46506,
35683,
7203,
16979,
13,
12109,
4380,
14,
13276,
362,
4943,
16034,
3084,
62,
19,
10531,
33411,
366,
45251,
4064,
286,
4576,
1,
796,
705,
15,
13,
16,
4,
6,
5357,
366,
30547,
4064,
286,
4576,
1,
796,
705,
15,
13,
16,
4,
6,
5357,
366,
45251,
287,
5242,
1,
1875,
705,
15,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
262,
1461,
12109,
661,
14,
13276,
17,
351,
257,
3265,
4064,
286,
4576,
286,
657,
13,
16,
7441,
281,
1989,
4064,
286,
4576,
286,
657,
13,
16,
7441,
290,
468,
517,
621,
657,
13,
20,
3265,
287,
5242,
30,
46506,
35683,
7203,
16979,
13,
12109,
4380,
14,
13276,
362,
4943,
16034,
3084,
62,
19,
10531,
33411,
366,
45251,
4064,
286,
4576,
1,
796,
705,
15,
13,
16,
4,
6,
5357,
366,
30547,
4064,
286,
4576,
1,
796,
705,
15,
13,
16,
4,
6,
5357,
366,
45251,
287,
5242,
1,
1875,
705,
15,
13,
20,
6
] |
what is the total number of patients who had icd9 code 9907 | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "9907" | [
10919,
318,
262,
2472,
1271,
286,
3871,
508,
550,
14158,
67,
24,
2438,
7388,
2998,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
2079,
2998,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
3871,
508,
550,
14158,
67,
24,
2438,
7388,
2998,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
2079,
2998,
1
] |
Which venue led to a draw? | SELECT "Venue" FROM table_41511 WHERE "Result" = 'draw' | [
13828,
14359,
2957,
284,
257,
3197,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
35038,
1157,
33411,
366,
23004,
1,
796,
705,
19334,
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
] | [
13828,
14359,
2957,
284,
257,
3197,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
35038,
1157,
33411,
366,
23004,
1,
796,
705,
19334,
6
] |
What country has deltamac (hk) as the publisher? | SELECT country FROM table_name_34 WHERE publisher = "deltamac (hk)" | [
2061,
1499,
468,
1619,
83,
11494,
357,
71,
74,
8,
355,
262,
9991,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2682,
33411,
9991,
796,
366,
67,
2120,
11494,
357,
71,
74,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1499,
468,
1619,
83,
11494,
357,
71,
74,
8,
355,
262,
9991,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2682,
33411,
9991,
796,
366,
67,
2120,
11494,
357,
71,
74,
16725
] |
Show the position of players and the corresponding number of players. Visualize by bar chart. | SELECT Position, COUNT(*) FROM match_season GROUP BY Position | [
15307,
262,
2292,
286,
1938,
290,
262,
11188,
1271,
286,
1938,
13,
15612,
1096,
416,
2318,
8262,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
2292,
286,
1938,
290,
262,
11188,
1271,
286,
1938,
13,
15612,
1096,
416,
2318,
8262,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158
] |
What is the name of the country that has 18 May 2004 as the date? | SELECT country FROM table_name_27 WHERE date = "18 may 2004" | [
2061,
318,
262,
1438,
286,
262,
1499,
326,
468,
1248,
1737,
5472,
355,
262,
3128,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1983,
33411,
3128,
796,
366,
1507,
743,
5472,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
326,
468,
1248,
1737,
5472,
355,
262,
3128,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1983,
33411,
3128,
796,
366,
1507,
743,
5472,
1
] |
How long does thromboplastin last when prothrombin is unaffected? | SELECT partial_thromboplastin_time FROM table_1226250_1 WHERE bleeding_time = "Unaffected" AND prothrombin_time = "Unaffected" | [
2437,
890,
857,
294,
398,
65,
404,
12957,
259,
938,
618,
386,
400,
398,
8800,
318,
35290,
30,
46506,
13027,
62,
400,
398,
65,
404,
12957,
259,
62,
2435,
16034,
3084,
62,
1065,
2075,
9031,
62,
16,
33411,
16832,
62,
2435,
796,
366,
3118,
43958,
1,
5357,
386,
400,
398,
8800,
62,
2435,
796,
366,
3118,
43958,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
890,
857,
294,
398,
65,
404,
12957,
259,
938,
618,
386,
400,
398,
8800,
318,
35290,
30,
46506,
13027,
62,
400,
398,
65,
404,
12957,
259,
62,
2435,
16034,
3084,
62,
1065,
2075,
9031,
62,
16,
33411,
16832,
62,
2435,
796,
366,
3118,
43958,
1,
5357,
386,
400,
398,
8800,
62,
2435,
796,
366,
3118,
43958,
1
] |
Who is the spokesperson after 2012? | SELECT spokesperson FROM table_name_33 WHERE year_s_ > 2012 | [
8241,
318,
262,
11821,
706,
2321,
30,
46506,
11821,
16034,
3084,
62,
3672,
62,
2091,
33411,
614,
62,
82,
62,
1875,
2321
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
11821,
706,
2321,
30,
46506,
11821,
16034,
3084,
62,
3672,
62,
2091,
33411,
614,
62,
82,
62,
1875,
2321
] |
What year was there a Tony award category of Best Revival of a Musical? | SELECT "Year" FROM table_11944 WHERE "Award" = 'tony award' AND "Category" = 'best revival of a musical' | [
2061,
614,
373,
612,
257,
8832,
5764,
6536,
286,
6705,
48095,
286,
257,
33375,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
16315,
2598,
33411,
366,
32,
904,
1,
796,
705,
1122,
88,
5764,
6,
5357,
366,
27313,
1,
796,
705,
13466,
26624,
286,
257,
10530,
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,
614,
373,
612,
257,
8832,
5764,
6536,
286,
6705,
48095,
286,
257,
33375,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
16315,
2598,
33411,
366,
32,
904,
1,
796,
705,
1122,
88,
5764,
6,
5357,
366,
27313,
1,
796,
705,
13466,
26624,
286,
257,
10530,
6
] |
what is the number of patients whose discharge location is disc-tran cancer/chldrn h and diagnoses short title is obstr incisional hernia? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND diagnoses.short_title = "Obstr incisional hernia" | [
10919,
318,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1221,
12,
2213,
272,
4890,
14,
354,
335,
35906,
289,
290,
40567,
1790,
3670,
318,
909,
2536,
753,
1166,
282,
607,
18142,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
26288,
34,
12,
5446,
1565,
15628,
34,
1137,
14,
3398,
43,
7707,
45,
367,
1,
5357,
40567,
13,
19509,
62,
7839,
796,
366
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1221,
12,
2213,
272,
4890,
14,
354,
335,
35906,
289,
290,
40567,
1790,
3670,
318,
909,
2536,
753,
1166,
282,
607,
18142,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
26288,
34,
12,
5446,
1565,
15628,
34,
1137,
14,
3398,
43,
7707,
45,
367,
1,
5357,
40567,
13,
19509,
62,
7839,
796,
366
] |
The tournament Buick Classic occured on what dates? | SELECT date FROM table_1507431_1 WHERE tournament = "Buick Classic" | [
464,
7756,
9842,
624,
13449,
1609,
1522,
319,
644,
9667,
30,
46506,
3128,
16034,
3084,
62,
8628,
4524,
3132,
62,
16,
33411,
7756,
796,
366,
38374,
624,
13449,
1
] | [
1,
1,
1,
1,
1,
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,
7756,
9842,
624,
13449,
1609,
1522,
319,
644,
9667,
30,
46506,
3128,
16034,
3084,
62,
8628,
4524,
3132,
62,
16,
33411,
7756,
796,
366,
38374,
624,
13449,
1
] |
What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8 | SELECT "Notation" FROM table_15970 WHERE "Crystal structure" = 'Tetragonal' AND "Formula" = 'Bi 2 Sr 2 CaCu 2 O 8' | [
2061,
318,
262,
9495,
618,
262,
15121,
4645,
318,
256,
21879,
27923,
290,
262,
10451,
318,
3182,
362,
19677,
362,
40428,
84,
362,
267,
807,
46506,
366,
3673,
341,
1,
16034,
3084,
62,
19707,
2154,
33411,
366,
43752,
4645,
1,
796,
705,
51,
21879,
27923,
6,
5357,
366,
8479,
4712,
1,
796,
705,
23286,
362,
21714,
362,
6488,
46141,
362,
440,
807,
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
] | [
2061,
318,
262,
9495,
618,
262,
15121,
4645,
318,
256,
21879,
27923,
290,
262,
10451,
318,
3182,
362,
19677,
362,
40428,
84,
362,
267,
807,
46506,
366,
3673,
341,
1,
16034,
3084,
62,
19707,
2154,
33411,
366,
43752,
4645,
1,
796,
705,
51,
21879,
27923,
6,
5357,
366,
8479,
4712,
1,
796,
705,
23286,
362,
21714,
362,
6488,
46141,
362,
440,
807,
6
] |
Is Prof. Bodova the only professor available for Senior Creative Writing Tutorial ? | SELECT DISTINCT course.department, course.name, course.number, instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.name LIKE '%Senior Creative Writing Tutorial%' AND NOT instructor.name LIKE '%Bodova%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id | [
3792,
4415,
13,
26285,
10071,
262,
691,
6240,
1695,
329,
14017,
17404,
22183,
36361,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
3672,
34178,
705,
4,
31224,
17404,
22183,
36361,
4,
6,
5357,
5626,
21187,
13,
3672,
34178,
705,
4,
33,
375,
10071,
4,
6,
5357,
6011,
62,
259,
7249,
273,
13,
259
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3792,
4415,
13,
26285,
10071,
262,
691,
6240,
1695,
329,
14017,
17404,
22183,
36361,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
3672,
34178,
705,
4,
31224,
17404,
22183,
36361,
4,
6,
5357,
5626,
21187,
13,
3672,
34178,
705,
4,
33,
375,
10071,
4,
6,
5357,
6011,
62,
259,
7249,
273,
13,
259
] |
How many golden tickets for the georgia international convention center? | SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = "georgia international convention center" | [
2437,
867,
10861,
8587,
329,
262,
4903,
2398,
544,
3230,
9831,
3641,
30,
46506,
35683,
7,
24267,
268,
62,
83,
15970,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
23838,
62,
4080,
796,
366,
469,
2398,
544,
3230,
9831,
3641,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10861,
8587,
329,
262,
4903,
2398,
544,
3230,
9831,
3641,
30,
46506,
35683,
7,
24267,
268,
62,
83,
15970,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
23838,
62,
4080,
796,
366,
469,
2398,
544,
3230,
9831,
3641,
1
] |
what is the total amount of members in the socialist group not including caucusing members ? | SELECT "members" FROM table_203_266 WHERE "group" = 'socialist group' | [
10919,
318,
262,
2472,
2033,
286,
1866,
287,
262,
15889,
1448,
407,
1390,
269,
14272,
3500,
1866,
5633,
46506,
366,
30814,
1,
16034,
3084,
62,
22416,
62,
25540,
33411,
366,
8094,
1,
796,
705,
14557,
396,
1448,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
2033,
286,
1866,
287,
262,
15889,
1448,
407,
1390,
269,
14272,
3500,
1866,
5633,
46506,
366,
30814,
1,
16034,
3084,
62,
22416,
62,
25540,
33411,
366,
8094,
1,
796,
705,
14557,
396,
1448,
6
] |
Who replaced Michel Preud'homme? | SELECT replaced_by FROM table_27374004_3 WHERE outgoing_manager = "Michel Preud'homme" | [
8241,
6928,
12386,
3771,
463,
6,
26452,
1326,
30,
46506,
6928,
62,
1525,
16034,
3084,
62,
1983,
2718,
7029,
19,
62,
18,
33411,
28181,
62,
37153,
796,
366,
25437,
2978,
3771,
463,
6,
26452,
1326,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6928,
12386,
3771,
463,
6,
26452,
1326,
30,
46506,
6928,
62,
1525,
16034,
3084,
62,
1983,
2718,
7029,
19,
62,
18,
33411,
28181,
62,
37153,
796,
366,
25437,
2978,
3771,
463,
6,
26452,
1326,
1
] |
What was the original air date of the episode that was directed by Jessica Landaw? | SELECT "Original air date" FROM table_29042 WHERE "Directed by" = 'Jessica Landaw' | [
2061,
373,
262,
2656,
1633,
3128,
286,
262,
4471,
326,
373,
7924,
416,
17352,
6379,
707,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1959,
3023,
17,
33411,
366,
13470,
276,
416,
1,
796,
705,
45572,
6379,
707,
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,
373,
262,
2656,
1633,
3128,
286,
262,
4471,
326,
373,
7924,
416,
17352,
6379,
707,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1959,
3023,
17,
33411,
366,
13470,
276,
416,
1,
796,
705,
45572,
6379,
707,
6
] |
What is Tie No, when Away Team is 'Millwall'? | SELECT tie_no FROM table_name_71 WHERE away_team = "millwall" | [
2061,
318,
36286,
1400,
11,
618,
21986,
4816,
318,
705,
22603,
11930,
30960,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
4869,
33411,
1497,
62,
15097,
796,
366,
17805,
11930,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
36286,
1400,
11,
618,
21986,
4816,
318,
705,
22603,
11930,
30960,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
4869,
33411,
1497,
62,
15097,
796,
366,
17805,
11930,
1
] |
What is the date of the game with a record of 14-31? | SELECT "Date" FROM table_67445 WHERE "Record" = '14-31' | [
2061,
318,
262,
3128,
286,
262,
983,
351,
257,
1700,
286,
1478,
12,
3132,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3134,
43489,
33411,
366,
23739,
1,
796,
705,
1415,
12,
3132,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
286,
262,
983,
351,
257,
1700,
286,
1478,
12,
3132,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3134,
43489,
33411,
366,
23739,
1,
796,
705,
1415,
12,
3132,
6
] |
Which Report includes the Belgian Grand Prix Race? | SELECT "Report" FROM table_55706 WHERE "Race" = 'belgian grand prix' | [
13828,
6358,
3407,
262,
21402,
5675,
23832,
12588,
30,
46506,
366,
19100,
1,
16034,
3084,
62,
2816,
35402,
33411,
366,
35157,
1,
796,
705,
6667,
18299,
4490,
1293,
87,
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,
6358,
3407,
262,
21402,
5675,
23832,
12588,
30,
46506,
366,
19100,
1,
16034,
3084,
62,
2816,
35402,
33411,
366,
35157,
1,
796,
705,
6667,
18299,
4490,
1293,
87,
6
] |
What is the total number of Weight(s), when Block is 300? | SELECT COUNT("Weight") FROM table_7544 WHERE "Block" = '300' | [
2061,
318,
262,
2472,
1271,
286,
14331,
7,
82,
828,
618,
9726,
318,
5867,
30,
46506,
327,
28270,
7203,
25844,
4943,
16034,
3084,
62,
2425,
2598,
33411,
366,
12235,
1,
796,
705,
6200,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
14331,
7,
82,
828,
618,
9726,
318,
5867,
30,
46506,
327,
28270,
7203,
25844,
4943,
16034,
3084,
62,
2425,
2598,
33411,
366,
12235,
1,
796,
705,
6200,
6
] |
what number of patients diagnosed under icd9 code 2984 died in or before the year 2174? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2174.0" AND diagnoses.icd9_code = "2984" | [
10919,
1271,
286,
3871,
14641,
739,
14158,
67,
24,
2438,
2808,
5705,
3724,
287,
393,
878,
262,
614,
362,
22985,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
22985,
13,
15,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
1959,
5705,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1271,
286,
3871,
14641,
739,
14158,
67,
24,
2438,
2808,
5705,
3724,
287,
393,
878,
262,
614,
362,
22985,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
22985,
13,
15,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
1959,
5705,
1
] |
Top Indonesian users in StackOverFlow. | SELECT *, ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation AS "tes" FROM Users WHERE LOWER(Location) LIKE '%indonesia%' AND Reputation > 200 ORDER BY LastAccessDate DESC | [
9126,
28259,
2985,
287,
23881,
5886,
37535,
13,
46506,
1635,
11,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
7054,
366,
4879,
1,
16034,
18987,
33411,
406,
36048,
7,
14749,
8,
34178,
705,
4,
521,
1952,
544,
4,
6,
5357,
1432,
7094,
1875,
939,
38678,
11050,
4586,
15457,
10430,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9126,
28259,
2985,
287,
23881,
5886,
37535,
13,
46506,
1635,
11,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
7054,
366,
4879,
1,
16034,
18987,
33411,
406,
36048,
7,
14749,
8,
34178,
705,
4,
521,
1952,
544,
4,
6,
5357,
1432,
7094,
1875,
939,
38678,
11050,
4586,
15457,
10430,
22196,
34
] |
find the birthdate and diagnosis of jerry deberry. | SELECT demographic.dob, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Jerry Deberry" | [
19796,
262,
4082,
4475,
290,
13669,
286,
474,
6996,
390,
8396,
13,
46506,
16728,
13,
67,
672,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4082,
4475,
290,
13669,
286,
474,
6996,
390,
8396,
13,
46506,
16728,
13,
67,
672,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] |
Name the date with margin of victory of 1 stroke and tournament of legend financial group classic | SELECT "Date" FROM table_14805 WHERE "Margin of victory" = '1 stroke' AND "Tournament" = 'legend financial group classic' | [
5376,
262,
3128,
351,
10330,
286,
5373,
286,
352,
14000,
290,
7756,
286,
8177,
3176,
1448,
6833,
46506,
366,
10430,
1,
16034,
3084,
62,
1415,
28256,
33411,
366,
24428,
259,
286,
5373,
1,
796,
705,
16,
14000,
6,
5357,
366,
51,
5138,
1,
796,
705,
1455,
437,
3176,
1448,
6833,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
3128,
351,
10330,
286,
5373,
286,
352,
14000,
290,
7756,
286,
8177,
3176,
1448,
6833,
46506,
366,
10430,
1,
16034,
3084,
62,
1415,
28256,
33411,
366,
24428,
259,
286,
5373,
1,
796,
705,
16,
14000,
6,
5357,
366,
51,
5138,
1,
796,
705,
1455,
437,
3176,
1448,
6833,
6
] |
When did Scott Hoch (2) win? | SELECT date FROM table_name_78 WHERE winner = "scott hoch (2)" | [
2215,
750,
4746,
367,
5374,
357,
17,
8,
1592,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3695,
33411,
8464,
796,
366,
1416,
1252,
289,
5374,
357,
17,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
750,
4746,
367,
5374,
357,
17,
8,
1592,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3695,
33411,
8464,
796,
366,
1416,
1252,
289,
5374,
357,
17,
16725
] |
What was the final score for the match played in Venue H and the opponent was Newcastle United? | SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united" | [
2061,
373,
262,
2457,
4776,
329,
262,
2872,
2826,
287,
9932,
518,
367,
290,
262,
6125,
373,
22410,
1578,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2091,
33411,
14359,
796,
366,
71,
1,
5357,
6125,
796,
366,
3605,
18676,
16503,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2457,
4776,
329,
262,
2872,
2826,
287,
9932,
518,
367,
290,
262,
6125,
373,
22410,
1578,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2091,
33411,
14359,
796,
366,
71,
1,
5357,
6125,
796,
366,
3605,
18676,
16503,
1
] |
What department houses Physical Activity Epidemiology ? | SELECT DISTINCT department FROM course WHERE name LIKE '%Physical Activity Epidemiology%' | [
2061,
5011,
7777,
16331,
24641,
38437,
12371,
5633,
46506,
360,
8808,
1268,
4177,
5011,
16034,
1781,
33411,
1438,
34178,
705,
4,
31611,
24641,
38437,
12371,
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
] | [
2061,
5011,
7777,
16331,
24641,
38437,
12371,
5633,
46506,
360,
8808,
1268,
4177,
5011,
16034,
1781,
33411,
1438,
34178,
705,
4,
31611,
24641,
38437,
12371,
4,
6
] |
What was the Location/Attendance on september 11? | SELECT "Location/Attendance" FROM table_76377 WHERE "Date" = 'september 11' | [
2061,
373,
262,
13397,
14,
8086,
437,
590,
319,
384,
457,
1491,
1367,
30,
46506,
366,
14749,
14,
8086,
437,
590,
1,
16034,
3084,
62,
4304,
26514,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1367,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
13397,
14,
8086,
437,
590,
319,
384,
457,
1491,
1367,
30,
46506,
366,
14749,
14,
8086,
437,
590,
1,
16034,
3084,
62,
4304,
26514,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1367,
6
] |
How many entries are there for vote when the air date was 15 november 1997? | SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = "15 November 1997" | [
2437,
867,
12784,
389,
612,
329,
3015,
618,
262,
1633,
3128,
373,
1315,
645,
303,
1916,
8309,
30,
46506,
327,
28270,
7,
27257,
8,
16034,
3084,
62,
1495,
486,
3104,
1731,
62,
17,
33411,
1633,
62,
4475,
796,
366,
1314,
3389,
8309,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12784,
389,
612,
329,
3015,
618,
262,
1633,
3128,
373,
1315,
645,
303,
1916,
8309,
30,
46506,
327,
28270,
7,
27257,
8,
16034,
3084,
62,
1495,
486,
3104,
1731,
62,
17,
33411,
1633,
62,
4475,
796,
366,
1314,
3389,
8309,
1
] |
When 3 is the number what is the highest total? | SELECT MAX(total) FROM table_24781886_3 WHERE _number = 3 | [
2215,
513,
318,
262,
1271,
644,
318,
262,
4511,
2472,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
1731,
3695,
1507,
4521,
62,
18,
33411,
4808,
17618,
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,
1,
1,
1,
1,
1
] | [
2215,
513,
318,
262,
1271,
644,
318,
262,
4511,
2472,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
1731,
3695,
1507,
4521,
62,
18,
33411,
4808,
17618,
796,
513
] |
What is the name of the marketing region that the store Rob Dinning belongs to? | SELECT T1.Marketing_Region_Name FROM Marketing_Regions AS T1 JOIN Stores AS T2 ON T1.Marketing_Region_Code = T2.Marketing_Region_Code WHERE T2.Store_Name = "Rob Dinning" | [
2061,
318,
262,
1438,
286,
262,
7124,
3814,
326,
262,
3650,
3851,
360,
23062,
14448,
284,
30,
46506,
309,
16,
13,
9704,
13629,
62,
47371,
62,
5376,
16034,
22137,
62,
8081,
507,
7054,
309,
16,
32357,
1268,
41835,
7054,
309,
17,
6177,
309,
16,
13,
9704,
13629,
62,
47371,
62,
10669,
796,
309,
17,
13,
9704,
13629,
62,
47371,
62,
10669,
33411,
309,
17,
13,
22658,
62,
5376,
796,
366,
14350,
360,
23062,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7124,
3814,
326,
262,
3650,
3851,
360,
23062,
14448,
284,
30,
46506,
309,
16,
13,
9704,
13629,
62,
47371,
62,
5376,
16034,
22137,
62,
8081,
507,
7054,
309,
16,
32357,
1268,
41835,
7054,
309,
17,
6177,
309,
16,
13,
9704,
13629,
62,
47371,
62,
10669,
796,
309,
17,
13,
9704,
13629,
62,
47371,
62,
10669,
33411,
309,
17,
13,
22658,
62,
5376,
796,
366,
14350,
360,
23062,
1
] |
What was the ERP W for 96.7 MHz? | SELECT erp_w FROM table_name_44 WHERE frequency_mhz = 96.7 | [
2061,
373,
262,
13793,
47,
370,
329,
9907,
13,
22,
19805,
30,
46506,
1931,
79,
62,
86,
16034,
3084,
62,
3672,
62,
2598,
33411,
8373,
62,
76,
32179,
796,
9907,
13,
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
] | [
2061,
373,
262,
13793,
47,
370,
329,
9907,
13,
22,
19805,
30,
46506,
1931,
79,
62,
86,
16034,
3084,
62,
3672,
62,
2598,
33411,
8373,
62,
76,
32179,
796,
9907,
13,
22
] |
What was nominated for the Jury Award? | SELECT nominated_won FROM table_name_57 WHERE award_category = "jury award" | [
2061,
373,
19332,
329,
262,
48705,
11289,
30,
46506,
19332,
62,
26502,
16034,
3084,
62,
3672,
62,
3553,
33411,
5764,
62,
22872,
796,
366,
21871,
5764,
1
] | [
1,
1,
1,
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,
19332,
329,
262,
48705,
11289,
30,
46506,
19332,
62,
26502,
16034,
3084,
62,
3672,
62,
3553,
33411,
5764,
62,
22872,
796,
366,
21871,
5764,
1
] |
Who did Tony Oakey win against when he had type of w pts 12? | SELECT opponent FROM table_name_54 WHERE result = "win" AND type = "w pts 12" | [
8241,
750,
8832,
440,
539,
88,
1592,
1028,
618,
339,
550,
2099,
286,
266,
43344,
1105,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4051,
33411,
1255,
796,
366,
5404,
1,
5357,
2099,
796,
366,
86,
43344,
1105,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
8832,
440,
539,
88,
1592,
1028,
618,
339,
550,
2099,
286,
266,
43344,
1105,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4051,
33411,
1255,
796,
366,
5404,
1,
5357,
2099,
796,
366,
86,
43344,
1105,
1
] |
Which municipality has the code 2401? | SELECT "Municipality" FROM table_59193 WHERE "Code" = '2401' | [
13828,
27264,
468,
262,
2438,
1987,
486,
30,
46506,
366,
44,
9462,
1483,
1,
16034,
3084,
62,
3270,
24943,
33411,
366,
10669,
1,
796,
705,
1731,
486,
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
] | [
13828,
27264,
468,
262,
2438,
1987,
486,
30,
46506,
366,
44,
9462,
1483,
1,
16034,
3084,
62,
3270,
24943,
33411,
366,
10669,
1,
796,
705,
1731,
486,
6
] |
Show top 1000 users by accepted answer percentage. Add a minimum question treshold to filter out people with very few answers
Doesn't seem to be fully working yet | SELECT a.OwnerUserId AS "user_link", (SELECT Reputation FROM Users WHERE Id = a.OwnerUserId) AS Reputation, (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = a.OwnerUserId AND PostTypeId = 2) AS NumAnswers, (CAST(COUNT(a.Id) AS FLOAT) / (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = a.OwnerUserId AND PostTypeId = 2) * 100) AS AcceptedPercentage FROM Posts AS q INNER JOIN Posts AS a ON q.AcceptedAnswerId = a.Id WHERE a.OwnerUserId = q.OwnerUserId AND a.PostTypeId = 2 GROUP BY a.OwnerUserId HAVING (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = a.OwnerUserId AND PostTypeId = 2) >= '##MinumumAnswerTreshold##' ORDER BY AcceptedPercentage DESC LIMIT 1000 | [
15307,
1353,
8576,
2985,
416,
6292,
3280,
5873,
13,
3060,
257,
5288,
1808,
256,
10126,
284,
8106,
503,
661,
351,
845,
1178,
7429,
198,
13921,
77,
470,
1283,
284,
307,
3938,
1762,
1865,
46506,
257,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
357,
46506,
1432,
7094,
16034,
18987,
33411,
5121,
796,
257,
13,
42419,
12982,
7390,
8,
7054,
1432,
7094,
11,
357,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
23853,
12982,
7390,
796,
257,
13,
42419,
12982,
7390,
5357,
2947,
6030,
7390,
796,
362,
8,
7054,
31835,
2025,
37848,
11,
357,
44647,
7,
34,
28270,
7
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
8576,
2985,
416,
6292,
3280,
5873,
13,
3060,
257,
5288,
1808,
256,
10126,
284,
8106,
503,
661,
351,
845,
1178,
7429,
198,
13921,
77,
470,
1283,
284,
307,
3938,
1762,
1865,
46506,
257,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
357,
46506,
1432,
7094,
16034,
18987,
33411,
5121,
796,
257,
13,
42419,
12982,
7390,
8,
7054,
1432,
7094,
11,
357,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
23853,
12982,
7390,
796,
257,
13,
42419,
12982,
7390,
5357,
2947,
6030,
7390,
796,
362,
8,
7054,
31835,
2025,
37848,
11,
357,
44647,
7,
34,
28270,
7
] |
What was the lowest round number at the UFC 16 event with a record of 19-1-1? | SELECT MIN(round) FROM table_name_64 WHERE event = "ufc 16" AND record = "19-1-1" | [
2061,
373,
262,
9016,
2835,
1271,
379,
262,
11448,
1467,
1785,
351,
257,
1700,
286,
678,
12,
16,
12,
16,
30,
46506,
20625,
7,
744,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
1785,
796,
366,
3046,
66,
1467,
1,
5357,
1700,
796,
366,
1129,
12,
16,
12,
16,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
9016,
2835,
1271,
379,
262,
11448,
1467,
1785,
351,
257,
1700,
286,
678,
12,
16,
12,
16,
30,
46506,
20625,
7,
744,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
1785,
796,
366,
3046,
66,
1467,
1,
5357,
1700,
796,
366,
1129,
12,
16,
12,
16,
1
] |
What was Lloyd Mangrum's Score? | SELECT score FROM table_name_63 WHERE player = "lloyd mangrum" | [
2061,
373,
22361,
27609,
6582,
338,
15178,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5066,
33411,
2137,
796,
366,
297,
12192,
582,
2164,
388,
1
] | [
1,
1,
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,
22361,
27609,
6582,
338,
15178,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5066,
33411,
2137,
796,
366,
297,
12192,
582,
2164,
388,
1
] |
With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version? | SELECT "Version" FROM table_25175 WHERE "Security issues" = '98-004' AND "Distribution mechanism" = 'Microsoft website' | [
3152,
262,
6082,
9030,
286,
5413,
3052,
290,
262,
2324,
2428,
286,
9661,
12,
22914,
11,
644,
318,
262,
2196,
30,
46506,
366,
14815,
1,
16034,
3084,
62,
1495,
17430,
33411,
366,
24074,
2428,
1,
796,
705,
4089,
12,
22914,
6,
5357,
366,
20344,
3890,
9030,
1,
796,
705,
15905,
3052,
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
] | [
3152,
262,
6082,
9030,
286,
5413,
3052,
290,
262,
2324,
2428,
286,
9661,
12,
22914,
11,
644,
318,
262,
2196,
30,
46506,
366,
14815,
1,
16034,
3084,
62,
1495,
17430,
33411,
366,
24074,
2428,
1,
796,
705,
4089,
12,
22914,
6,
5357,
366,
20344,
3890,
9030,
1,
796,
705,
15905,
3052,
6
] |
Who has the highest Long with 59 Car? | SELECT MAX(long) FROM table_name_91 WHERE car = 59 | [
8241,
468,
262,
4511,
5882,
351,
7863,
1879,
30,
46506,
25882,
7,
6511,
8,
16034,
3084,
62,
3672,
62,
6420,
33411,
1097,
796,
7863
] | [
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,
468,
262,
4511,
5882,
351,
7863,
1879,
30,
46506,
25882,
7,
6511,
8,
16034,
3084,
62,
3672,
62,
6420,
33411,
1097,
796,
7863
] |
If the Cuatro Ca adas municipality percentage is 252, what are all the San Antonio de Lomer o municipality percentage? | SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE cuatro_cañadas_municipality___percentage_ = "252" | [
1532,
262,
14496,
47756,
6488,
512,
292,
27264,
5873,
318,
25264,
11,
644,
389,
477,
262,
2986,
11366,
390,
406,
12057,
267,
27264,
5873,
30,
46506,
5336,
62,
23026,
952,
62,
2934,
62,
75,
12057,
8836,
78,
62,
6199,
4311,
1483,
17569,
25067,
496,
62,
16034,
3084,
62,
18946,
5705,
2078,
62,
18,
33411,
18912,
47756,
62,
6888,
12654,
38768,
62,
6199,
4311,
1483,
17569,
25067,
496,
62,
796,
366,
22800,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
14496,
47756,
6488,
512,
292,
27264,
5873,
318,
25264,
11,
644,
389,
477,
262,
2986,
11366,
390,
406,
12057,
267,
27264,
5873,
30,
46506,
5336,
62,
23026,
952,
62,
2934,
62,
75,
12057,
8836,
78,
62,
6199,
4311,
1483,
17569,
25067,
496,
62,
16034,
3084,
62,
18946,
5705,
2078,
62,
18,
33411,
18912,
47756,
62,
6888,
12654,
38768,
62,
6199,
4311,
1483,
17569,
25067,
496,
62,
796,
366,
22800,
1
] |
How many MotoGP winners were there when the circuit was Catalunya? | SELECT COUNT("MotoGP winner") FROM table_3640 WHERE "Circuit" = 'Catalunya' | [
2437,
867,
23049,
16960,
14591,
547,
612,
618,
262,
10349,
373,
16758,
403,
3972,
30,
46506,
327,
28270,
7203,
44,
2069,
16960,
8464,
4943,
16034,
3084,
62,
2623,
1821,
33411,
366,
31560,
5013,
1,
796,
705,
39075,
403,
3972,
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
] | [
2437,
867,
23049,
16960,
14591,
547,
612,
618,
262,
10349,
373,
16758,
403,
3972,
30,
46506,
327,
28270,
7203,
44,
2069,
16960,
8464,
4943,
16034,
3084,
62,
2623,
1821,
33411,
366,
31560,
5013,
1,
796,
705,
39075,
403,
3972,
6
] |
For those employees who was hired before 2002-06-21, give me the comparison about the sum of department_id over the job_id , and group by attribute job_id, and order in ascending by the names. | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
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,
290,
1502,
287,
41988,
416,
262,
3891,
13,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
7206,
30709,
10979,
62,
2389,
8,
16034,
4409,
33411,
36210,
2200,
62,
35,
6158,
1279,
705,
16942,
12,
3312,
12,
2481,
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
] | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
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,
290,
1502,
287,
41988,
416,
262,
3891,
13,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
7206,
30709,
10979,
62,
2389,
8,
16034,
4409,
33411,
36210,
2200,
62,
35,
6158,
1279,
705,
16942,
12,
3312,
12,
2481,
6,
44441,
11050,
449,
9864,
62,
2389,
38678,
11050,
449,
9864,
62,
2389
] |
what is the average value of the arterial bp mean of patient 739? | SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 739)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') | [
10919,
318,
262,
2811,
1988,
286,
262,
30675,
498,
275,
79,
1612,
286,
5827,
767,
2670,
30,
46506,
35224,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
767,
2670,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2811,
1988,
286,
262,
30675,
498,
275,
79,
1612,
286,
5827,
767,
2670,
30,
46506,
35224,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
767,
2670,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312
] |
What were the points for when there were 30 tries against? | SELECT points_for FROM table_13564637_5 WHERE tries_against = "30" | [
2061,
547,
262,
2173,
329,
618,
612,
547,
1542,
8404,
1028,
30,
46506,
2173,
62,
1640,
16034,
3084,
62,
17059,
27720,
2718,
62,
20,
33411,
8404,
62,
32826,
796,
366,
1270,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
2173,
329,
618,
612,
547,
1542,
8404,
1028,
30,
46506,
2173,
62,
1640,
16034,
3084,
62,
17059,
27720,
2718,
62,
20,
33411,
8404,
62,
32826,
796,
366,
1270,
1
] |
How many people were in the crowd when Essendon was the home team? | SELECT COUNT(crowd) FROM table_name_78 WHERE home_team = "essendon" | [
2437,
867,
661,
547,
287,
262,
4315,
618,
11985,
43153,
373,
262,
1363,
1074,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
1363,
62,
15097,
796,
366,
408,
43153,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
547,
287,
262,
4315,
618,
11985,
43153,
373,
262,
1363,
1074,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
1363,
62,
15097,
796,
366,
408,
43153,
1
] |
how many male patients had done the lab test renal epithelial cells? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "Renal Epithelial Cells" | [
4919,
867,
4257,
3871,
550,
1760,
262,
2248,
1332,
44375,
21240,
35566,
4778,
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,
44,
1,
5357,
2248,
13,
18242,
796,
366,
26764,
282,
4551,
270,
35566,
39794,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4257,
3871,
550,
1760,
262,
2248,
1332,
44375,
21240,
35566,
4778,
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,
44,
1,
5357,
2248,
13,
18242,
796,
366,
26764,
282,
4551,
270,
35566,
39794,
1
] |
If the Vinto Municipality is 18630, what is the Quillacollo Municipality? | SELECT MAX("Quillacollo Municipality") FROM table_27386 WHERE "Vinto Municipality" = '18630' | [
1532,
262,
569,
20424,
27338,
1483,
318,
28481,
1270,
11,
644,
318,
262,
2264,
40607,
15578,
27338,
1483,
30,
46506,
25882,
7203,
4507,
40607,
15578,
27338,
1483,
4943,
16034,
3084,
62,
1983,
21734,
33411,
366,
53,
20424,
27338,
1483,
1,
796,
705,
25096,
1270,
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
] | [
1532,
262,
569,
20424,
27338,
1483,
318,
28481,
1270,
11,
644,
318,
262,
2264,
40607,
15578,
27338,
1483,
30,
46506,
25882,
7203,
4507,
40607,
15578,
27338,
1483,
4943,
16034,
3084,
62,
1983,
21734,
33411,
366,
53,
20424,
27338,
1483,
1,
796,
705,
25096,
1270,
6
] |
How many wins for team with 1800 Against and more than 0 byes? | SELECT MAX("Wins") FROM table_62068 WHERE "Against" = '1800' AND "Draws" > '0' | [
2437,
867,
7864,
329,
1074,
351,
21431,
12914,
290,
517,
621,
657,
416,
274,
30,
46506,
25882,
7203,
54,
1040,
4943,
16034,
3084,
62,
38850,
3104,
33411,
366,
39276,
1,
796,
705,
39188,
6,
5357,
366,
25302,
82,
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
] | [
2437,
867,
7864,
329,
1074,
351,
21431,
12914,
290,
517,
621,
657,
416,
274,
30,
46506,
25882,
7203,
54,
1040,
4943,
16034,
3084,
62,
38850,
3104,
33411,
366,
39276,
1,
796,
705,
39188,
6,
5357,
366,
25302,
82,
1,
1875,
705,
15,
6
] |
Name the extra points for left guard | SELECT "Extra points" FROM table_72531 WHERE "Position" = 'Left guard' | [
5376,
262,
3131,
2173,
329,
1364,
4860,
46506,
366,
27726,
2173,
1,
16034,
3084,
62,
45151,
3132,
33411,
366,
26545,
1,
796,
705,
18819,
4860,
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
] | [
5376,
262,
3131,
2173,
329,
1364,
4860,
46506,
366,
27726,
2173,
1,
16034,
3084,
62,
45151,
3132,
33411,
366,
26545,
1,
796,
705,
18819,
4860,
6
] |
What was the genre of Queen (an artist from the United Kingdom)? | SELECT genre FROM table_name_47 WHERE country_of_origin = "united kingdom" AND artist = "queen" | [
2061,
373,
262,
12121,
286,
7542,
357,
272,
6802,
422,
262,
1578,
7526,
19427,
46506,
12121,
16034,
3084,
62,
3672,
62,
2857,
33411,
1499,
62,
1659,
62,
47103,
796,
366,
41187,
13239,
1,
5357,
6802,
796,
366,
4188,
268,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12121,
286,
7542,
357,
272,
6802,
422,
262,
1578,
7526,
19427,
46506,
12121,
16034,
3084,
62,
3672,
62,
2857,
33411,
1499,
62,
1659,
62,
47103,
796,
366,
41187,
13239,
1,
5357,
6802,
796,
366,
4188,
268,
1
] |
How many departments are in each school Show bar chart, and could you list by the x-axis from high to low? | SELECT SCHOOL_CODE, COUNT(DISTINCT DEPT_NAME) FROM DEPARTMENT ORDER BY SCHOOL_CODE DESC | [
2437,
867,
13346,
389,
287,
1123,
1524,
5438,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
30,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
5550,
11571,
62,
20608,
8,
16034,
5550,
30709,
10979,
38678,
11050,
35883,
62,
34,
16820,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
13346,
389,
287,
1123,
1524,
5438,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
30,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
5550,
11571,
62,
20608,
8,
16034,
5550,
30709,
10979,
38678,
11050,
35883,
62,
34,
16820,
22196,
34
] |
round trip HOUSTON to LAS VEGAS nonstop | 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 = 'HOUSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LAS VEGAS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) 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.stops = 0 | [
744,
5296,
29068,
41924,
284,
406,
1921,
569,
7156,
1921,
1729,
11338,
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,
357,
34,
9050,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
46685,
41924
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
744,
5296,
29068,
41924,
284,
406,
1921,
569,
7156,
1921,
1729,
11338,
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,
357,
34,
9050,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
46685,
41924
] |
For those employees who did not have any job in the past, a bar chart shows the distribution of hire_date and the sum of department_id bin hire_date by time, and sort by the sum department id in ascending. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(DEPARTMENT_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
3297,
416,
262,
2160,
5011,
4686,
287,
41988,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
7206,
30709,
10979,
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,
7206,
30709,
10979,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
3297,
416,
262,
2160,
5011,
4686,
287,
41988,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
7206,
30709,
10979,
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,
7206,
30709,
10979,
62,
2389,
8
] |
What is the total gold with a total less than 1? | SELECT SUM(gold) FROM table_name_2 WHERE total < 1 | [
2061,
318,
262,
2472,
3869,
351,
257,
2472,
1342,
621,
352,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
2472,
1279,
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
] | [
2061,
318,
262,
2472,
3869,
351,
257,
2472,
1342,
621,
352,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
2472,
1279,
352
] |
Stack bar chart of the number of local authority vs services based on local authority, and could you display y-axis in descending order? | SELECT local_authority, COUNT(local_authority) FROM station GROUP BY services, local_authority ORDER BY COUNT(local_authority) DESC | [
25896,
2318,
8262,
286,
262,
1271,
286,
1957,
4934,
3691,
2594,
1912,
319,
1957,
4934,
11,
290,
714,
345,
3359,
331,
12,
22704,
287,
31491,
1502,
30,
46506,
1957,
62,
9800,
414,
11,
327,
28270,
7,
12001,
62,
9800,
414,
8,
16034,
4429,
44441,
11050,
2594,
11,
1957,
62,
9800,
414,
38678,
11050,
327,
28270,
7,
12001,
62,
9800,
414,
8,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25896,
2318,
8262,
286,
262,
1271,
286,
1957,
4934,
3691,
2594,
1912,
319,
1957,
4934,
11,
290,
714,
345,
3359,
331,
12,
22704,
287,
31491,
1502,
30,
46506,
1957,
62,
9800,
414,
11,
327,
28270,
7,
12001,
62,
9800,
414,
8,
16034,
4429,
44441,
11050,
2594,
11,
1957,
62,
9800,
414,
38678,
11050,
327,
28270,
7,
12001,
62,
9800,
414,
8,
22196,
34
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the amount of founder , and group by attribute founder, and could you order total number in desc order? | SELECT Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY COUNT(Founder) DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2033,
286,
9119,
837,
290,
1448,
416,
11688,
9119,
11,
290,
714,
345,
1502,
2472,
1271,
287,
1715,
1502,
30,
46506,
30153,
11,
327,
28270,
7,
21077,
263,
8,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
30153,
38678,
11050,
327,
28270,
7,
21077,
263,
8,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2033,
286,
9119,
837,
290,
1448,
416,
11688,
9119,
11,
290,
714,
345,
1502,
2472,
1271,
287,
1715,
1502,
30,
46506,
30153,
11,
327,
28270,
7,
21077,
263,
8,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
30153,
38678,
11050,
327,
28270,
7,
21077,
263,
8,
22196,
34
] |
tell me short title of both diagnoses and procedure for patient with patient id 25167. | SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "25167" | [
33331,
502,
1790,
3670,
286,
1111,
40567,
290,
8771,
329,
5827,
351,
5827,
4686,
1679,
21940,
13,
46506,
40567,
13,
19509,
62,
7839,
11,
9021,
13,
19509,
62,
7839,
16034,
40567,
3268,
21479,
32357,
1268,
9021,
6177,
40567,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
40567,
13,
32796,
62,
312,
796,
366,
1495,
21940,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
33331,
502,
1790,
3670,
286,
1111,
40567,
290,
8771,
329,
5827,
351,
5827,
4686,
1679,
21940,
13,
46506,
40567,
13,
19509,
62,
7839,
11,
9021,
13,
19509,
62,
7839,
16034,
40567,
3268,
21479,
32357,
1268,
9021,
6177,
40567,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
40567,
13,
32796,
62,
312,
796,
366,
1495,
21940,
1
] |
Find the number of rooms with price higher than 120 for different decor. | SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor | [
16742,
262,
1271,
286,
9519,
351,
2756,
2440,
621,
7982,
329,
1180,
11705,
13,
46506,
11705,
11,
327,
28270,
7,
28104,
16034,
42043,
33411,
2779,
18124,
1875,
7982,
44441,
11050,
11705
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
9519,
351,
2756,
2440,
621,
7982,
329,
1180,
11705,
13,
46506,
11705,
11,
327,
28270,
7,
28104,
16034,
42043,
33411,
2779,
18124,
1875,
7982,
44441,
11050,
11705
] |
how many patients whose admission location is emergency room admit and diagnoses long title is acute diastolic heart failure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND diagnoses.long_title = "Acute diastolic heart failure" | [
4919,
867,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
40567,
890,
3670,
318,
14352,
2566,
459,
4160,
2612,
5287,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
3620,
49837,
45155,
15107,
2662,
5984,
36393,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
12832,
1133,
2566,
459,
4160,
2612,
5287,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
4067,
318,
6334,
2119,
9159,
290,
40567,
890,
3670,
318,
14352,
2566,
459,
4160,
2612,
5287,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
3620,
49837,
45155,
15107,
2662,
5984,
36393,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
12832,
1133,
2566,
459,
4160,
2612,
5287,
1
] |
count the number of patients that have had a sputum microbiology test. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'sputum') | [
9127,
262,
1271,
286,
3871,
326,
423,
550,
257,
599,
315,
388,
24559,
1435,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
82,
1996,
388,
11537
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
326,
423,
550,
257,
599,
315,
388,
24559,
1435,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
82,
1996,
388,
11537
] |
What are the names of storms that both affected two or more regions and affected a total of 10 or more cities? | SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10 | [
2061,
389,
262,
3891,
286,
20228,
326,
1111,
5676,
734,
393,
517,
7652,
290,
5676,
257,
2472,
286,
838,
393,
517,
4736,
30,
46506,
309,
16,
13,
3672,
16034,
6388,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
7054,
309,
17,
6177,
309,
16,
13,
12135,
62,
312,
796,
309,
17,
13,
12135,
62,
312,
44441,
11050,
309,
16,
13,
12135,
62,
312,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
362,
17828,
4877,
9782,
33493,
309,
16,
13,
3672,
16034,
6388,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
7054,
309,
17,
6177,
309,
16,
13,
12135,
62,
312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
20228,
326,
1111,
5676,
734,
393,
517,
7652,
290,
5676,
257,
2472,
286,
838,
393,
517,
4736,
30,
46506,
309,
16,
13,
3672,
16034,
6388,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
7054,
309,
17,
6177,
309,
16,
13,
12135,
62,
312,
796,
309,
17,
13,
12135,
62,
312,
44441,
11050,
309,
16,
13,
12135,
62,
312,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
362,
17828,
4877,
9782,
33493,
309,
16,
13,
3672,
16034,
6388,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
7054,
309,
17,
6177,
309,
16,
13,
12135,
62,
312
] |
What was the score when Walsall was the away team? | SELECT score FROM table_name_91 WHERE away_team = "walsall" | [
2061,
373,
262,
4776,
618,
370,
874,
439,
373,
262,
1497,
1074,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6420,
33411,
1497,
62,
15097,
796,
366,
86,
874,
439,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
370,
874,
439,
373,
262,
1497,
1074,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6420,
33411,
1497,
62,
15097,
796,
366,
86,
874,
439,
1
] |
What are the names of technicians with the machine series that they repair? Show me how many machines for each technician's name, order y-axis in asc order please. | SELECT Name, COUNT(Name) FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.Machine_ID = T2.Machine_ID JOIN technician AS T3 ON T1.technician_id = T3.technician_id GROUP BY Name ORDER BY COUNT(Name) | [
2061,
389,
262,
3891,
286,
33519,
351,
262,
4572,
2168,
326,
484,
9185,
30,
5438,
502,
703,
867,
8217,
329,
1123,
33024,
338,
1438,
11,
1502,
331,
12,
22704,
287,
10570,
1502,
3387,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
9185,
62,
562,
16747,
7054,
309,
16,
32357,
1268,
4572,
7054,
309,
17,
6177,
309,
16,
13,
37573,
62,
2389,
796,
309,
17,
13,
37573,
62,
2389,
32357,
1268,
33024,
7054,
309,
18,
6177,
309,
16,
13,
23873,
6749,
62,
312,
796,
309,
18,
13,
23873,
6749,
62,
312,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
33519,
351,
262,
4572,
2168,
326,
484,
9185,
30,
5438,
502,
703,
867,
8217,
329,
1123,
33024,
338,
1438,
11,
1502,
331,
12,
22704,
287,
10570,
1502,
3387,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
9185,
62,
562,
16747,
7054,
309,
16,
32357,
1268,
4572,
7054,
309,
17,
6177,
309,
16,
13,
37573,
62,
2389,
796,
309,
17,
13,
37573,
62,
2389,
32357,
1268,
33024,
7054,
309,
18,
6177,
309,
16,
13,
23873,
6749,
62,
312,
796,
309,
18,
13,
23873,
6749,
62,
312,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7
] |
What is the code of each role and the number of employees in each role Show bar chart, could you sort y axis in ascending order? | SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code ORDER BY COUNT(*) | [
2061,
318,
262,
2438,
286,
1123,
2597,
290,
262,
1271,
286,
4409,
287,
1123,
2597,
5438,
2318,
8262,
11,
714,
345,
3297,
331,
16488,
287,
41988,
1502,
30,
46506,
20934,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
30260,
44441,
11050,
20934,
62,
10669,
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
] | [
2061,
318,
262,
2438,
286,
1123,
2597,
290,
262,
1271,
286,
4409,
287,
1123,
2597,
5438,
2318,
8262,
11,
714,
345,
3297,
331,
16488,
287,
41988,
1502,
30,
46506,
20934,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
30260,
44441,
11050,
20934,
62,
10669,
38678,
11050,
327,
28270,
7,
28104
] |
Which location was won by George Heath? | SELECT location FROM table_name_15 WHERE driver = "george heath" | [
13828,
4067,
373,
1839,
416,
4502,
25846,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
1314,
33411,
4639,
796,
366,
469,
3643,
339,
776,
1
] | [
1,
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,
4067,
373,
1839,
416,
4502,
25846,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
1314,
33411,
4639,
796,
366,
469,
3643,
339,
776,
1
] |
in 12/2105 had patient 2957 had any intake of lactated ringers? | SELECT COUNT(*) > 0 FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2957)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'lactated ringers' AND d_items.linksto = 'inputevents_cv') AND STRFTIME('%y-%m', inputevents_cv.charttime) = '2105-12' | [
259,
1105,
14,
17,
13348,
550,
5827,
2808,
3553,
550,
597,
10337,
286,
26222,
515,
5858,
364,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2808,
3553,
4008,
5357,
287,
79,
1133,
85,
658,
62
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
1105,
14,
17,
13348,
550,
5827,
2808,
3553,
550,
597,
10337,
286,
26222,
515,
5858,
364,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2808,
3553,
4008,
5357,
287,
79,
1133,
85,
658,
62
] |
Name the loss for the angels opponent | SELECT loss FROM table_name_10 WHERE opponent = "angels" | [
5376,
262,
2994,
329,
262,
21981,
6125,
46506,
2994,
16034,
3084,
62,
3672,
62,
940,
33411,
6125,
796,
366,
648,
1424,
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,
2994,
329,
262,
21981,
6125,
46506,
2994,
16034,
3084,
62,
3672,
62,
940,
33411,
6125,
796,
366,
648,
1424,
1
] |
What is the placing value for a total less than 96.07 in the United States? | SELECT placings FROM table_name_15 WHERE total < 96.07 AND nation = "united states" | [
2061,
318,
262,
12560,
1988,
329,
257,
2472,
1342,
621,
9907,
13,
2998,
287,
262,
1578,
1829,
30,
46506,
21957,
654,
16034,
3084,
62,
3672,
62,
1314,
33411,
2472,
1279,
9907,
13,
2998,
5357,
3277,
796,
366,
41187,
2585,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12560,
1988,
329,
257,
2472,
1342,
621,
9907,
13,
2998,
287,
262,
1578,
1829,
30,
46506,
21957,
654,
16034,
3084,
62,
3672,
62,
1314,
33411,
2472,
1279,
9907,
13,
2998,
5357,
3277,
796,
366,
41187,
2585,
1
] |
explain the fare code Q | SELECT DISTINCT booking_class FROM class_of_service WHERE booking_class = 'Q' | [
20676,
391,
262,
14505,
2438,
1195,
46506,
360,
8808,
1268,
4177,
25452,
62,
4871,
16034,
1398,
62,
1659,
62,
15271,
33411,
25452,
62,
4871,
796,
705,
48,
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
] | [
20676,
391,
262,
14505,
2438,
1195,
46506,
360,
8808,
1268,
4177,
25452,
62,
4871,
16034,
1398,
62,
1659,
62,
15271,
33411,
25452,
62,
4871,
796,
705,
48,
6
] |
what was the name of the output, which patient 015-59552 had last on this month/22? | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-59552')) AND intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', intakeoutput.intakeoutputtime) = '22' ORDER BY intakeoutput.intakeoutputtime DESC LIMIT 1 | [
10919,
373,
262,
1438,
286,
262,
5072,
11,
543,
5827,
5534,
20,
12,
3270,
40427,
550,
938,
319,
428,
1227,
14,
1828,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
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,
25150,
12,
3270,
40427,
6,
4008,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
22915,
4,
6,
5357,
360
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5072,
11,
543,
5827,
5534,
20,
12,
3270,
40427,
550,
938,
319,
428,
1227,
14,
1828,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
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,
25150,
12,
3270,
40427,
6,
4008,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
22915,
4,
6,
5357,
360
] |
what is the total number of locomotives made during this time ? | SELECT SUM("quantity") FROM table_204_737 | [
10919,
318,
262,
2472,
1271,
286,
33334,
313,
1083,
925,
1141,
428,
640,
5633,
46506,
35683,
7203,
40972,
414,
4943,
16034,
3084,
62,
18638,
62,
22,
2718
] | [
1,
1,
1,
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,
2472,
1271,
286,
33334,
313,
1083,
925,
1141,
428,
640,
5633,
46506,
35683,
7203,
40972,
414,
4943,
16034,
3084,
62,
18638,
62,
22,
2718
] |
How many against have a status of first test? | SELECT COUNT("Against") FROM table_78661 WHERE "Status" = 'first test' | [
2437,
867,
1028,
423,
257,
3722,
286,
717,
1332,
30,
46506,
327,
28270,
7203,
39276,
4943,
16034,
3084,
62,
3695,
47159,
33411,
366,
19580,
1,
796,
705,
11085,
1332,
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
] | [
2437,
867,
1028,
423,
257,
3722,
286,
717,
1332,
30,
46506,
327,
28270,
7203,
39276,
4943,
16034,
3084,
62,
3695,
47159,
33411,
366,
19580,
1,
796,
705,
11085,
1332,
6
] |
Name the captain for ben sigmund | SELECT "Captain" FROM table_17930 WHERE "Vice-Captain" = 'Ben Sigmund' | [
5376,
262,
10654,
329,
1888,
264,
17225,
917,
46506,
366,
27898,
1,
16034,
3084,
62,
21738,
1270,
33411,
366,
47910,
12,
27898,
1,
796,
705,
11696,
311,
17225,
917,
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
] | [
5376,
262,
10654,
329,
1888,
264,
17225,
917,
46506,
366,
27898,
1,
16034,
3084,
62,
21738,
1270,
33411,
366,
47910,
12,
27898,
1,
796,
705,
11696,
311,
17225,
917,
6
] |
has patient 16472 been diagnosed with chronic respiratory fail in 2105. | SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'chronic respiratory fail') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16472) AND STRFTIME('%y', diagnoses_icd.charttime) = '2105' | [
10134,
5827,
1467,
37856,
587,
14641,
351,
10726,
22949,
2038,
287,
362,
13348,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
354,
4565,
22949,
2038,
11537,
5357,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10134,
5827,
1467,
37856,
587,
14641,
351,
10726,
22949,
2038,
287,
362,
13348,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
354,
4565,
22949,
2038,
11537,
5357,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034
] |
How long have they been offering ASTRO 115 ? | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ASTRO' AND course.number = 115 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | [
2437,
890,
423,
484,
587,
6011,
29273,
13252,
12279,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
1921,
5446,
46,
6,
5357,
1781,
13,
17618,
796,
12279,
5357,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
38678,
11050,
24878,
13,
1941,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
890,
423,
484,
587,
6011,
29273,
13252,
12279,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
5357,
1781,
13,
10378,
1823,
796,
705,
1921,
5446,
46,
6,
5357,
1781,
13,
17618,
796,
12279,
5357,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
38678,
11050,
24878,
13,
1941,
27564,
2043,
352
] |
Top upvote generators history, as stacked bar. | WITH Raw AS (SELECT YEAR(Votes.CreationDate) AS Year, Posts.OwnerUserId AS UserId, COUNT(*) AS Count FROM Posts, Votes WHERE Votes.VoteTypeId = 2 AND Votes.PostId = Posts.Id GROUP BY YEAR(Votes.CreationDate), Posts.OwnerUserId), Raw2 AS (SELECT Year, UserId, Count, DENSE_RANK() OVER (PARTITION BY Year ORDER BY Count DESC) AS Rank FROM Raw WHERE UserId > 0), TopUsers AS (SELECT DISTINCT UserId FROM Raw2 WHERE Rank <= '##TopN:int?5##') SELECT * FROM TopUsers | [
9126,
510,
27257,
27298,
2106,
11,
355,
24167,
2318,
13,
54,
10554,
16089,
7054,
357,
46506,
32914,
7,
53,
6421,
13,
12443,
341,
10430,
8,
7054,
6280,
11,
12043,
13,
42419,
12982,
7390,
7054,
11787,
7390,
11,
327,
28270,
7,
28104,
7054,
2764,
16034,
12043,
11,
39584,
33411,
39584,
13,
37394,
6030,
7390,
796,
362,
5357,
39584,
13,
6307,
7390,
796,
12043,
13,
7390,
44441,
11050,
32914,
7,
53,
6421,
13,
12443,
341,
10430,
828,
12043,
13,
42419,
12982,
7390,
828,
16089,
17,
7054,
357,
46506,
6280,
11,
11787,
7390,
11,
2764,
11,
360,
24290,
62,
49,
15154,
3419,
28729
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9126,
510,
27257,
27298,
2106,
11,
355,
24167,
2318,
13,
54,
10554,
16089,
7054,
357,
46506,
32914,
7,
53,
6421,
13,
12443,
341,
10430,
8,
7054,
6280,
11,
12043,
13,
42419,
12982,
7390,
7054,
11787,
7390,
11,
327,
28270,
7,
28104,
7054,
2764,
16034,
12043,
11,
39584,
33411,
39584,
13,
37394,
6030,
7390,
796,
362,
5357,
39584,
13,
6307,
7390,
796,
12043,
13,
7390,
44441,
11050,
32914,
7,
53,
6421,
13,
12443,
341,
10430,
828,
12043,
13,
42419,
12982,
7390,
828,
16089,
17,
7054,
357,
46506,
6280,
11,
11787,
7390,
11,
2764,
11,
360,
24290,
62,
49,
15154,
3419,
28729
] |
How many roles are there? | SELECT COUNT(*) FROM ROLES | [
2437,
867,
9176,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
371,
3535,
1546
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
9176,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
371,
3535,
1546
] |
what is the last ward id of patient 002-30780 in a year before? | SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-30780') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.unitadmittime DESC LIMIT 1 | [
10919,
318,
262,
938,
15305,
4686,
286,
5827,
3571,
17,
12,
22996,
1795,
287,
257,
614,
878,
30,
46506,
5827,
13,
904,
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,
21601,
12,
22996,
1795,
11537,
5357,
360,
1404,
2767,
12789,
7,
26029,
13,
20850,
324,
20124,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
38678,
11050
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
938,
15305,
4686,
286,
5827,
3571,
17,
12,
22996,
1795,
287,
257,
614,
878,
30,
46506,
5827,
13,
904,
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,
21601,
12,
22996,
1795,
11537,
5357,
360,
1404,
2767,
12789,
7,
26029,
13,
20850,
324,
20124,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
38678,
11050
] |
Name the further cities for slovakia and west direction | SELECT "Further Cities" FROM table_23207 WHERE "Country" = 'Slovakia' AND "Direction" = 'West' | [
5376,
262,
2252,
4736,
329,
1017,
709,
21897,
290,
7421,
4571,
46506,
366,
13518,
20830,
1,
16034,
3084,
62,
1954,
22745,
33411,
366,
33921,
1,
796,
705,
11122,
709,
21897,
6,
5357,
366,
35,
4154,
1,
796,
705,
15045,
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
] | [
5376,
262,
2252,
4736,
329,
1017,
709,
21897,
290,
7421,
4571,
46506,
366,
13518,
20830,
1,
16034,
3084,
62,
1954,
22745,
33411,
366,
33921,
1,
796,
705,
11122,
709,
21897,
6,
5357,
366,
35,
4154,
1,
796,
705,
15045,
6
] |
What year has earnings of $557,158? | SELECT MAX(year) FROM table_name_25 WHERE earnings__$_ = "557,158" | [
2061,
614,
468,
12042,
286,
720,
41948,
11,
21273,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
12042,
834,
3,
62,
796,
366,
41948,
11,
21273,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
468,
12042,
286,
720,
41948,
11,
21273,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
12042,
834,
3,
62,
796,
366,
41948,
11,
21273,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.