instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what is the Chinese name for Forensic heroes ii? | SELECT chinese_title FROM table_11926114_1 WHERE english_title = "Forensic Heroes II" | [
10919,
318,
262,
3999,
1438,
329,
49245,
10281,
21065,
30,
46506,
442,
3762,
62,
7839,
16034,
3084,
62,
16315,
2075,
16562,
62,
16,
33411,
46932,
62,
7839,
796,
366,
16351,
19364,
9896,
2873,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3999,
1438,
329,
49245,
10281,
21065,
30,
46506,
442,
3762,
62,
7839,
16034,
3084,
62,
16315,
2075,
16562,
62,
16,
33411,
46932,
62,
7839,
796,
366,
16351,
19364,
9896,
2873,
1
] |
What is the smallest round with a time of 1:12? | SELECT MIN("Round") FROM table_44953 WHERE "Time" = '1:12' | [
2061,
318,
262,
18197,
2835,
351,
257,
640,
286,
352,
25,
1065,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
2598,
49649,
33411,
366,
7575,
1,
796,
705,
16,
25,
1065,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
2835,
351,
257,
640,
286,
352,
25,
1065,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
2598,
49649,
33411,
366,
7575,
1,
796,
705,
16,
25,
1065,
6
] |
calculate the average age of newborn admitted male patients. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.admission_type = "NEWBORN" | [
9948,
3129,
378,
262,
2811,
2479,
286,
23856,
6848,
4257,
3871,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
30649,
1
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
2811,
2479,
286,
23856,
6848,
4257,
3871,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
30649,
1
... |
when was patient 030-42006 first prescribed any medication on the subcutaneous route during this month? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-42006')) AND medication.routeadmin = 'subcutaneous' AND DA... | [
12518,
373,
5827,
657,
1270,
12,
19,
13330,
717,
14798,
597,
14103,
319,
262,
850,
8968,
11655,
6339,
1141,
428,
1227,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
5827,
657,
1270,
12,
19,
13330,
717,
14798,
597,
14103,
319,
262,
850,
8968,
11655,
6339,
1141,
428,
1227,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
... |
What is the number of patients with primary disease pneumonia who were discharged home? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.diagnosis = "PNEUMONIA" | [
2061,
318,
262,
1271,
286,
3871,
351,
4165,
4369,
35647,
508,
547,
26476,
1363,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
39069,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
351,
4165,
4369,
35647,
508,
547,
26476,
1363,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
39069,
1,
... |
give the number of patients who were admitted before the year 2170 and their drug name is atorvastatin. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2170" AND prescriptions.drug = "Atorvastatin" | [
26535,
262,
1271,
286,
3871,
508,
547,
6848,
878,
262,
614,
362,
17279,
290,
511,
2563,
1438,
318,
379,
273,
85,
459,
10680,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3871,
508,
547,
6848,
878,
262,
614,
362,
17279,
290,
511,
2563,
1438,
318,
379,
273,
85,
459,
10680,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... |
What is the sum of Game with a Score that is w 104 90 (ot)? | SELECT SUM(game) FROM table_name_44 WHERE score = "w 104–90 (ot)" | [
2061,
318,
262,
2160,
286,
3776,
351,
257,
15178,
326,
318,
266,
14436,
4101,
357,
313,
19427,
46506,
35683,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
2598,
33411,
4776,
796,
366,
86,
14436,
1906,
3829,
357,
313,
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
] | [
2061,
318,
262,
2160,
286,
3776,
351,
257,
15178,
326,
318,
266,
14436,
4101,
357,
313,
19427,
46506,
35683,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
2598,
33411,
4776,
796,
366,
86,
14436,
1906,
3829,
357,
313,
16725
] |
What school is he the catcher for? | SELECT school FROM table_11677100_11 WHERE position = "Catcher" | [
2061,
1524,
318,
339,
262,
32408,
329,
30,
46506,
1524,
16034,
3084,
62,
1157,
40179,
3064,
62,
1157,
33411,
2292,
796,
366,
21979,
2044,
1
] | [
1,
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,
1524,
318,
339,
262,
32408,
329,
30,
46506,
1524,
16034,
3084,
62,
1157,
40179,
3064,
62,
1157,
33411,
2292,
796,
366,
21979,
2044,
1
] |
How many events does the tournament with a top-10 of 2 and more than 5 cuts have? | SELECT SUM(events) FROM table_name_77 WHERE top_10 = 2 AND cuts_made > 5 | [
2437,
867,
2995,
857,
262,
7756,
351,
257,
1353,
12,
940,
286,
362,
290,
517,
621,
642,
6630,
423,
30,
46506,
35683,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
1353,
62,
940,
796,
362,
5357,
6630,
62,
9727,
1875,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2995,
857,
262,
7756,
351,
257,
1353,
12,
940,
286,
362,
290,
517,
621,
642,
6630,
423,
30,
46506,
35683,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
1353,
62,
940,
796,
362,
5357,
6630,
62,
9727,
1875,
642
] |
What are the names of representatives in descending order of votes? | SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC | [
2061,
389,
262,
3891,
286,
10826,
287,
31491,
1502,
286,
5690,
30,
46506,
309,
17,
13,
5376,
16034,
3071,
7054,
309,
16,
32357,
1268,
8852,
7054,
309,
17,
6177,
309,
16,
13,
40171,
876,
62,
2389,
796,
309,
17,
13,
40171,
876,
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
] | [
2061,
389,
262,
3891,
286,
10826,
287,
31491,
1502,
286,
5690,
30,
46506,
309,
17,
13,
5376,
16034,
3071,
7054,
309,
16,
32357,
1268,
8852,
7054,
309,
17,
6177,
309,
16,
13,
40171,
876,
62,
2389,
796,
309,
17,
13,
40171,
876,
62,
... |
What is part 1 of the verb in class 7b | SELECT part_1 FROM table_1745843_10 WHERE class = "7b" | [
2061,
318,
636,
352,
286,
262,
15942,
287,
1398,
767,
65,
46506,
636,
62,
16,
16034,
3084,
62,
1558,
29334,
3559,
62,
940,
33411,
1398,
796,
366,
22,
65,
1
] | [
1,
1,
1,
1,
1,
1,
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,
636,
352,
286,
262,
15942,
287,
1398,
767,
65,
46506,
636,
62,
16,
16034,
3084,
62,
1558,
29334,
3559,
62,
940,
33411,
1398,
796,
366,
22,
65,
1
] |
Matches W-L of 1-2, and a Team of spain had what seeding? | SELECT "Seeding" FROM table_5823 WHERE "Matches W-L" = '1-2' AND "Team" = 'spain' | [
19044,
2052,
370,
12,
43,
286,
352,
12,
17,
11,
290,
257,
4816,
286,
599,
391,
550,
644,
384,
8228,
30,
46506,
366,
50,
2308,
278,
1,
16034,
3084,
62,
3365,
1954,
33411,
366,
19044,
2052,
370,
12,
43,
1,
796,
705,
16,
12,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19044,
2052,
370,
12,
43,
286,
352,
12,
17,
11,
290,
257,
4816,
286,
599,
391,
550,
644,
384,
8228,
30,
46506,
366,
50,
2308,
278,
1,
16034,
3084,
62,
3365,
1954,
33411,
366,
19044,
2052,
370,
12,
43,
1,
796,
705,
16,
12,
17,
... |
For each record in schedule, show average of the price for each day in a bar chart, and show in desc by the X. | SELECT Date, AVG(Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Date ORDER BY Date DESC | [
1890,
1123,
1700,
287,
7269,
11,
905,
2811,
286,
262,
2756,
329,
1123,
1110,
287,
257,
2318,
8262,
11,
290,
905,
287,
1715,
416,
262,
1395,
13,
46506,
7536,
11,
35224,
7,
18124,
8,
16034,
7269,
7054,
309,
16,
32357,
1268,
2646,
7054... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
1123,
1700,
287,
7269,
11,
905,
2811,
286,
262,
2756,
329,
1123,
1110,
287,
257,
2318,
8262,
11,
290,
905,
287,
1715,
416,
262,
1395,
13,
46506,
7536,
11,
35224,
7,
18124,
8,
16034,
7269,
7054,
309,
16,
32357,
1268,
2646,
7054... |
Top 10 One-Sided Vote Casters. | SELECT * FROM (SELECT u.Reputation, u.DisplayName, u.UpVotes, u.DownVotes, u.DownVotes - u.UpVotes AS diff, 'Not very generous' AS Dsc FROM Users AS u WHERE u.Id >= 0 ORDER BY diff DESC LIMIT 10 UNION SELECT u.Reputation, u.DisplayName, u.UpVotes, u.DownVotes, u.UpVotes - u.DownVotes AS diff, 'Very generous' AS Dsc FRO... | [
9126,
838,
1881,
12,
50,
1384,
19175,
327,
7060,
13,
46506,
1635,
16034,
357,
46506,
334,
13,
6207,
7094,
11,
334,
13,
23114,
5376,
11,
334,
13,
4933,
53,
6421,
11,
334,
13,
8048,
53,
6421,
11,
334,
13,
8048,
53,
6421,
532,
334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
838,
1881,
12,
50,
1384,
19175,
327,
7060,
13,
46506,
1635,
16034,
357,
46506,
334,
13,
6207,
7094,
11,
334,
13,
23114,
5376,
11,
334,
13,
4933,
53,
6421,
11,
334,
13,
8048,
53,
6421,
11,
334,
13,
8048,
53,
6421,
532,
334,
... |
What is the molecular target listed under the compounded name of hemiasterlin (e7974) | SELECT "Molecular Target" FROM table_17751 WHERE "Compound Name" = 'Hemiasterlin (E7974)' | [
2061,
318,
262,
18955,
2496,
5610,
739,
262,
36944,
1438,
286,
339,
11632,
1603,
2815,
357,
68,
3720,
4524,
8,
46506,
366,
44,
2305,
10440,
12744,
1,
16034,
3084,
62,
1558,
48365,
33411,
366,
7293,
633,
6530,
1,
796,
705,
39,
43967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18955,
2496,
5610,
739,
262,
36944,
1438,
286,
339,
11632,
1603,
2815,
357,
68,
3720,
4524,
8,
46506,
366,
44,
2305,
10440,
12744,
1,
16034,
3084,
62,
1558,
48365,
33411,
366,
7293,
633,
6530,
1,
796,
705,
39,
43967,
... |
What was the speed of the rider that earned 1 point? | SELECT "Speed" FROM table_33357 WHERE "Points" = '1' | [
2061,
373,
262,
2866,
286,
262,
17876,
326,
7366,
352,
966,
30,
46506,
366,
22785,
1,
16034,
3084,
62,
2091,
27277,
33411,
366,
40710,
1,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2866,
286,
262,
17876,
326,
7366,
352,
966,
30,
46506,
366,
22785,
1,
16034,
3084,
62,
2091,
27277,
33411,
366,
40710,
1,
796,
705,
16,
6
] |
Plot the number of name by grouped by name as a bar graph, and could you show Name in asc order? | SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY Name | [
43328,
262,
1271,
286,
1438,
416,
32824,
416,
1438,
355,
257,
2318,
4823,
11,
290,
714,
345,
905,
6530,
287,
10570,
1502,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
4512,
44441,
11050,
6530,
38678,
11050,
6530
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
262,
1271,
286,
1438,
416,
32824,
416,
1438,
355,
257,
2318,
4823,
11,
290,
714,
345,
905,
6530,
287,
10570,
1502,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
4512,
44441,
11050,
6530,
38678,
11050,
6530
] |
Name the seven for 29 november 1690 | SELECT seven FROM table_name_24 WHERE date = "29 november 1690" | [
5376,
262,
3598,
329,
2808,
645,
303,
1916,
1467,
3829,
46506,
3598,
16034,
3084,
62,
3672,
62,
1731,
33411,
3128,
796,
366,
1959,
645,
303,
1916,
1467,
3829,
1
] | [
1,
1,
1,
1,
1,
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,
3598,
329,
2808,
645,
303,
1916,
1467,
3829,
46506,
3598,
16034,
3084,
62,
3672,
62,
1731,
33411,
3128,
796,
366,
1959,
645,
303,
1916,
1467,
3829,
1
] |
Name the team with a tie number of 6. | SELECT "Date" FROM table_13008 WHERE "Tie no" = '6' | [
5376,
262,
1074,
351,
257,
9839,
1271,
286,
718,
13,
46506,
366,
10430,
1,
16034,
3084,
62,
1485,
25257,
33411,
366,
51,
494,
645,
1,
796,
705,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1074,
351,
257,
9839,
1271,
286,
718,
13,
46506,
366,
10430,
1,
16034,
3084,
62,
1485,
25257,
33411,
366,
51,
494,
645,
1,
796,
705,
21,
6
] |
What is the name of the deparment with the highest enrollment? | SELECT dept_name FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
1438,
286,
262,
1207,
283,
434,
351,
262,
4511,
20753,
30,
46506,
390,
457,
62,
3672,
16034,
3710,
44441,
11050,
390,
457,
62,
3672,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
1207,
283,
434,
351,
262,
4511,
20753,
30,
46506,
390,
457,
62,
3672,
16034,
3710,
44441,
11050,
390,
457,
62,
3672,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
How many years was lynn muscarella the high school principal and charlie wiltse the superintendent? | SELECT COUNT("Year") FROM table_73716 WHERE "High School Principal" = 'Lynn Muscarella' AND "Superintendent" = 'Charlie Wiltse' | [
2437,
867,
812,
373,
31432,
77,
1928,
6651,
8466,
262,
1029,
1524,
10033,
290,
1149,
14485,
266,
2326,
325,
262,
32958,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
22,
2718,
1433,
33411,
366,
11922,
3961,
32641,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
812,
373,
31432,
77,
1928,
6651,
8466,
262,
1029,
1524,
10033,
290,
1149,
14485,
266,
2326,
325,
262,
32958,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
22,
2718,
1433,
33411,
366,
11922,
3961,
32641,
1,
796,
... |
For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the sum of employee_id , and group by attribute job_id, list by the Y from low to high. | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
416,
262,
575,
422,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
416,
262,
575,
422,... |
Find the number of products with category 'Spices' and typically sold above 1000. | SELECT COUNT(*) FROM products WHERE product_category_code = "Spices" AND typical_buying_price > 1000 | [
16742,
262,
1271,
286,
3186,
351,
6536,
705,
4561,
1063,
6,
290,
6032,
2702,
2029,
8576,
13,
46506,
327,
28270,
7,
28104,
16034,
3186,
33411,
1720,
62,
22872,
62,
8189,
796,
366,
4561,
1063,
1,
5357,
7226,
62,
11110,
1112,
62,
20888,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3186,
351,
6536,
705,
4561,
1063,
6,
290,
6032,
2702,
2029,
8576,
13,
46506,
327,
28270,
7,
28104,
16034,
3186,
33411,
1720,
62,
22872,
62,
8189,
796,
366,
4561,
1063,
1,
5357,
7226,
62,
11110,
1112,
62,
20888,
... |
What is the number of different grapes of each wine? Show me a bar chart. | SELECT Grape, COUNT(Grape) FROM wine GROUP BY Grape | [
2061,
318,
262,
1271,
286,
1180,
36656,
286,
1123,
8237,
30,
5438,
502,
257,
2318,
8262,
13,
46506,
48315,
11,
327,
28270,
7,
38,
13484,
8,
16034,
8237,
44441,
11050,
48315
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
1180,
36656,
286,
1123,
8237,
30,
5438,
502,
257,
2318,
8262,
13,
46506,
48315,
11,
327,
28270,
7,
38,
13484,
8,
16034,
8237,
44441,
11050,
48315
] |
what number of cv cath plcmt w guidance procedures have been completed in 2103? | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cv cath plcmt w guidance') AND STRFTIME('%y', procedures_icd.charttime) = '2103' | [
10919,
1271,
286,
269,
85,
32171,
458,
11215,
83,
266,
11154,
9021,
423,
587,
5668,
287,
362,
15197,
30,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
269,
85,
32171,
458,
11215,
83,
266,
11154,
9021,
423,
587,
5668,
287,
362,
15197,
30,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
... |
average tag count of all questions. | SELECT AVG(cnt) AS average FROM (SELECT PostId, COUNT(*) AS cnt FROM PostTags GROUP BY PostId) AS pp | [
23913,
7621,
954,
286,
477,
2683,
13,
46506,
35224,
7,
66,
429,
8,
7054,
2811,
16034,
357,
46506,
2947,
7390,
11,
327,
28270,
7,
28104,
7054,
269,
429,
16034,
2947,
36142,
44441,
11050,
2947,
7390,
8,
7054,
9788
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23913,
7621,
954,
286,
477,
2683,
13,
46506,
35224,
7,
66,
429,
8,
7054,
2811,
16034,
357,
46506,
2947,
7390,
11,
327,
28270,
7,
28104,
7054,
269,
429,
16034,
2947,
36142,
44441,
11050,
2947,
7390,
8,
7054,
9788
] |
Count the number of customers. | SELECT COUNT(*) FROM customers | [
12332,
262,
1271,
286,
4297,
13,
46506,
327,
28270,
7,
28104,
16034,
4297
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
4297,
13,
46506,
327,
28270,
7,
28104,
16034,
4297
] |
What is the highest # Of Constituency Votes, when Election is before 1976, when Leader is Eisaku Sat , and when # Of Candidates is less than 328? | SELECT MAX("# of Constituency votes") FROM table_50555 WHERE "Election" < '1976' AND "Leader" = 'eisaku satō' AND "# of candidates" < '328' | [
2061,
318,
262,
4511,
1303,
3226,
4757,
34272,
1387,
39584,
11,
618,
14219,
318,
878,
15408,
11,
618,
10540,
318,
412,
271,
8719,
7031,
837,
290,
618,
1303,
3226,
15518,
37051,
318,
1342,
621,
39093,
30,
46506,
25882,
7203,
2,
286,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
4511,
1303,
3226,
4757,
34272,
1387,
39584,
11,
618,
14219,
318,
878,
15408,
11,
618,
10540,
318,
412,
271,
8719,
7031,
837,
290,
618,
1303,
3226,
15518,
37051,
318,
1342,
621,
39093,
30,
46506,
25882,
7203,
2,
286,
47... |
What was the score of the game when Sheffield Wednesday was the home team? | SELECT "Score" FROM table_45843 WHERE "Home team" = 'sheffield wednesday' | [
2061,
373,
262,
4776,
286,
262,
983,
618,
33496,
3583,
373,
262,
1363,
1074,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29334,
3559,
33411,
366,
16060,
1074,
1,
796,
705,
7091,
31374,
29445,
3462,
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
] | [
2061,
373,
262,
4776,
286,
262,
983,
618,
33496,
3583,
373,
262,
1363,
1074,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29334,
3559,
33411,
366,
16060,
1074,
1,
796,
705,
7091,
31374,
29445,
3462,
6
] |
What stake has 16 wards/branches in Arkansas? | SELECT "Stake" FROM table_40070 WHERE "Wards/ Branches in Arkansas" = '16' | [
2061,
10171,
468,
1467,
32710,
14,
1671,
12140,
287,
14538,
30,
46506,
366,
1273,
539,
1,
16034,
3084,
62,
7029,
2154,
33411,
366,
54,
1371,
14,
1709,
12140,
287,
14538,
1,
796,
705,
1433,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
10171,
468,
1467,
32710,
14,
1671,
12140,
287,
14538,
30,
46506,
366,
1273,
539,
1,
16034,
3084,
62,
7029,
2154,
33411,
366,
54,
1371,
14,
1709,
12140,
287,
14538,
1,
796,
705,
1433,
6
] |
What is the location of South Adelaide? | SELECT location FROM table_name_46 WHERE team = "south adelaide" | [
2061,
318,
262,
4067,
286,
2520,
27139,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3510,
33411,
1074,
796,
366,
35782,
512,
25078,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4067,
286,
2520,
27139,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3510,
33411,
1074,
796,
366,
35782,
512,
25078,
1
] |
Find the states where have some college students in tryout. | SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cname = T2.cname | [
16742,
262,
2585,
810,
423,
617,
4152,
2444,
287,
1949,
448,
13,
46506,
360,
8808,
1268,
4177,
1181,
16034,
4152,
7054,
309,
16,
32357,
1268,
1949,
448,
7054,
309,
17,
6177,
309,
16,
13,
66,
3672,
796,
309,
17,
13,
66,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
2585,
810,
423,
617,
4152,
2444,
287,
1949,
448,
13,
46506,
360,
8808,
1268,
4177,
1181,
16034,
4152,
7054,
309,
16,
32357,
1268,
1949,
448,
7054,
309,
17,
6177,
309,
16,
13,
66,
3672,
796,
309,
17,
13,
66,
3672
] |
What type of school has the nickname the Oilers? | SELECT "Type" FROM table_28526 WHERE "Nickname" = 'Oilers' | [
2061,
2099,
286,
1524,
468,
262,
21814,
262,
35004,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
26279,
2075,
33411,
366,
23609,
3672,
1,
796,
705,
46,
34393,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2099,
286,
1524,
468,
262,
21814,
262,
35004,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
26279,
2075,
33411,
366,
23609,
3672,
1,
796,
705,
46,
34393,
6
] |
A bar chart about what is the total rating of channel for each channel owner?, I want to list by the y-axis in descending. | SELECT Owner, SUM(Rating_in_percent) FROM channel GROUP BY Owner ORDER BY SUM(Rating_in_percent) DESC | [
32,
2318,
8262,
546,
644,
318,
262,
2472,
7955,
286,
6518,
329,
1123,
6518,
4870,
21747,
314,
765,
284,
1351,
416,
262,
331,
12,
22704,
287,
31491,
13,
46506,
23853,
11,
35683,
7,
29321,
62,
259,
62,
25067,
8,
16034,
6518,
44441,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
546,
644,
318,
262,
2472,
7955,
286,
6518,
329,
1123,
6518,
4870,
21747,
314,
765,
284,
1351,
416,
262,
331,
12,
22704,
287,
31491,
13,
46506,
23853,
11,
35683,
7,
29321,
62,
259,
62,
25067,
8,
16034,
6518,
44441,
11... |
how many patients are primarily suffering from morbid obesity/sda? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "MORBID OBESITY/SDA" | [
4919,
867,
3871,
389,
7525,
7195,
422,
34813,
13825,
14,
82,
6814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
44,
1581,
33,
2389,
25334,
1546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
389,
7525,
7195,
422,
34813,
13825,
14,
82,
6814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
44,
1581,
33,
2389,
25334,
1546,
... |
Plot the total number by grouped by directed by as a bar graph, sort from high to low by the Y. | SELECT Directed_by, COUNT(*) FROM film GROUP BY Directed_by ORDER BY COUNT(*) DESC | [
43328,
262,
2472,
1271,
416,
32824,
416,
7924,
416,
355,
257,
2318,
4823,
11,
3297,
422,
1029,
284,
1877,
416,
262,
575,
13,
46506,
4128,
276,
62,
1525,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
4128,
276,
62,
1525,
38678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
262,
2472,
1271,
416,
32824,
416,
7924,
416,
355,
257,
2318,
4823,
11,
3297,
422,
1029,
284,
1877,
416,
262,
575,
13,
46506,
4128,
276,
62,
1525,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
4128,
276,
62,
1525,
38678,
... |
I want to know the average crowd for away team of melbourne | SELECT AVG("Crowd") FROM table_54336 WHERE "Away team" = 'melbourne' | [
40,
765,
284,
760,
262,
2811,
4315,
329,
1497,
1074,
286,
7758,
12544,
46506,
35224,
7203,
34,
3986,
4943,
16034,
3084,
62,
4051,
29211,
33411,
366,
32,
1014,
1074,
1,
796,
705,
17694,
12544,
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
] | [
40,
765,
284,
760,
262,
2811,
4315,
329,
1497,
1074,
286,
7758,
12544,
46506,
35224,
7203,
34,
3986,
4943,
16034,
3084,
62,
4051,
29211,
33411,
366,
32,
1014,
1074,
1,
796,
705,
17694,
12544,
6
] |
Number of answered questions per day per user. | SELECT DISTINCT u.Id, u.Reputation, u.DisplayName FROM Posts AS p, Users AS u WHERE p.OwnerUserId = u.Id AND p.PostTypeId = 1 GROUP BY DATE(p.CreationDate), u.Id, u.DisplayName, u.Location, u.Reputation ORDER BY u.Id | [
15057,
286,
9373,
2683,
583,
1110,
583,
2836,
13,
46506,
360,
8808,
1268,
4177,
334,
13,
7390,
11,
334,
13,
6207,
7094,
11,
334,
13,
23114,
5376,
16034,
12043,
7054,
279,
11,
18987,
7054,
334,
33411,
279,
13,
42419,
12982,
7390,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15057,
286,
9373,
2683,
583,
1110,
583,
2836,
13,
46506,
360,
8808,
1268,
4177,
334,
13,
7390,
11,
334,
13,
6207,
7094,
11,
334,
13,
23114,
5376,
16034,
12043,
7054,
279,
11,
18987,
7054,
334,
33411,
279,
13,
42419,
12982,
7390,
796,
... |
age > or = 18 years old | SELECT * FROM table_train_17 WHERE age >= 18 | [
496,
1875,
393,
796,
1248,
812,
1468,
46506,
1635,
16034,
3084,
62,
27432,
62,
1558,
33411,
2479,
18189,
1248
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
496,
1875,
393,
796,
1248,
812,
1468,
46506,
1635,
16034,
3084,
62,
27432,
62,
1558,
33411,
2479,
18189,
1248
] |
What is the highest total attendance of the team with a game 1 attendance of 105,011 and a game 3 greater than 102,989? | SELECT MAX("Total") FROM table_43241 WHERE "Game 1" = '105,011' AND "Game 3" > '102,989' | [
2061,
318,
262,
4511,
2472,
14858,
286,
262,
1074,
351,
257,
983,
352,
14858,
286,
13343,
11,
28555,
290,
257,
983,
513,
3744,
621,
15143,
11,
42520,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
3559,
28872,
33411,
366,
8777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
2472,
14858,
286,
262,
1074,
351,
257,
983,
352,
14858,
286,
13343,
11,
28555,
290,
257,
983,
513,
3744,
621,
15143,
11,
42520,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
3559,
28872,
33411,
366,
8777,
... |
What's the mascot of Eastern Pekin having less than 627 enrolled and an AA for their IHSAA Class? | SELECT "Mascot" FROM table_65721 WHERE "Enrollment" < '627' AND "IHSAA Class" = 'aa' AND "School" = 'eastern pekin' | [
2061,
338,
262,
37358,
286,
8345,
350,
988,
259,
1719,
1342,
621,
718,
1983,
18724,
290,
281,
15923,
329,
511,
314,
7998,
3838,
5016,
30,
46506,
366,
44,
3372,
313,
1,
16034,
3084,
62,
37680,
2481,
33411,
366,
4834,
48108,
1,
1279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
37358,
286,
8345,
350,
988,
259,
1719,
1342,
621,
718,
1983,
18724,
290,
281,
15923,
329,
511,
314,
7998,
3838,
5016,
30,
46506,
366,
44,
3372,
313,
1,
16034,
3084,
62,
37680,
2481,
33411,
366,
4834,
48108,
1,
1279,
... |
What away team is based in moorabbin oval? | SELECT "Away team" FROM table_54703 WHERE "Venue" = 'moorabbin oval' | [
2061,
1497,
1074,
318,
1912,
287,
285,
2675,
6485,
259,
41186,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
4051,
36809,
33411,
366,
37522,
518,
1,
796,
705,
76,
2675,
6485,
259,
41186,
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
] | [
2061,
1497,
1074,
318,
1912,
287,
285,
2675,
6485,
259,
41186,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
4051,
36809,
33411,
366,
37522,
518,
1,
796,
705,
76,
2675,
6485,
259,
41186,
6
] |
subjects with egfr <= 30 ml / min ( based on admission serum creatinine and the mdrd formula ) or serum creatinine >= 220 umol / l. | SELECT * FROM table_test_8 WHERE estimated_glomerular_filtration_rate_egfr <= 30 OR serum_creatinine >= 220 | [
32796,
82,
351,
29206,
8310,
19841,
1542,
25962,
1220,
949,
357,
1912,
319,
13938,
20502,
1827,
259,
500,
290,
262,
45243,
4372,
10451,
1267,
393,
20502,
1827,
259,
500,
18189,
15629,
23781,
349,
1220,
300,
13,
46506,
1635,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32796,
82,
351,
29206,
8310,
19841,
1542,
25962,
1220,
949,
357,
1912,
319,
13938,
20502,
1827,
259,
500,
290,
262,
45243,
4372,
10451,
1267,
393,
20502,
1827,
259,
500,
18189,
15629,
23781,
349,
1220,
300,
13,
46506,
1635,
16034,
3084,
... |
What was the score for the match with a home team of Citizen Team A? | SELECT score FROM table_name_51 WHERE home_team = "citizen team a" | [
2061,
373,
262,
4776,
329,
262,
2872,
351,
257,
1363,
1074,
286,
22307,
4816,
317,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4349,
33411,
1363,
62,
15097,
796,
366,
66,
36958,
1074,
257,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
329,
262,
2872,
351,
257,
1363,
1074,
286,
22307,
4816,
317,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4349,
33411,
1363,
62,
15097,
796,
366,
66,
36958,
1074,
257,
1
] |
Draw a bar chart for what are the ids and details for all organizations that have grants of more than 6000 dollars?, and order from low to high by the organisation_details. | SELECT T2.organisation_details, T1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_details ORDER BY T2.organisation_details | [
25302,
257,
2318,
8262,
329,
644,
389,
262,
220,
2340,
290,
3307,
329,
477,
5745,
326,
423,
11455,
286,
517,
621,
39064,
5054,
21747,
290,
1502,
422,
1877,
284,
1029,
416,
262,
12684,
62,
36604,
13,
46506,
309,
17,
13,
9971,
5612,
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... | [
25302,
257,
2318,
8262,
329,
644,
389,
262,
220,
2340,
290,
3307,
329,
477,
5745,
326,
423,
11455,
286,
517,
621,
39064,
5054,
21747,
290,
1502,
422,
1877,
284,
1029,
416,
262,
12684,
62,
36604,
13,
46506,
309,
17,
13,
9971,
5612,
6... |
What is the lowest value of INT's with an average more than 25? | SELECT MIN("INT'S") FROM table_37005 WHERE "Average" > '25' | [
2061,
318,
262,
9016,
1988,
286,
17828,
338,
351,
281,
2811,
517,
621,
1679,
30,
46506,
20625,
7203,
12394,
6,
50,
4943,
16034,
3084,
62,
2718,
22544,
33411,
366,
26287,
1,
1875,
705,
1495,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1988,
286,
17828,
338,
351,
281,
2811,
517,
621,
1679,
30,
46506,
20625,
7203,
12394,
6,
50,
4943,
16034,
3084,
62,
2718,
22544,
33411,
366,
26287,
1,
1875,
705,
1495,
6
] |
Which venue led to a result of 13th and had an extra of Long Race? | SELECT "Venue" FROM table_80319 WHERE "Extra" = 'long race' AND "Result" = '13th' | [
13828,
14359,
2957,
284,
257,
1255,
286,
1511,
400,
290,
550,
281,
3131,
286,
5882,
12588,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
1795,
35175,
33411,
366,
27726,
1,
796,
705,
6511,
3234,
6,
5357,
366,
23004,
1,
796,
705,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
14359,
2957,
284,
257,
1255,
286,
1511,
400,
290,
550,
281,
3131,
286,
5882,
12588,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
1795,
35175,
33411,
366,
27726,
1,
796,
705,
6511,
3234,
6,
5357,
366,
23004,
1,
796,
705,
14... |
What season has an episode written by john o'bryan and directed by ethan spaulding? | SELECT no_in_season FROM table_15185133_1 WHERE written_by = "John O'Bryan" AND directed_by = "Ethan Spaulding" | [
2061,
1622,
468,
281,
4471,
3194,
416,
45610,
267,
6,
65,
29038,
290,
7924,
416,
4555,
272,
599,
30406,
278,
30,
46506,
645,
62,
259,
62,
6230,
16034,
3084,
62,
1314,
21652,
16945,
62,
16,
33411,
3194,
62,
1525,
796,
366,
7554,
440,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1622,
468,
281,
4471,
3194,
416,
45610,
267,
6,
65,
29038,
290,
7924,
416,
4555,
272,
599,
30406,
278,
30,
46506,
645,
62,
259,
62,
6230,
16034,
3084,
62,
1314,
21652,
16945,
62,
16,
33411,
3194,
62,
1525,
796,
366,
7554,
440,... |
how many male patients were born before the year 2060? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.dob_year < "2060" | [
4919,
867,
4257,
3871,
547,
4642,
878,
262,
614,
1160,
1899,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
67,
672,
62,
1941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
4642,
878,
262,
614,
1160,
1899,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
67,
672,
62,
1941,
... |
How many titles have the number 11 | SELECT COUNT("Title") FROM table_16123 WHERE "#" = '11' | [
2437,
867,
8714,
423,
262,
1271,
1367,
46506,
327,
28270,
7203,
19160,
4943,
16034,
3084,
62,
1433,
10163,
33411,
25113,
1,
796,
705,
1157,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
8714,
423,
262,
1271,
1367,
46506,
327,
28270,
7203,
19160,
4943,
16034,
3084,
62,
1433,
10163,
33411,
25113,
1,
796,
705,
1157,
6
] |
How many points against did the club who had 353 points for have? | SELECT "Points against" FROM table_3739 WHERE "Points for" = '353' | [
2437,
867,
2173,
1028,
750,
262,
3430,
508,
550,
47567,
2173,
329,
423,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
2718,
2670,
33411,
366,
40710,
329,
1,
796,
705,
33319,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2173,
1028,
750,
262,
3430,
508,
550,
47567,
2173,
329,
423,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
2718,
2670,
33411,
366,
40710,
329,
1,
796,
705,
33319,
6
] |
What team lost on 20 August 1989? | SELECT "LosingTeam" FROM table_56417 WHERE "Cup FinalDate" = '20 august 1989' | [
2061,
1074,
2626,
319,
1160,
2932,
11104,
30,
46506,
366,
43,
2752,
15592,
1,
16034,
3084,
62,
20,
2414,
1558,
33411,
366,
34,
929,
8125,
10430,
1,
796,
705,
1238,
16339,
436,
11104,
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,
1074,
2626,
319,
1160,
2932,
11104,
30,
46506,
366,
43,
2752,
15592,
1,
16034,
3084,
62,
20,
2414,
1558,
33411,
366,
34,
929,
8125,
10430,
1,
796,
705,
1238,
16339,
436,
11104,
6
] |
how many times did colin eglin serve as party leader ? | SELECT COUNT(*) FROM table_204_690 WHERE "party leader(s)" = 'colin eglin' | [
4919,
867,
1661,
750,
951,
259,
29206,
2815,
4691,
355,
2151,
3554,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
35844,
33411,
366,
10608,
3554,
7,
82,
16725,
796,
705,
4033,
259,
29206,
2815,
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
] | [
4919,
867,
1661,
750,
951,
259,
29206,
2815,
4691,
355,
2151,
3554,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
35844,
33411,
366,
10608,
3554,
7,
82,
16725,
796,
705,
4033,
259,
29206,
2815,
6
] |
what format did france use ? | SELECT "format" FROM table_204_966 WHERE "region" = 'france' | [
10919,
5794,
750,
1216,
590,
779,
5633,
46506,
366,
18982,
1,
16034,
3084,
62,
18638,
62,
24,
2791,
33411,
366,
36996,
1,
796,
705,
69,
8132,
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
] | [
10919,
5794,
750,
1216,
590,
779,
5633,
46506,
366,
18982,
1,
16034,
3084,
62,
18638,
62,
24,
2791,
33411,
366,
36996,
1,
796,
705,
69,
8132,
6
] |
Just list the customer event id and the corresponding move property id using a scatter. | SELECT Customer_Event_ID, property_id FROM Customer_Events | [
5703,
1351,
262,
6491,
1785,
4686,
290,
262,
11188,
1445,
3119,
4686,
1262,
257,
41058,
13,
46506,
22092,
62,
9237,
62,
2389,
11,
3119,
62,
312,
16034,
22092,
62,
37103
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5703,
1351,
262,
6491,
1785,
4686,
290,
262,
11188,
1445,
3119,
4686,
1262,
257,
41058,
13,
46506,
22092,
62,
9237,
62,
2389,
11,
3119,
62,
312,
16034,
22092,
62,
37103
] |
what is the album when the remix is dead guys remix and the year is after 2003? | SELECT album FROM table_name_51 WHERE remix = "dead guys remix" AND year > 2003 | [
10919,
318,
262,
5062,
618,
262,
34471,
318,
2636,
3730,
34471,
290,
262,
614,
318,
706,
5816,
30,
46506,
5062,
16034,
3084,
62,
3672,
62,
4349,
33411,
34471,
796,
366,
25124,
3730,
34471,
1,
5357,
614,
1875,
5816
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5062,
618,
262,
34471,
318,
2636,
3730,
34471,
290,
262,
614,
318,
706,
5816,
30,
46506,
5062,
16034,
3084,
62,
3672,
62,
4349,
33411,
34471,
796,
366,
25124,
3730,
34471,
1,
5357,
614,
1875,
5816
] |
Who retired at lap 77 and was grid 11? | SELECT time_retired FROM table_name_22 WHERE laps = "77" AND grid = "11" | [
8241,
9880,
379,
14779,
8541,
290,
373,
10706,
1367,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
1828,
33411,
24590,
796,
366,
3324,
1,
5357,
10706,
796,
366,
1157,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
9880,
379,
14779,
8541,
290,
373,
10706,
1367,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
1828,
33411,
24590,
796,
366,
3324,
1,
5357,
10706,
796,
366,
1157,
1
] |
For each trip, return its ending station's installation date. | SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id | [
1890,
1123,
5296,
11,
1441,
663,
7464,
4429,
338,
9988,
3128,
13,
46506,
309,
16,
13,
312,
11,
309,
17,
13,
17350,
341,
62,
4475,
16034,
5296,
7054,
309,
16,
32357,
1268,
4429,
7054,
309,
17,
6177,
309,
16,
13,
437,
62,
17529,
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
] | [
1890,
1123,
5296,
11,
1441,
663,
7464,
4429,
338,
9988,
3128,
13,
46506,
309,
16,
13,
312,
11,
309,
17,
13,
17350,
341,
62,
4475,
16034,
5296,
7054,
309,
16,
32357,
1268,
4429,
7054,
309,
17,
6177,
309,
16,
13,
437,
62,
17529,
62,... |
Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th? | SELECT opposing_pitcher FROM table_name_37 WHERE team = "phillies" AND location = "pittsburgh" AND inning = "8th" | [
8241,
318,
262,
9385,
2752,
16889,
2044,
618,
4816,
318,
872,
359,
444,
11,
13397,
318,
279,
715,
11931,
11,
290,
554,
768,
318,
807,
400,
30,
46506,
12330,
62,
15544,
2044,
16034,
3084,
62,
3672,
62,
2718,
33411,
1074,
796,
366,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9385,
2752,
16889,
2044,
618,
4816,
318,
872,
359,
444,
11,
13397,
318,
279,
715,
11931,
11,
290,
554,
768,
318,
807,
400,
30,
46506,
12330,
62,
15544,
2044,
16034,
3084,
62,
3672,
62,
2718,
33411,
1074,
796,
366,
74... |
Of the players who scored 5 three pointers, what is the highest number of games played? | SELECT MAX("Games Played") FROM table_25375 WHERE "Three Pointers" = '5' | [
5189,
262,
1938,
508,
7781,
642,
1115,
32007,
11,
644,
318,
262,
4511,
1271,
286,
1830,
2826,
30,
46506,
25882,
7203,
24474,
33101,
4943,
16034,
3084,
62,
1495,
22318,
33411,
366,
12510,
7695,
20193,
1,
796,
705,
20,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5189,
262,
1938,
508,
7781,
642,
1115,
32007,
11,
644,
318,
262,
4511,
1271,
286,
1830,
2826,
30,
46506,
25882,
7203,
24474,
33101,
4943,
16034,
3084,
62,
1495,
22318,
33411,
366,
12510,
7695,
20193,
1,
796,
705,
20,
6
] |
What classes in Disability Cultures satisfy the Core requirement ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Disability Cultures%' OR course.description LIKE '%Disability Cultures%' OR course.name LIKE '%D... | [
2061,
6097,
287,
46454,
22449,
942,
15959,
262,
7231,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1989,
6177,
1781,
13,
17319,
62,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
6097,
287,
46454,
22449,
942,
15959,
262,
7231,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1989,
6177,
1781,
13,
17319,
62,
312,... |
Which classes have more than two captains? | SELECT class FROM captain GROUP BY class HAVING COUNT(*) > 2 | [
13828,
6097,
423,
517,
621,
734,
37551,
30,
46506,
1398,
16034,
10654,
44441,
11050,
1398,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6097,
423,
517,
621,
734,
37551,
30,
46506,
1398,
16034,
10654,
44441,
11050,
1398,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,
362
] |
Draw a bar chart of nationality versus the average of age, list from high to low by the bars. | SELECT Nationality, AVG(Age) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC | [
25302,
257,
2318,
8262,
286,
29835,
9051,
262,
2811,
286,
2479,
11,
1351,
422,
1029,
284,
1877,
416,
262,
9210,
13,
46506,
2351,
414,
11,
35224,
7,
23396,
8,
16034,
10099,
44441,
11050,
2351,
414,
38678,
11050,
2351,
414,
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
] | [
25302,
257,
2318,
8262,
286,
29835,
9051,
262,
2811,
286,
2479,
11,
1351,
422,
1029,
284,
1877,
416,
262,
9210,
13,
46506,
2351,
414,
11,
35224,
7,
23396,
8,
16034,
10099,
44441,
11050,
2351,
414,
38678,
11050,
2351,
414,
22196,
34
] |
What is the first names of the professors from the history department who do not teach a class. | SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN class AS T5 ON T4.emp_num = T5.prof_num | [
2061,
318,
262,
717,
3891,
286,
262,
20339,
422,
262,
2106,
5011,
508,
466,
407,
4545,
257,
1398,
13,
46506,
309,
16,
13,
45787,
62,
69,
3672,
16034,
6538,
7054,
309,
16,
32357,
1268,
6240,
7054,
309,
17,
6177,
309,
16,
13,
45787,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
3891,
286,
262,
20339,
422,
262,
2106,
5011,
508,
466,
407,
4545,
257,
1398,
13,
46506,
309,
16,
13,
45787,
62,
69,
3672,
16034,
6538,
7054,
309,
16,
32357,
1268,
6240,
7054,
309,
17,
6177,
309,
16,
13,
45787,
... |
Find the top 3 products which have the largest number of problems? | SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3 | [
16742,
262,
1353,
513,
3186,
543,
423,
262,
4387,
1271,
286,
2761,
30,
46506,
309,
17,
13,
11167,
62,
3672,
16034,
2761,
7054,
309,
16,
32357,
1268,
1720,
7054,
309,
17,
6177,
309,
16,
13,
11167,
62,
312,
796,
309,
17,
13,
11167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
513,
3186,
543,
423,
262,
4387,
1271,
286,
2761,
30,
46506,
309,
17,
13,
11167,
62,
3672,
16034,
2761,
7054,
309,
16,
32357,
1268,
1720,
7054,
309,
17,
6177,
309,
16,
13,
11167,
62,
312,
796,
309,
17,
13,
11167,
... |
Which rider from the 1971 Isle of Man Junior TT 250cc final standings had a speed equal to 86.15mph? | SELECT rider FROM table_name_78 WHERE speed = "86.15mph" | [
13828,
17876,
422,
262,
16382,
26378,
286,
1869,
20000,
26653,
8646,
535,
2457,
33864,
550,
257,
2866,
4961,
284,
9849,
13,
1314,
23335,
30,
46506,
17876,
16034,
3084,
62,
3672,
62,
3695,
33411,
2866,
796,
366,
4521,
13,
1314,
23335,
1
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17876,
422,
262,
16382,
26378,
286,
1869,
20000,
26653,
8646,
535,
2457,
33864,
550,
257,
2866,
4961,
284,
9849,
13,
1314,
23335,
30,
46506,
17876,
16034,
3084,
62,
3672,
62,
3695,
33411,
2866,
796,
366,
4521,
13,
1314,
23335,
1
... |
Draw a bar chart of last name versus department_id | SELECT LAST_NAME, DEPARTMENT_ID FROM employees | [
25302,
257,
2318,
8262,
286,
938,
1438,
9051,
5011,
62,
312,
46506,
41894,
62,
20608,
11,
5550,
30709,
10979,
62,
2389,
16034,
4409
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
938,
1438,
9051,
5011,
62,
312,
46506,
41894,
62,
20608,
11,
5550,
30709,
10979,
62,
2389,
16034,
4409
] |
Plot how many party by grouped by party as a bar graph, rank by the y axis in descending. | SELECT Party, COUNT(Party) FROM representative GROUP BY Party ORDER BY COUNT(Party) DESC | [
43328,
703,
867,
2151,
416,
32824,
416,
2151,
355,
257,
2318,
4823,
11,
4279,
416,
262,
331,
16488,
287,
31491,
13,
46506,
3615,
11,
327,
28270,
7,
33553,
8,
16034,
8852,
44441,
11050,
3615,
38678,
11050,
327,
28270,
7,
33553,
8,
2219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
703,
867,
2151,
416,
32824,
416,
2151,
355,
257,
2318,
4823,
11,
4279,
416,
262,
331,
16488,
287,
31491,
13,
46506,
3615,
11,
327,
28270,
7,
33553,
8,
16034,
8852,
44441,
11050,
3615,
38678,
11050,
327,
28270,
7,
33553,
8,
2219... |
provide the number of patients whose primary disease is chest pain and year of birth is less than 2112? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CHEST PAIN" AND demographic.dob_year < "2112" | [
15234,
485,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
614,
286,
4082,
318,
1342,
621,
2310,
1065,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
614,
286,
4082,
318,
1342,
621,
2310,
1065,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,... |
Subordinates of a given manager. | WITH Employee AS (SELECT 1 AS Emp_ID, 'Admin' AS Emp_Name, NULL AS Emp_Manager_ID UNION ALL SELECT 2, 'John', 1 UNION ALL SELECT 3, 'Sam', 2 UNION ALL SELECT 4, 'Mike', 2 UNION ALL SELECT 5, 'Jeff', 4 UNION ALL SELECT 6, 'Ben', 3 UNION ALL SELECT 7, 'Vicky', 5), Subordinates AS (SELECT e.Emp_ID, e.Emp_Name, e.Emp_Manag... | [
7004,
585,
17540,
286,
257,
1813,
4706,
13,
54,
10554,
36824,
7054,
357,
46506,
352,
7054,
2295,
79,
62,
2389,
11,
705,
46787,
6,
7054,
2295,
79,
62,
5376,
11,
15697,
7054,
2295,
79,
62,
13511,
62,
2389,
4725,
2849,
11096,
33493,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7004,
585,
17540,
286,
257,
1813,
4706,
13,
54,
10554,
36824,
7054,
357,
46506,
352,
7054,
2295,
79,
62,
2389,
11,
705,
46787,
6,
7054,
2295,
79,
62,
5376,
11,
15697,
7054,
2295,
79,
62,
13511,
62,
2389,
4725,
2849,
11096,
33493,
36... |
what is minimum age of patients whose gender is m and age is greater than or equal to 50? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.age >= "50" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
5279,
318,
285,
290,
2479,
318,
3744,
621,
393,
4961,
284,
2026,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
496,
1818... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5288,
2479,
286,
3871,
3025,
5279,
318,
285,
290,
2479,
318,
3744,
621,
393,
4961,
284,
2026,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
496,
1818... |
what year was jay mills first year ? | SELECT "year" FROM table_204_11 WHERE "charleston southern's head coach" = 'jay mills' ORDER BY "year" LIMIT 1 | [
10919,
614,
373,
474,
323,
41999,
717,
614,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
1157,
33411,
366,
354,
7063,
19115,
8372,
338,
1182,
3985,
1,
796,
705,
33708,
41999,
6,
38678,
11050,
366,
1941,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
614,
373,
474,
323,
41999,
717,
614,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
1157,
33411,
366,
354,
7063,
19115,
8372,
338,
1182,
3985,
1,
796,
705,
33708,
41999,
6,
38678,
11050,
366,
1941,
1,
27564,
2043,
352
] |
Name of 900 north michigan, and a Year smaller than 1989 involves what lowest floors? | SELECT MIN(floors) FROM table_name_39 WHERE name = "900 north michigan" AND year < 1989 | [
5376,
286,
15897,
5093,
285,
488,
5516,
11,
290,
257,
6280,
4833,
621,
11104,
9018,
644,
9016,
18570,
30,
46506,
20625,
7,
48679,
669,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
12865,
5093,
285,
488,
5516,
1,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
15897,
5093,
285,
488,
5516,
11,
290,
257,
6280,
4833,
621,
11104,
9018,
644,
9016,
18570,
30,
46506,
20625,
7,
48679,
669,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
12865,
5093,
285,
488,
5516,
1,
5357,
... |
Who won the race on May 1? | SELECT "Race Winner" FROM table_30835 WHERE "Date" = 'May 1' | [
8241,
1839,
262,
3234,
319,
1737,
352,
30,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
21495,
2327,
33411,
366,
10430,
1,
796,
705,
6747,
352,
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,
1839,
262,
3234,
319,
1737,
352,
30,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
21495,
2327,
33411,
366,
10430,
1,
796,
705,
6747,
352,
6
] |
What is the other premiership when the runner up wis Geelong? | SELECT "Premiership" FROM table_16717 WHERE "Runner Up" = 'Geelong' | [
2061,
318,
262,
584,
4199,
36689,
618,
262,
17490,
510,
266,
271,
2269,
21537,
30,
46506,
366,
24914,
36689,
1,
16034,
3084,
62,
21940,
1558,
33411,
366,
49493,
3205,
1,
796,
705,
10082,
21537,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
584,
4199,
36689,
618,
262,
17490,
510,
266,
271,
2269,
21537,
30,
46506,
366,
24914,
36689,
1,
16034,
3084,
62,
21940,
1558,
33411,
366,
49493,
3205,
1,
796,
705,
10082,
21537,
6
] |
how many patients stayed in hospital for more than 1 day and were procedured with spinal tap? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "2" AND procedures.short_title = "Spinal tap" | [
4919,
867,
3871,
9658,
287,
4436,
329,
517,
621,
352,
1110,
290,
547,
5131,
1522,
351,
26234,
9814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9658,
287,
4436,
329,
517,
621,
352,
1110,
290,
547,
5131,
1522,
351,
26234,
9814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
1672... |
Which Points have a Score of 4 1, and a Game smaller than 39? | SELECT SUM("Points") FROM table_75646 WHERE "Score" = '4–1' AND "Game" < '39' | [
13828,
11045,
423,
257,
15178,
286,
604,
352,
11,
290,
257,
3776,
4833,
621,
5014,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
2425,
27720,
33411,
366,
26595,
1,
796,
705,
19,
1906,
16,
6,
5357,
366,
8777,
1,
1279,
705,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
11045,
423,
257,
15178,
286,
604,
352,
11,
290,
257,
3776,
4833,
621,
5014,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
2425,
27720,
33411,
366,
26595,
1,
796,
705,
19,
1906,
16,
6,
5357,
366,
8777,
1,
1279,
705,
26... |
Show total hours per week and number of games played for student David Shieber. | SELECT SUM(hoursperweek), SUM(gamesplayed) FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.Fname = "David" AND T2.Lname = "Shieber" | [
15307,
2472,
2250,
583,
1285,
290,
1271,
286,
1830,
2826,
329,
3710,
3271,
911,
494,
527,
13,
46506,
35683,
7,
24425,
525,
10464,
828,
35683,
7,
19966,
21542,
8,
16034,
7092,
10951,
7054,
309,
16,
32357,
1268,
13613,
7054,
309,
17,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
2472,
2250,
583,
1285,
290,
1271,
286,
1830,
2826,
329,
3710,
3271,
911,
494,
527,
13,
46506,
35683,
7,
24425,
525,
10464,
828,
35683,
7,
19966,
21542,
8,
16034,
7092,
10951,
7054,
309,
16,
32357,
1268,
13613,
7054,
309,
17,
61... |
Can you tell me the Chinese that has the Chapter larger than 4, and the English Translation of food transformations? | SELECT "Chinese" FROM table_40044 WHERE "Chapter" > '4' AND "English Translation" = 'food transformations' | [
6090,
345,
1560,
502,
262,
3999,
326,
468,
262,
7006,
4025,
621,
604,
11,
290,
262,
3594,
33322,
286,
2057,
38226,
30,
46506,
366,
23604,
1,
16034,
3084,
62,
7029,
2598,
33411,
366,
14126,
1,
1875,
705,
19,
6,
5357,
366,
15823,
3332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
3999,
326,
468,
262,
7006,
4025,
621,
604,
11,
290,
262,
3594,
33322,
286,
2057,
38226,
30,
46506,
366,
23604,
1,
16034,
3084,
62,
7029,
2598,
33411,
366,
14126,
1,
1875,
705,
19,
6,
5357,
366,
15823,
3332... |
How many times did the incumbent was first elected and then lost re-election anti-masonic gain? | SELECT COUNT("First elected") FROM table_28846 WHERE "Result" = 'Lost re-election Anti-Masonic gain' | [
2437,
867,
1661,
750,
262,
23526,
373,
717,
7018,
290,
788,
2626,
302,
12,
14300,
3098,
12,
76,
30189,
4461,
30,
46506,
327,
28270,
7203,
5962,
7018,
4943,
16034,
3084,
62,
25270,
3510,
33411,
366,
23004,
1,
796,
705,
31042,
302,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1661,
750,
262,
23526,
373,
717,
7018,
290,
788,
2626,
302,
12,
14300,
3098,
12,
76,
30189,
4461,
30,
46506,
327,
28270,
7203,
5962,
7018,
4943,
16034,
3084,
62,
25270,
3510,
33411,
366,
23004,
1,
796,
705,
31042,
302,
12,
... |
What is the reunion weight of the contestant that lost 52 lbs at the reunion? | SELECT "Reunion Weight" FROM table_4063 WHERE "lbs lost reunion" = '52' | [
2061,
318,
262,
30321,
3463,
286,
262,
44047,
326,
2626,
6740,
15785,
379,
262,
30321,
30,
46506,
366,
3041,
24592,
14331,
1,
16034,
3084,
62,
1821,
5066,
33411,
366,
32133,
2626,
30321,
1,
796,
705,
4309,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
30321,
3463,
286,
262,
44047,
326,
2626,
6740,
15785,
379,
262,
30321,
30,
46506,
366,
3041,
24592,
14331,
1,
16034,
3084,
62,
1821,
5066,
33411,
366,
32133,
2626,
30321,
1,
796,
705,
4309,
6
] |
What is the amount of snow where the sunshine is 1 633, and storms are lower than 29? | SELECT AVG(snow__days_year_) FROM table_name_23 WHERE sunshine__hrs_year_ = "1 633" AND storms__days_year_ < 29 | [
2061,
318,
262,
2033,
286,
6729,
810,
262,
34488,
318,
352,
718,
2091,
11,
290,
20228,
389,
2793,
621,
2808,
30,
46506,
35224,
7,
82,
2197,
834,
12545,
62,
1941,
62,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
34488,
834,
71,
3808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
6729,
810,
262,
34488,
318,
352,
718,
2091,
11,
290,
20228,
389,
2793,
621,
2808,
30,
46506,
35224,
7,
82,
2197,
834,
12545,
62,
1941,
62,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
34488,
834,
71,
3808,
... |
i'd like the flights from SAN JOSE to NASHVILLE on the morning of friday 6 third | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'NASHVILLE' AND date_day.day_number = 25 AND date_day.month_number = 6 AN... | [
72,
1549,
588,
262,
13956,
422,
37376,
449,
14058,
284,
7210,
39,
38526,
319,
262,
3329,
286,
1216,
2567,
718,
2368,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
1549,
588,
262,
13956,
422,
37376,
449,
14058,
284,
7210,
39,
38526,
319,
262,
3329,
286,
1216,
2567,
718,
2368,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... |
What is the elevation for the peak wildspitze in Austria? | SELECT MIN("Elevation (m)") FROM table_29426 WHERE "Location" = 'Austria' AND "Peak" = 'Wildspitze' | [
2061,
318,
262,
22910,
329,
262,
9103,
4295,
2777,
270,
2736,
287,
17322,
30,
46506,
20625,
7203,
36,
2768,
341,
357,
76,
8,
4943,
16034,
3084,
62,
27696,
2075,
33411,
366,
14749,
1,
796,
705,
15160,
7496,
6,
5357,
366,
6435,
461,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22910,
329,
262,
9103,
4295,
2777,
270,
2736,
287,
17322,
30,
46506,
20625,
7203,
36,
2768,
341,
357,
76,
8,
4943,
16034,
3084,
62,
27696,
2075,
33411,
366,
14749,
1,
796,
705,
15160,
7496,
6,
5357,
366,
6435,
461,
1... |
What is the date of birth of every customer whose status code is 'Good Customer', and count them by a line chart, could you display by the X in ascending please? | SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' ORDER BY date_of_birth | [
2061,
318,
262,
3128,
286,
4082,
286,
790,
6491,
3025,
3722,
2438,
318,
705,
10248,
22092,
3256,
290,
954,
606,
416,
257,
1627,
8262,
11,
714,
345,
3359,
416,
262,
1395,
287,
41988,
3387,
30,
46506,
3128,
62,
1659,
62,
24280,
11,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4082,
286,
790,
6491,
3025,
3722,
2438,
318,
705,
10248,
22092,
3256,
290,
954,
606,
416,
257,
1627,
8262,
11,
714,
345,
3359,
416,
262,
1395,
287,
41988,
3387,
30,
46506,
3128,
62,
1659,
62,
24280,
11,
32... |
A bar chart showing the number of debates in each venue for those on the negative side. | SELECT Venue, COUNT(Venue) FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID GROUP BY Venue | [
32,
2318,
8262,
4478,
262,
1271,
286,
15389,
287,
1123,
14359,
329,
883,
319,
262,
4633,
1735,
13,
46506,
9932,
518,
11,
327,
28270,
7,
37522,
518,
8,
16034,
4384,
62,
15332,
7054,
309,
16,
32357,
1268,
4384,
7054,
309,
17,
6177,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
4478,
262,
1271,
286,
15389,
287,
1123,
14359,
329,
883,
319,
262,
4633,
1735,
13,
46506,
9932,
518,
11,
327,
28270,
7,
37522,
518,
8,
16034,
4384,
62,
15332,
7054,
309,
16,
32357,
1268,
4384,
7054,
309,
17,
6177,
30... |
what is the earliest flight leaving DENVER going to BOSTON | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON... | [
10919,
318,
262,
14555,
5474,
4305,
37692,
5959,
1016,
284,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14555,
5474,
4305,
37692,
5959,
1016,
284,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600... |
What was the game edition when they played on the clay (i) surface and the outcome was a winner? | SELECT "Edition" FROM table_72983 WHERE "Surface" = 'Clay (i)' AND "Outcome" = 'Winner' | [
2061,
373,
262,
983,
8313,
618,
484,
2826,
319,
262,
21558,
357,
72,
8,
4417,
290,
262,
8055,
373,
257,
8464,
30,
46506,
366,
7407,
653,
1,
16034,
3084,
62,
48555,
5999,
33411,
366,
14214,
2550,
1,
796,
705,
2601,
323,
357,
72,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
983,
8313,
618,
484,
2826,
319,
262,
21558,
357,
72,
8,
4417,
290,
262,
8055,
373,
257,
8464,
30,
46506,
366,
7407,
653,
1,
16034,
3084,
62,
48555,
5999,
33411,
366,
14214,
2550,
1,
796,
705,
2601,
323,
357,
72,
33... |
1 reputation users with a meta posts with more than 5 votes, active in last 6 months. | SELECT SUM(ABS(p.Score)) AS scores, MAX(p.CreationDate) AS lastedit, u.Id AS "user_link" FROM Posts AS p INNER JOIN Users AS u ON p.OwnerUserId = u.Id WHERE p.CommunityOwnedDate IS NULL AND u.Reputation = 1 AND p.Score > 5 AND u.Id > 0 GROUP BY u.Id HAVING MAX(p.CreationDate) > DATEADD(m, -6, GETDATE()) ORDER BY scores... | [
16,
8507,
2985,
351,
257,
13634,
6851,
351,
517,
621,
642,
5690,
11,
4075,
287,
938,
718,
1933,
13,
46506,
35683,
7,
32,
4462,
7,
79,
13,
26595,
4008,
7054,
8198,
11,
25882,
7,
79,
13,
12443,
341,
10430,
8,
7054,
15436,
270,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16,
8507,
2985,
351,
257,
13634,
6851,
351,
517,
621,
642,
5690,
11,
4075,
287,
938,
718,
1933,
13,
46506,
35683,
7,
32,
4462,
7,
79,
13,
26595,
4008,
7054,
8198,
11,
25882,
7,
79,
13,
12443,
341,
10430,
8,
7054,
15436,
270,
11,
... |
What is the pick of player ian schultz from Canada? | SELECT pick FROM table_name_8 WHERE nationality = "canada" AND player = "ian schultz" | [
2061,
318,
262,
2298,
286,
2137,
220,
666,
5513,
22150,
422,
3340,
30,
46506,
2298,
16034,
3084,
62,
3672,
62,
23,
33411,
29835,
796,
366,
5171,
4763,
1,
5357,
2137,
796,
366,
666,
5513,
22150,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
286,
2137,
220,
666,
5513,
22150,
422,
3340,
30,
46506,
2298,
16034,
3084,
62,
3672,
62,
23,
33411,
29835,
796,
366,
5171,
4763,
1,
5357,
2137,
796,
366,
666,
5513,
22150,
1
] |
Please tell me the average star ratings of each movie title using a bar chart, and could you show by the bar in desc? | SELECT title, AVG(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY title DESC | [
5492,
1560,
502,
262,
2811,
3491,
10109,
286,
1123,
3807,
3670,
1262,
257,
2318,
8262,
11,
290,
714,
345,
905,
416,
262,
2318,
287,
1715,
30,
46506,
3670,
11,
35224,
7,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
15875,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5492,
1560,
502,
262,
2811,
3491,
10109,
286,
1123,
3807,
3670,
1262,
257,
2318,
8262,
11,
290,
714,
345,
905,
416,
262,
2318,
287,
1715,
30,
46506,
3670,
11,
35224,
7,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
15875,
7054,
... |
Which points classification has 4 as the stage? | SELECT points_classification FROM table_22464308_2 WHERE stage = 4 | [
13828,
2173,
17923,
468,
604,
355,
262,
3800,
30,
46506,
2173,
62,
4871,
2649,
16034,
3084,
62,
24137,
2414,
21495,
62,
17,
33411,
3800,
796,
604
] | [
1,
1,
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,
2173,
17923,
468,
604,
355,
262,
3800,
30,
46506,
2173,
62,
4871,
2649,
16034,
3084,
62,
24137,
2414,
21495,
62,
17,
33411,
3800,
796,
604
] |
what is the number of patients whose primary disease is squamous cell carcinoma oral tongue/sda and admission year is less than 2173? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND demographic.admityear < "2173" | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
2809,
10877,
2685,
28164,
6086,
12886,
11880,
14,
82,
6814,
290,
13938,
614,
318,
1342,
621,
24894,
18,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
2809,
10877,
2685,
28164,
6086,
12886,
11880,
14,
82,
6814,
290,
13938,
614,
318,
1342,
621,
24894,
18,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312... |
Who was the loser at Municipal Stadium after 1970? | SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970 | [
8241,
373,
262,
30256,
379,
31526,
10499,
706,
8069,
30,
46506,
30256,
16034,
3084,
62,
3672,
62,
4846,
33411,
4067,
796,
366,
6199,
4311,
282,
10308,
1,
5357,
614,
1875,
8069
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
30256,
379,
31526,
10499,
706,
8069,
30,
46506,
30256,
16034,
3084,
62,
3672,
62,
4846,
33411,
4067,
796,
366,
6199,
4311,
282,
10308,
1,
5357,
614,
1875,
8069
] |
what ground transportation is available in NEWARK | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'NEWARK' AND ground_service.city_code = city.city_code | [
10919,
2323,
9358,
318,
1695,
287,
12682,
14175,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
1748,
11,
2323,
62,
15271,
33411,
1748,
13,
19205,
62,
3672,
796,
705,
13965,
14175,
6,
5357,
2323,
62,
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
] | [
10919,
2323,
9358,
318,
1695,
287,
12682,
14175,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
1748,
11,
2323,
62,
15271,
33411,
1748,
13,
19205,
62,
3672,
796,
705,
13965,
14175,
6,
5357,
2323,
62,
15... |
is the heart rate of patient 1902's body last measured on the current intensive care unit visit less than the value second to last measured on the current intensive care unit visit? | SELECT (SELECT 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 = 1902) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_it... | [
271,
262,
2612,
2494,
286,
5827,
45611,
338,
1767,
938,
8630,
319,
262,
1459,
18590,
1337,
4326,
3187,
1342,
621,
262,
1988,
1218,
284,
938,
8630,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
262,
2612,
2494,
286,
5827,
45611,
338,
1767,
938,
8630,
319,
262,
1459,
18590,
1337,
4326,
3187,
1342,
621,
262,
1988,
1218,
284,
938,
8630,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
... |
what are the student IDs and middle names of the students enrolled in at most two courses?, display in desc by the Y. | SELECT T2.middle_name, T1.student_id FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.student_id DESC | [
10919,
389,
262,
3710,
32373,
290,
3504,
3891,
286,
262,
2444,
18724,
287,
379,
749,
734,
10902,
21747,
3359,
287,
1715,
416,
262,
575,
13,
46506,
309,
17,
13,
27171,
62,
3672,
11,
309,
16,
13,
50139,
62,
312,
16034,
13613,
62,
4904... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
3710,
32373,
290,
3504,
3891,
286,
262,
2444,
18724,
287,
379,
749,
734,
10902,
21747,
3359,
287,
1715,
416,
262,
575,
13,
46506,
309,
17,
13,
27171,
62,
3672,
11,
309,
16,
13,
50139,
62,
312,
16034,
13613,
62,
4904... |
What is the sum of Floors at st. joseph church? | SELECT SUM(floors) FROM table_name_52 WHERE name = "st. joseph church" | [
2061,
318,
262,
2160,
286,
29075,
669,
379,
336,
13,
474,
577,
746,
4928,
30,
46506,
35683,
7,
48679,
669,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
1438,
796,
366,
301,
13,
474,
577,
746,
4928,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29075,
669,
379,
336,
13,
474,
577,
746,
4928,
30,
46506,
35683,
7,
48679,
669,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
1438,
796,
366,
301,
13,
474,
577,
746,
4928,
1
] |
List all the dates of enrollment and completion of students. | SELECT date_of_enrolment, date_of_completion FROM student_course_enrolment | [
8053,
477,
262,
9667,
286,
20753,
290,
11939,
286,
2444,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
3128,
62,
1659,
62,
785,
24547,
16034,
3710,
62,
17319,
62,
268,
3225,
434
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
477,
262,
9667,
286,
20753,
290,
11939,
286,
2444,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
3128,
62,
1659,
62,
785,
24547,
16034,
3710,
62,
17319,
62,
268,
3225,
434
] |
Group and count details for the events using a bar chart, and show by the the number of event details in ascending please. | SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details ORDER BY COUNT(Event_Details) | [
13247,
290,
954,
3307,
329,
262,
2995,
1262,
257,
2318,
8262,
11,
290,
905,
416,
262,
262,
1271,
286,
1785,
3307,
287,
41988,
3387,
13,
46506,
8558,
62,
24259,
11,
327,
28270,
7,
9237,
62,
24259,
8,
16034,
18715,
44441,
11050,
8558,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13247,
290,
954,
3307,
329,
262,
2995,
1262,
257,
2318,
8262,
11,
290,
905,
416,
262,
262,
1271,
286,
1785,
3307,
287,
41988,
3387,
13,
46506,
8558,
62,
24259,
11,
327,
28270,
7,
9237,
62,
24259,
8,
16034,
18715,
44441,
11050,
8558,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.