instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Who acted ' John Nash ' in the movie ' A Beautiful Mind ' ? | SELECT actor.name FROM actor, cast, movie WHERE cast.aid = actor.aid AND cast.role = 'John Nash' AND movie.mid = cast.msid AND movie.title = 'A Beautiful Mind' | [
8241,
13134,
705,
1757,
13950,
705,
287,
262,
3807,
705,
317,
23762,
10175,
705,
5633,
46506,
8674,
13,
3672,
16034,
8674,
11,
3350,
11,
3807,
33411,
3350,
13,
1698,
796,
8674,
13,
1698,
5357,
3350,
13,
18090,
796,
705,
7554,
13950,
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
] | [
8241,
13134,
705,
1757,
13950,
705,
287,
262,
3807,
705,
317,
23762,
10175,
705,
5633,
46506,
8674,
13,
3672,
16034,
8674,
11,
3350,
11,
3807,
33411,
3350,
13,
1698,
796,
8674,
13,
1698,
5357,
3350,
13,
18090,
796,
705,
7554,
13950,
6... |
Name the number of airdates for 14 | SELECT COUNT(original_air_date) FROM table_2409041_4 WHERE no_in_season = 14 | [
5376,
262,
1271,
286,
257,
1447,
689,
329,
1478,
46506,
327,
28270,
7,
14986,
62,
958,
62,
4475,
8,
16034,
3084,
62,
1731,
2931,
50049,
62,
19,
33411,
645,
62,
259,
62,
6230,
796,
1478
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
257,
1447,
689,
329,
1478,
46506,
327,
28270,
7,
14986,
62,
958,
62,
4475,
8,
16034,
3084,
62,
1731,
2931,
50049,
62,
19,
33411,
645,
62,
259,
62,
6230,
796,
1478
] |
Can you tell me the proportion of each party for the election? | SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party | [
6090,
345,
1560,
502,
262,
9823,
286,
1123,
2151,
329,
262,
3071,
30,
46506,
309,
17,
13,
33553,
11,
327,
28270,
7,
51,
17,
13,
33553,
8,
16034,
3071,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
33553,
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
] | [
6090,
345,
1560,
502,
262,
9823,
286,
1123,
2151,
329,
262,
3071,
30,
46506,
309,
17,
13,
33553,
11,
327,
28270,
7,
51,
17,
13,
33553,
8,
16034,
3071,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
33553,
796,... |
Who was the father of the person born in 1363? | SELECT father FROM table_name_97 WHERE birth = "1363" | [
8241,
373,
262,
2988,
286,
262,
1048,
4642,
287,
1511,
5066,
30,
46506,
2988,
16034,
3084,
62,
3672,
62,
5607,
33411,
4082,
796,
366,
1485,
5066,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
2988,
286,
262,
1048,
4642,
287,
1511,
5066,
30,
46506,
2988,
16034,
3084,
62,
3672,
62,
5607,
33411,
4082,
796,
366,
1485,
5066,
1
] |
How many races involve incumbent Pat Cannon? | SELECT COUNT("Result") FROM table_18592 WHERE "Incumbent" = 'Pat Cannon' | [
2437,
867,
9558,
6211,
23526,
3208,
20585,
30,
46506,
327,
28270,
7203,
23004,
4943,
16034,
3084,
62,
1507,
45839,
33411,
366,
25517,
2178,
298,
1,
796,
705,
12130,
20585,
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,
9558,
6211,
23526,
3208,
20585,
30,
46506,
327,
28270,
7203,
23004,
4943,
16034,
3084,
62,
1507,
45839,
33411,
366,
25517,
2178,
298,
1,
796,
705,
12130,
20585,
6
] |
Which Season originally aired on September 17, 1955 | SELECT season__number FROM table_15824796_4 WHERE original_air_date = "September 17, 1955" | [
13828,
7369,
6198,
18530,
319,
2693,
1596,
11,
25325,
46506,
1622,
834,
17618,
16034,
3084,
62,
21273,
1731,
41060,
62,
19,
33411,
2656,
62,
958,
62,
4475,
796,
366,
17543,
1596,
11,
25325,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7369,
6198,
18530,
319,
2693,
1596,
11,
25325,
46506,
1622,
834,
17618,
16034,
3084,
62,
21273,
1731,
41060,
62,
19,
33411,
2656,
62,
958,
62,
4475,
796,
366,
17543,
1596,
11,
25325,
1
] |
What are the title that have 19.48 million u.s. viewers? | SELECT "Title" FROM table_16618 WHERE "U.S. viewers (million)" = '19.48' | [
2061,
389,
262,
3670,
326,
423,
678,
13,
2780,
1510,
334,
13,
82,
13,
10209,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
23055,
1507,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
1129,
13,
2780,
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,
389,
262,
3670,
326,
423,
678,
13,
2780,
1510,
334,
13,
82,
13,
10209,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
23055,
1507,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
1129,
13,
2780,
6
] |
has patient 030-52395 ever had a suprapubic catheter until 3 years ago. | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52395')) AND treatment.treatmentname = 'suprapubic catheter' AND DATETIM... | [
10134,
5827,
657,
1270,
12,
49803,
3865,
1683,
550,
257,
7418,
2416,
549,
291,
3797,
43332,
1566,
513,
812,
2084,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
657,
1270,
12,
49803,
3865,
1683,
550,
257,
7418,
2416,
549,
291,
3797,
43332,
1566,
513,
812,
2084,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827... |
Average upvotes vs downvotes per post per month over time. | SELECT DATE(CONCAT(y, '-', m, '-', '01')), (upvotes - downvotes) / numposts FROM (SELECT YEAR(CreationDate) AS py, MONTH(CreationDate) AS pm, COUNT(*) AS numposts FROM Posts GROUP BY YEAR(CreationDate), MONTH(CreationDate)) AS p JOIN (SELECT y, m, SUM(upvote) AS upvotes, SUM(downvote) AS downvotes FROM (SELECT YEAR(Cre... | [
26287,
510,
29307,
3691,
866,
29307,
583,
1281,
583,
1227,
625,
640,
13,
46506,
360,
6158,
7,
10943,
34,
1404,
7,
88,
11,
705,
12,
3256,
285,
11,
705,
12,
3256,
705,
486,
11537,
828,
357,
929,
29307,
532,
866,
29307,
8,
1220,
299,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26287,
510,
29307,
3691,
866,
29307,
583,
1281,
583,
1227,
625,
640,
13,
46506,
360,
6158,
7,
10943,
34,
1404,
7,
88,
11,
705,
12,
3256,
285,
11,
705,
12,
3256,
705,
486,
11537,
828,
357,
929,
29307,
532,
866,
29307,
8,
1220,
299,... |
AWS Answers by Year for a given user. | SELECT CAST(TIME_TO_STR(Question.CreationDate, '%Y-%m-%d') AS TEXT(4)) AS Year, COUNT(Answer.Id) AS Answers FROM Posts AS Question JOIN Posts AS Answer ON Question.Id = Answer.ParentId WHERE Question.PostTypeId = 1 AND Answer.PostTypeId = 2 AND Question.ClosedDate IS NULL AND (Question.Tags LIKE '%<amazon-%' OR Questio... | [
12298,
50,
42612,
416,
6280,
329,
257,
1813,
2836,
13,
46506,
327,
11262,
7,
34694,
62,
10468,
62,
18601,
7,
24361,
13,
12443,
341,
10430,
11,
705,
4,
56,
12,
4,
76,
12,
4,
67,
11537,
7054,
40383,
7,
19,
4008,
7054,
6280,
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... | [
12298,
50,
42612,
416,
6280,
329,
257,
1813,
2836,
13,
46506,
327,
11262,
7,
34694,
62,
10468,
62,
18601,
7,
24361,
13,
12443,
341,
10430,
11,
705,
4,
56,
12,
4,
76,
12,
4,
67,
11537,
7054,
40383,
7,
19,
4008,
7054,
6280,
11,
32... |
Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit? | SELECT director FROM table_name_99 WHERE title = "wallace & gromit: the curse of the were-rabbit" | [
8241,
318,
262,
3437,
286,
17161,
1222,
402,
398,
270,
25,
383,
19739,
286,
262,
15176,
12,
49,
14229,
30,
46506,
3437,
16034,
3084,
62,
3672,
62,
2079,
33411,
3670,
796,
366,
11930,
558,
1222,
308,
398,
270,
25,
262,
17328,
286,
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,
1,
1,
1,
1
] | [
8241,
318,
262,
3437,
286,
17161,
1222,
402,
398,
270,
25,
383,
19739,
286,
262,
15176,
12,
49,
14229,
30,
46506,
3437,
16034,
3084,
62,
3672,
62,
2079,
33411,
3670,
796,
366,
11930,
558,
1222,
308,
398,
270,
25,
262,
17328,
286,
26... |
How many players were with the school or club team La Salle? | SELECT COUNT(player) FROM table_10015132_2 WHERE school_club_team = "La Salle" | [
2437,
867,
1938,
547,
351,
262,
1524,
393,
3430,
1074,
4689,
4849,
293,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
3064,
1314,
19924,
62,
17,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
14772,
4849,
293,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
547,
351,
262,
1524,
393,
3430,
1074,
4689,
4849,
293,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
3064,
1314,
19924,
62,
17,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
14772,
4849,
293,
1
] |
provide the number of patients whose ethnicity is black/cape verdean and age is less than 30? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.age < "30" | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
290,
2479,
318,
1342,
621,
1542,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
290,
2479,
318,
1342,
621,
1542,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546... |
what is the date where the constructor is ferrari and the location is anderstorp? | SELECT date FROM table_1140085_2 WHERE constructor = "Ferrari" AND location = "Anderstorp" | [
10919,
318,
262,
3128,
810,
262,
23772,
318,
277,
8056,
2743,
290,
262,
4067,
318,
290,
263,
301,
16300,
30,
46506,
3128,
16034,
3084,
62,
1157,
7029,
5332,
62,
17,
33411,
23772,
796,
366,
37,
8056,
2743,
1,
5357,
4067,
796,
366,
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
] | [
10919,
318,
262,
3128,
810,
262,
23772,
318,
277,
8056,
2743,
290,
262,
4067,
318,
290,
263,
301,
16300,
30,
46506,
3128,
16034,
3084,
62,
1157,
7029,
5332,
62,
17,
33411,
23772,
796,
366,
37,
8056,
2743,
1,
5357,
4067,
796,
366,
32... |
Count questions tagged with a given tag combination. | SELECT COUNT(*) AS CNT FROM Posts WHERE Tags LIKE '%java%' AND Tags LIKE '%collision-detection%' | [
12332,
2683,
30509,
351,
257,
1813,
7621,
6087,
13,
46506,
327,
28270,
7,
28104,
7054,
327,
11251,
16034,
12043,
33411,
44789,
34178,
705,
4,
12355,
4,
6,
5357,
44789,
34178,
705,
4,
26000,
1166,
12,
15255,
3213,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
2683,
30509,
351,
257,
1813,
7621,
6087,
13,
46506,
327,
28270,
7,
28104,
7054,
327,
11251,
16034,
12043,
33411,
44789,
34178,
705,
4,
12355,
4,
6,
5357,
44789,
34178,
705,
4,
26000,
1166,
12,
15255,
3213,
4,
6
] |
What seasons in series 7 did David E. Kelley write ? | SELECT COUNT("Season #") FROM table_25845 WHERE "Written by" = 'David E. Kelley' AND "Series #" = '7' | [
2061,
7028,
287,
2168,
767,
750,
3271,
412,
13,
34560,
3551,
5633,
46506,
327,
28270,
7203,
18960,
1303,
4943,
16034,
3084,
62,
25600,
2231,
33411,
366,
25354,
416,
1,
796,
705,
11006,
412,
13,
34560,
6,
5357,
366,
27996,
1303,
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
] | [
2061,
7028,
287,
2168,
767,
750,
3271,
412,
13,
34560,
3551,
5633,
46506,
327,
28270,
7203,
18960,
1303,
4943,
16034,
3084,
62,
25600,
2231,
33411,
366,
25354,
416,
1,
796,
705,
11006,
412,
13,
34560,
6,
5357,
366,
27996,
1303,
1,
796... |
What's the patent number when it was mutated from Yakata 7001 and a standard habit? | SELECT "Plant Patent Number" FROM table_61045 WHERE "Habit" = 'standard' AND "Mutated From" = 'yakata 7001' | [
2061,
338,
262,
12701,
1271,
618,
340,
373,
48865,
422,
30254,
1045,
767,
8298,
290,
257,
3210,
7947,
30,
46506,
366,
3646,
415,
34830,
7913,
1,
16034,
3084,
62,
39132,
2231,
33411,
366,
39,
29968,
1,
796,
705,
20307,
6,
5357,
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
] | [
2061,
338,
262,
12701,
1271,
618,
340,
373,
48865,
422,
30254,
1045,
767,
8298,
290,
257,
3210,
7947,
30,
46506,
366,
3646,
415,
34830,
7913,
1,
16034,
3084,
62,
39132,
2231,
33411,
366,
39,
29968,
1,
796,
705,
20307,
6,
5357,
366,
... |
What are the names of the tourist attractions that have parking or shopping as their feature details? | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON... | [
2061,
389,
262,
3891,
286,
262,
18473,
29156,
326,
423,
7647,
393,
9735,
355,
511,
3895,
3307,
30,
46506,
309,
16,
13,
5376,
16034,
9852,
396,
62,
8086,
37810,
7054,
309,
16,
32357,
1268,
9852,
396,
62,
8086,
7861,
62,
23595,
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... | [
2061,
389,
262,
3891,
286,
262,
18473,
29156,
326,
423,
7647,
393,
9735,
355,
511,
3895,
3307,
30,
46506,
309,
16,
13,
5376,
16034,
9852,
396,
62,
8086,
37810,
7054,
309,
16,
32357,
1268,
9852,
396,
62,
8086,
7861,
62,
23595,
7054,
... |
look for the number of living patients who are diagnosed with chordae tendinae rupture. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.short_title = "Chordae tendinae rupture" | [
5460,
329,
262,
1271,
286,
2877,
3871,
508,
389,
14641,
351,
25594,
3609,
4327,
1437,
68,
46836,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5460,
329,
262,
1271,
286,
2877,
3871,
508,
389,
14641,
351,
25594,
3609,
4327,
1437,
68,
46836,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... |
Tell me the number of patients with t5 fracture as their primary disease who have procedure icd9 code 3612. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "T5 FRACTURE" AND procedures.icd9_code = "3612" | [
24446,
502,
262,
1271,
286,
3871,
351,
256,
20,
31846,
355,
511,
4165,
4369,
508,
423,
8771,
14158,
67,
24,
2438,
4570,
1065,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
24446,
502,
262,
1271,
286,
3871,
351,
256,
20,
31846,
355,
511,
4165,
4369,
508,
423,
8771,
14158,
67,
24,
2438,
4570,
1065,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... |
What are the school colors for the college whose main campus is overland park? | SELECT "School Colors" FROM table_71007 WHERE "Main Campus Location" = 'overland park' | [
2061,
389,
262,
1524,
7577,
329,
262,
4152,
3025,
1388,
7611,
318,
625,
1044,
3952,
30,
46506,
366,
26130,
29792,
1,
16034,
3084,
62,
22,
44318,
33411,
366,
13383,
25005,
13397,
1,
796,
705,
2502,
1044,
3952,
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,
389,
262,
1524,
7577,
329,
262,
4152,
3025,
1388,
7611,
318,
625,
1044,
3952,
30,
46506,
366,
26130,
29792,
1,
16034,
3084,
62,
22,
44318,
33411,
366,
13383,
25005,
13397,
1,
796,
705,
2502,
1044,
3952,
6
] |
How many days had both mean humidity above 50 and mean visibility above 8? | SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8 | [
2437,
867,
1528,
550,
1111,
1612,
27716,
2029,
2026,
290,
1612,
20742,
2029,
807,
30,
46506,
327,
28270,
7,
28104,
16034,
6193,
33411,
1612,
62,
17047,
17995,
1875,
2026,
5357,
1612,
62,
4703,
2247,
62,
76,
2915,
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,
1,
1,
1
] | [
2437,
867,
1528,
550,
1111,
1612,
27716,
2029,
2026,
290,
1612,
20742,
2029,
807,
30,
46506,
327,
28270,
7,
28104,
16034,
6193,
33411,
1612,
62,
17047,
17995,
1875,
2026,
5357,
1612,
62,
4703,
2247,
62,
76,
2915,
1875,
807
] |
provide the number of patients whose ethnicity is black/haitian and primary disease is rash? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.diagnosis = "RASH" | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
4165,
4369,
318,
28509,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
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
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
4165,
4369,
318,
28509,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
... |
How many Away Losses have Home Losses larger than 3, and Wins smaller than 5? | SELECT COUNT("Away Losses") FROM table_46380 WHERE "Home Losses" > '3' AND "Wins" < '5' | [
2437,
867,
21986,
22014,
274,
423,
5995,
22014,
274,
4025,
621,
513,
11,
290,
24423,
4833,
621,
642,
30,
46506,
327,
28270,
7203,
32,
1014,
22014,
274,
4943,
16034,
3084,
62,
3510,
23734,
33411,
366,
16060,
22014,
274,
1,
1875,
705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21986,
22014,
274,
423,
5995,
22014,
274,
4025,
621,
513,
11,
290,
24423,
4833,
621,
642,
30,
46506,
327,
28270,
7203,
32,
1014,
22014,
274,
4943,
16034,
3084,
62,
3510,
23734,
33411,
366,
16060,
22014,
274,
1,
1875,
705,
1... |
what is the 1st round when team 1 is stade lavallois (d2)? | SELECT 1 AS st_round FROM table_name_56 WHERE team_1 = "stade lavallois (d2)" | [
10919,
318,
262,
352,
301,
2835,
618,
1074,
352,
318,
336,
671,
21606,
439,
10924,
357,
67,
17,
19427,
46506,
352,
7054,
336,
62,
744,
16034,
3084,
62,
3672,
62,
3980,
33411,
1074,
62,
16,
796,
366,
301,
671,
21606,
439,
10924,
357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
352,
301,
2835,
618,
1074,
352,
318,
336,
671,
21606,
439,
10924,
357,
67,
17,
19427,
46506,
352,
7054,
336,
62,
744,
16034,
3084,
62,
3672,
62,
3980,
33411,
1074,
62,
16,
796,
366,
301,
671,
21606,
439,
10924,
357,... |
What date was the episode that aired at 7:30 pm ET? | SELECT date FROM table_name_26 WHERE time = "7:30 pm et" | [
2061,
3128,
373,
262,
4471,
326,
18530,
379,
767,
25,
1270,
9114,
12152,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2075,
33411,
640,
796,
366,
22,
25,
1270,
9114,
2123,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
373,
262,
4471,
326,
18530,
379,
767,
25,
1270,
9114,
12152,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2075,
33411,
640,
796,
366,
22,
25,
1270,
9114,
2123,
1
] |
what was the name of the competition where the top position was earned ? | SELECT "competition" FROM table_203_646 WHERE "position" = 1 | [
10919,
373,
262,
1438,
286,
262,
5449,
810,
262,
1353,
2292,
373,
7366,
5633,
46506,
366,
5589,
15620,
1,
16034,
3084,
62,
22416,
62,
27720,
33411,
366,
9150,
1,
796,
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
] | [
10919,
373,
262,
1438,
286,
262,
5449,
810,
262,
1353,
2292,
373,
7366,
5633,
46506,
366,
5589,
15620,
1,
16034,
3084,
62,
22416,
62,
27720,
33411,
366,
9150,
1,
796,
352
] |
What was the manner of departure replaced by tita? | SELECT "Manner of departure" FROM table_35435 WHERE "Replaced by" = 'tita' | [
2061,
373,
262,
5642,
286,
12928,
6928,
416,
5259,
64,
30,
46506,
366,
5124,
1008,
286,
12928,
1,
16034,
3084,
62,
32182,
2327,
33411,
366,
3041,
21820,
416,
1,
796,
705,
83,
5350,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5642,
286,
12928,
6928,
416,
5259,
64,
30,
46506,
366,
5124,
1008,
286,
12928,
1,
16034,
3084,
62,
32182,
2327,
33411,
366,
3041,
21820,
416,
1,
796,
705,
83,
5350,
6
] |
What was the most recent year for Dean Van Lines? | SELECT MAX("Year") FROM table_70885 WHERE "Entrant" = 'dean van lines' | [
2061,
373,
262,
749,
2274,
614,
329,
11325,
6656,
26299,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
2154,
44230,
33411,
366,
14539,
5250,
1,
796,
705,
2934,
272,
5719,
3951,
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,
373,
262,
749,
2274,
614,
329,
11325,
6656,
26299,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
2154,
44230,
33411,
366,
14539,
5250,
1,
796,
705,
2934,
272,
5719,
3951,
6
] |
Who had the highest points when the series was 4-2? | SELECT high_points FROM table_name_22 WHERE series = "4-2" | [
8241,
550,
262,
4511,
2173,
618,
262,
2168,
373,
604,
12,
17,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
3672,
62,
1828,
33411,
2168,
796,
366,
19,
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
] | [
8241,
550,
262,
4511,
2173,
618,
262,
2168,
373,
604,
12,
17,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
3672,
62,
1828,
33411,
2168,
796,
366,
19,
12,
17,
1
] |
provide the number of patients whose diagnoses short title is resp prob after brth nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Resp prob after brth NEC" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
1217,
1861,
706,
865,
400,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
1790,
3670,
318,
1217,
1861,
706,
865,
400,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... |
Number of Instances of 'What have you tried' Comments per user. | SELECT C.UserId AS "user_link", COUNT(C.UserId) AS "Number of Instances", MAX(C.CreationDate) AS "Most recent submission" FROM Comments AS C WHERE UPPER(REPLACE(Text, ' ', '')) LIKE 'vote' GROUP BY C.UserId ORDER BY COUNT(C.UserId) DESC | [
15057,
286,
2262,
1817,
286,
705,
2061,
423,
345,
3088,
6,
19502,
583,
2836,
13,
46506,
327,
13,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
34,
13,
12982,
7390,
8,
7054,
366,
15057,
286,
2262,
1817,
1600,
25882,
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... | [
15057,
286,
2262,
1817,
286,
705,
2061,
423,
345,
3088,
6,
19502,
583,
2836,
13,
46506,
327,
13,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
34,
13,
12982,
7390,
8,
7054,
366,
15057,
286,
2262,
1817,
1600,
25882,
7,... |
CS majors require which LHC prerequisites ? | SELECT DISTINCT course.department, course.name, course.number FROM program_course INNER JOIN course ON program_course.course_id = course.course_id WHERE course.department = 'LHC' | [
7902,
26353,
2421,
543,
406,
16045,
662,
34075,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1430,
62,
17319,
3268,
21479,
32357,
1268,
1781,
6177,
1430,
62,
17319,
13,
17319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7902,
26353,
2421,
543,
406,
16045,
662,
34075,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1430,
62,
17319,
3268,
21479,
32357,
1268,
1781,
6177,
1430,
62,
17319,
13,
17319... |
adam lyth has the lowest strike rate listed , who has the next lowest strike rate listed ? | SELECT "player" FROM table_203_226 WHERE "player" <> 'adam lyth' ORDER BY "strike rate" LIMIT 1 | [
324,
321,
300,
5272,
468,
262,
9016,
5587,
2494,
5610,
837,
508,
468,
262,
1306,
9016,
5587,
2494,
5610,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
24909,
33411,
366,
7829,
1,
1279,
29,
705,
324,
321,
300,
5272,
6,
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,
1,
1
] | [
324,
321,
300,
5272,
468,
262,
9016,
5587,
2494,
5610,
837,
508,
468,
262,
1306,
9016,
5587,
2494,
5610,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
24909,
33411,
366,
7829,
1,
1279,
29,
705,
324,
321,
300,
5272,
6,
38678... |
Who was the candidate when the result - % was 0.4%? | SELECT "Candidate" FROM table_73862 WHERE "Result - %" = '0.4%' | [
8241,
373,
262,
4540,
618,
262,
1255,
532,
4064,
373,
657,
13,
19,
4,
30,
46506,
366,
41572,
20540,
1,
16034,
3084,
62,
22,
2548,
5237,
33411,
366,
23004,
532,
4064,
1,
796,
705,
15,
13,
19,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
4540,
618,
262,
1255,
532,
4064,
373,
657,
13,
19,
4,
30,
46506,
366,
41572,
20540,
1,
16034,
3084,
62,
22,
2548,
5237,
33411,
366,
23004,
532,
4064,
1,
796,
705,
15,
13,
19,
4,
6
] |
TOP 500 users from Iran. | SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Dandong%' ORDER BY Reputation DESC LIMIT 500 | [
35222,
5323,
2985,
422,
4068,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
18987,
33411,
13397,
34178,
705,
4,
35,
392,
506,
4,
6,
38678,
11050,
1432,
7094,
22196,
34,
27564,
2043,
5323
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35222,
5323,
2985,
422,
4068,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
18987,
33411,
13397,
34178,
705,
4,
35,
392,
506,
4,
6,
38678,
11050,
1432,
7094,
22196,
34,
27564,
2043,
5323
] |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the average of salary bin hire_date by time. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
6158,
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... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
... |
how many contestants are 20 years old ? | SELECT COUNT("contestant") FROM table_204_144 WHERE "age" = 20 | [
4919,
867,
37851,
389,
1160,
812,
1468,
5633,
46506,
327,
28270,
7203,
3642,
395,
415,
4943,
16034,
3084,
62,
18638,
62,
18444,
33411,
366,
496,
1,
796,
1160
] | [
1,
1,
1,
1,
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,
37851,
389,
1160,
812,
1468,
5633,
46506,
327,
28270,
7203,
3642,
395,
415,
4943,
16034,
3084,
62,
18638,
62,
18444,
33411,
366,
496,
1,
796,
1160
] |
How many televotes are there where there is 4 jury votes? | SELECT "Televotes" FROM table_23289 WHERE "Jury votes" = '4' | [
2437,
867,
22884,
6421,
389,
612,
810,
612,
318,
604,
9002,
5690,
30,
46506,
366,
6767,
2768,
6421,
1,
16034,
3084,
62,
1954,
27693,
33411,
366,
41,
1601,
5690,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
22884,
6421,
389,
612,
810,
612,
318,
604,
9002,
5690,
30,
46506,
366,
6767,
2768,
6421,
1,
16034,
3084,
62,
1954,
27693,
33411,
366,
41,
1601,
5690,
1,
796,
705,
19,
6
] |
for patients who have received percu abdominal drainage this year, what are the top four most common lab tests that followed during the same month? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | [
1640,
3871,
508,
423,
2722,
583,
27399,
32692,
37664,
428,
614,
11,
644,
389,
262,
1353,
1440,
749,
2219,
2248,
5254,
326,
3940,
1141,
262,
976,
1227,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1640,
3871,
508,
423,
2722,
583,
27399,
32692,
37664,
428,
614,
11,
644,
389,
262,
1353,
1440,
749,
2219,
2248,
5254,
326,
3940,
1141,
262,
976,
1227,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
2... |
List all the log entry descriptions and count them using a bar chart, show in descending by the X-axis. | SELECT log_entry_description, COUNT(log_entry_description) FROM Problem_Log GROUP BY log_entry_description ORDER BY log_entry_description DESC | [
8053,
477,
262,
2604,
5726,
16969,
290,
954,
606,
1262,
257,
2318,
8262,
11,
905,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
2604,
62,
13000,
62,
11213,
11,
327,
28270,
7,
6404,
62,
13000,
62,
11213,
8,
16034,
20647,
62,
1118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
5726,
16969,
290,
954,
606,
1262,
257,
2318,
8262,
11,
905,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
2604,
62,
13000,
62,
11213,
11,
327,
28270,
7,
6404,
62,
13000,
62,
11213,
8,
16034,
20647,
62,
1118... |
What team finished 35 in a ford before 1997? | SELECT team FROM table_name_90 WHERE year < 1997 AND manufacturer = "ford" AND finish = "35" | [
2061,
1074,
5201,
3439,
287,
257,
329,
67,
878,
8309,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3829,
33411,
614,
1279,
8309,
5357,
11554,
796,
366,
3841,
1,
5357,
5461,
796,
366,
2327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5201,
3439,
287,
257,
329,
67,
878,
8309,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3829,
33411,
614,
1279,
8309,
5357,
11554,
796,
366,
3841,
1,
5357,
5461,
796,
366,
2327,
1
] |
List the name for storms and the number of affected regions for each storm. | SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | [
8053,
262,
1438,
329,
20228,
290,
262,
1271,
286,
5676,
7652,
329,
1123,
6388,
13,
46506,
309,
16,
13,
3672,
11,
327,
28270,
7,
28104,
16034,
6388,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
7054,
309,
17,
6177,
309,
16,
13,
12135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
1438,
329,
20228,
290,
262,
1271,
286,
5676,
7652,
329,
1123,
6388,
13,
46506,
309,
16,
13,
3672,
11,
327,
28270,
7,
28104,
16034,
6388,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
7054,
309,
17,
6177,
309,
16,
13,
12135... |
Which constellation has hd 75732 as a destignation HD? | SELECT constellation FROM table_name_38 WHERE designation_hd = "hd 75732" | [
13828,
38712,
468,
289,
67,
767,
3553,
2624,
355,
257,
2244,
570,
341,
5572,
30,
46506,
38712,
16034,
3084,
62,
3672,
62,
2548,
33411,
22566,
62,
31298,
796,
366,
31298,
767,
3553,
2624,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38712,
468,
289,
67,
767,
3553,
2624,
355,
257,
2244,
570,
341,
5572,
30,
46506,
38712,
16034,
3084,
62,
3672,
62,
2548,
33411,
22566,
62,
31298,
796,
366,
31298,
767,
3553,
2624,
1
] |
In what episode was segment D ned Can Corn? | SELECT MAX(episode) FROM table_15187735_1 WHERE segment_d = "ned Can Corn" | [
818,
644,
4471,
373,
10618,
360,
299,
276,
1680,
11424,
30,
46506,
25882,
7,
38668,
8,
16034,
3084,
62,
1314,
1507,
3324,
2327,
62,
16,
33411,
10618,
62,
67,
796,
366,
2817,
1680,
11424,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
373,
10618,
360,
299,
276,
1680,
11424,
30,
46506,
25882,
7,
38668,
8,
16034,
3084,
62,
1314,
1507,
3324,
2327,
62,
16,
33411,
10618,
62,
67,
796,
366,
2817,
1680,
11424,
1
] |
Who was the opponent in the game played after Week 4 on October 15, 2000? | SELECT "Opponent" FROM table_7506 WHERE "Week" > '4' AND "Date" = 'october 15, 2000' | [
8241,
373,
262,
6125,
287,
262,
983,
2826,
706,
6119,
604,
319,
3267,
1315,
11,
4751,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
15426,
21,
33411,
366,
20916,
1,
1875,
705,
19,
6,
5357,
366,
10430,
1,
796,
705,
38441,
2023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
6125,
287,
262,
983,
2826,
706,
6119,
604,
319,
3267,
1315,
11,
4751,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
15426,
21,
33411,
366,
20916,
1,
1875,
705,
19,
6,
5357,
366,
10430,
1,
796,
705,
38441,
2023,
... |
what year was kelly marie 's first single released | SELECT MIN("release date") FROM table_204_742 | [
10919,
614,
373,
885,
12810,
1667,
494,
705,
82,
717,
2060,
2716,
46506,
20625,
7203,
20979,
3128,
4943,
16034,
3084,
62,
18638,
62,
22,
3682
] | [
1,
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,
885,
12810,
1667,
494,
705,
82,
717,
2060,
2716,
46506,
20625,
7203,
20979,
3128,
4943,
16034,
3084,
62,
18638,
62,
22,
3682
] |
How many institutions are located in wilmore, kentucky and private | SELECT MAX(founded) FROM table_10581768_2 WHERE type = "Private" AND location = "Wilmore, Kentucky" | [
2437,
867,
6712,
389,
5140,
287,
39716,
3549,
11,
479,
298,
5309,
290,
2839,
46506,
25882,
7,
27060,
8,
16034,
3084,
62,
940,
3365,
1558,
3104,
62,
17,
33411,
2099,
796,
366,
29067,
1,
5357,
4067,
796,
366,
22327,
3549,
11,
11867,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6712,
389,
5140,
287,
39716,
3549,
11,
479,
298,
5309,
290,
2839,
46506,
25882,
7,
27060,
8,
16034,
3084,
62,
940,
3365,
1558,
3104,
62,
17,
33411,
2099,
796,
366,
29067,
1,
5357,
4067,
796,
366,
22327,
3549,
11,
11867,
1... |
What is the rank of the qual 141.471? | SELECT "Rank" FROM table_71921 WHERE "Qual" = '141.471' | [
2061,
318,
262,
4279,
286,
262,
4140,
25500,
13,
38339,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
22,
1129,
2481,
33411,
366,
46181,
1,
796,
705,
23756,
13,
38339,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4279,
286,
262,
4140,
25500,
13,
38339,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
22,
1129,
2481,
33411,
366,
46181,
1,
796,
705,
23756,
13,
38339,
6
] |
How many years entered service when there were 13 locomotives? | SELECT COUNT(entered_service) FROM table_name_89 WHERE locomotive = "13" | [
2437,
867,
812,
5982,
2139,
618,
612,
547,
1511,
33334,
313,
1083,
30,
46506,
327,
28270,
7,
298,
1068,
62,
15271,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
33334,
19138,
796,
366,
1485,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
812,
5982,
2139,
618,
612,
547,
1511,
33334,
313,
1083,
30,
46506,
327,
28270,
7,
298,
1068,
62,
15271,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
33334,
19138,
796,
366,
1485,
1
] |
What is the location of the Durfee Mill No. 1, built before 1872 ? | SELECT "Location" FROM table_64818 WHERE "Built" < '1872' AND "Name" = 'durfee mill no. 1' | [
2061,
318,
262,
4067,
286,
262,
11164,
39071,
9212,
1400,
13,
352,
11,
3170,
878,
1248,
4761,
5633,
46506,
366,
14749,
1,
16034,
3084,
62,
34287,
1507,
33411,
366,
39582,
1,
1279,
705,
1507,
4761,
6,
5357,
366,
5376,
1,
796,
705,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4067,
286,
262,
11164,
39071,
9212,
1400,
13,
352,
11,
3170,
878,
1248,
4761,
5633,
46506,
366,
14749,
1,
16034,
3084,
62,
34287,
1507,
33411,
366,
39582,
1,
1279,
705,
1507,
4761,
6,
5357,
366,
5376,
1,
796,
705,
67... |
Find the average age and number of male students (with sex M) from each city. | SELECT COUNT(*), AVG(age), city_code FROM student WHERE sex = 'M' GROUP BY city_code | [
16742,
262,
2811,
2479,
290,
1271,
286,
4257,
2444,
357,
4480,
1714,
337,
8,
422,
1123,
1748,
13,
46506,
327,
28270,
46491,
828,
35224,
7,
496,
828,
1748,
62,
8189,
16034,
3710,
33411,
1714,
796,
705,
44,
6,
44441,
11050,
1748,
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
] | [
16742,
262,
2811,
2479,
290,
1271,
286,
4257,
2444,
357,
4480,
1714,
337,
8,
422,
1123,
1748,
13,
46506,
327,
28270,
46491,
828,
35224,
7,
496,
828,
1748,
62,
8189,
16034,
3710,
33411,
1714,
796,
705,
44,
6,
44441,
11050,
1748,
62,
... |
Which Class has a Year(s) of Manufacture of 1899? | SELECT "Class" FROM table_78836 WHERE "Year(s) of Manufacture" = '1899' | [
13828,
5016,
468,
257,
6280,
7,
82,
8,
286,
17858,
495,
286,
47465,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
22,
3459,
2623,
33411,
366,
17688,
7,
82,
8,
286,
17858,
495,
1,
796,
705,
1507,
2079,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5016,
468,
257,
6280,
7,
82,
8,
286,
17858,
495,
286,
47465,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
22,
3459,
2623,
33411,
366,
17688,
7,
82,
8,
286,
17858,
495,
1,
796,
705,
1507,
2079,
6
] |
Show budget type codes and the number of documents in each budget type. | SELECT budget_type_code, COUNT(*) FROM Documents_with_expenses GROUP BY budget_type_code | [
15307,
4466,
2099,
12416,
290,
262,
1271,
286,
4963,
287,
1123,
4466,
2099,
13,
46506,
4466,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
33267,
62,
4480,
62,
11201,
4541,
44441,
11050,
4466,
62,
4906,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
4466,
2099,
12416,
290,
262,
1271,
286,
4963,
287,
1123,
4466,
2099,
13,
46506,
4466,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
33267,
62,
4480,
62,
11201,
4541,
44441,
11050,
4466,
62,
4906,
62,
8189
] |
On what date did an away team score 22.17 (149)? | SELECT "Date" FROM table_52063 WHERE "Away team score" = '22.17 (149)' | [
2202,
644,
3128,
750,
281,
1497,
1074,
4776,
2534,
13,
1558,
357,
19442,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
31211,
5066,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1828,
13,
1558,
357,
19442,
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
] | [
2202,
644,
3128,
750,
281,
1497,
1074,
4776,
2534,
13,
1558,
357,
19442,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
31211,
5066,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1828,
13,
1558,
357,
19442,
33047
] |
What is the score for Ky Laffoon? | SELECT "Score" FROM table_69864 WHERE "Player" = 'ky laffoon' | [
2061,
318,
262,
4776,
329,
11118,
406,
2001,
2049,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
39357,
2414,
33411,
366,
14140,
1,
796,
705,
2584,
300,
2001,
2049,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
329,
11118,
406,
2001,
2049,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
39357,
2414,
33411,
366,
14140,
1,
796,
705,
2584,
300,
2001,
2049,
6
] |
when was the first time that patient 002-64535 was prescribed with potassium chloride and aspirin at the same time since 09/2105? | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'potassium chloride' AND patient.uniquepid = '002-64535' AND STRFTIME('%y-%m', medication.drugstarttime) >= '2105-09') AS ... | [
12518,
373,
262,
717,
640,
326,
5827,
3571,
17,
12,
49259,
2327,
373,
14798,
351,
33156,
44921,
290,
49550,
379,
262,
976,
640,
1201,
7769,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
9688,
2435,
16034,
357,
46506,
5827,
13,
403,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
717,
640,
326,
5827,
3571,
17,
12,
49259,
2327,
373,
14798,
351,
33156,
44921,
290,
49550,
379,
262,
976,
640,
1201,
7769,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
9688,
2435,
16034,
357,
46506,
5827,
13,
403,
... |
When first elected was 2006, who was the delegate? | SELECT delegate FROM table_name_99 WHERE first_elected = 2006 | [
2215,
717,
7018,
373,
4793,
11,
508,
373,
262,
23191,
30,
46506,
23191,
16034,
3084,
62,
3672,
62,
2079,
33411,
717,
62,
28604,
796,
4793
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
717,
7018,
373,
4793,
11,
508,
373,
262,
23191,
30,
46506,
23191,
16034,
3084,
62,
3672,
62,
2079,
33411,
717,
62,
28604,
796,
4793
] |
what is the total number of drivers on the list ? | SELECT COUNT("driver") FROM table_204_743 | [
10919,
318,
262,
2472,
1271,
286,
6643,
319,
262,
1351,
5633,
46506,
327,
28270,
7203,
26230,
4943,
16034,
3084,
62,
18638,
62,
22,
3559
] | [
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,
6643,
319,
262,
1351,
5633,
46506,
327,
28270,
7203,
26230,
4943,
16034,
3084,
62,
18638,
62,
22,
3559
] |
with api level 3, what is the code name? | SELECT code_name FROM table_name_12 WHERE api_level = 3 | [
4480,
40391,
1241,
513,
11,
644,
318,
262,
2438,
1438,
30,
46506,
2438,
62,
3672,
16034,
3084,
62,
3672,
62,
1065,
33411,
40391,
62,
5715,
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
] | [
4480,
40391,
1241,
513,
11,
644,
318,
262,
2438,
1438,
30,
46506,
2438,
62,
3672,
16034,
3084,
62,
3672,
62,
1065,
33411,
40391,
62,
5715,
796,
513
] |
Which female artist has an album named elephant? | SELECT "Female" FROM table_75172 WHERE "Album" = 'elephant' | [
13828,
4048,
6802,
468,
281,
5062,
3706,
20950,
30,
46506,
366,
27273,
1,
16034,
3084,
62,
2425,
23628,
33411,
366,
2348,
4435,
1,
796,
705,
11129,
33959,
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,
4048,
6802,
468,
281,
5062,
3706,
20950,
30,
46506,
366,
27273,
1,
16034,
3084,
62,
2425,
23628,
33411,
366,
2348,
4435,
1,
796,
705,
11129,
33959,
6
] |
Who's the incumbent in Florida 6? | SELECT "Incumbent" FROM table_18141 WHERE "District" = 'Florida 6' | [
8241,
338,
262,
23526,
287,
4744,
718,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
23756,
33411,
366,
44857,
1,
796,
705,
31135,
718,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
338,
262,
23526,
287,
4744,
718,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
23756,
33411,
366,
44857,
1,
796,
705,
31135,
718,
6
] |
What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3? | SELECT AVG("Total") FROM table_69385 WHERE "Name" = 'simon gillett category:articles with hcards' AND "Other" > '3' | [
2061,
318,
262,
2811,
7472,
11,
618,
262,
6530,
318,
11288,
402,
8270,
926,
21743,
25,
8001,
2983,
351,
289,
34,
1371,
11,
290,
618,
262,
3819,
318,
3744,
621,
513,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
3388,
27203,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
7472,
11,
618,
262,
6530,
318,
11288,
402,
8270,
926,
21743,
25,
8001,
2983,
351,
289,
34,
1371,
11,
290,
618,
262,
3819,
318,
3744,
621,
513,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
3388,
27203,
... |
Which Venue is on 2004-07-24? | SELECT venue FROM table_name_68 WHERE date = "2004-07-24" | [
13828,
9932,
518,
318,
319,
5472,
12,
2998,
12,
1731,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3104,
33411,
3128,
796,
366,
15724,
12,
2998,
12,
1731,
1
] | [
1,
1,
1,
1,
1,
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,
9932,
518,
318,
319,
5472,
12,
2998,
12,
1731,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3104,
33411,
3128,
796,
366,
15724,
12,
2998,
12,
1731,
1
] |
Show the number of companies in each headquarter with a bar chart, and list by the Headquarters from high to low. | SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters ORDER BY Headquarters DESC | [
15307,
262,
1271,
286,
2706,
287,
1123,
1182,
24385,
351,
257,
2318,
8262,
11,
290,
1351,
416,
262,
32193,
422,
1029,
284,
1877,
13,
46506,
32193,
11,
327,
28270,
7,
13847,
8230,
8,
16034,
1664,
44441,
11050,
32193,
38678,
11050,
32193,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
2706,
287,
1123,
1182,
24385,
351,
257,
2318,
8262,
11,
290,
1351,
416,
262,
32193,
422,
1029,
284,
1877,
13,
46506,
32193,
11,
327,
28270,
7,
13847,
8230,
8,
16034,
1664,
44441,
11050,
32193,
38678,
11050,
32193,... |
count the number of patients whose admission type is emergency and procedure long title is left heart cardiac catheterization? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Left heart cardiac catheterization" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
8771,
890,
3670,
318,
1364,
2612,
26077,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
8771,
890,
3670,
318,
1364,
2612,
26077,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Who won Womens Singles in the year that Ma Lin won Mens Singles? | SELECT "Womens Singles" FROM table_74230 WHERE "Mens Singles" = 'Ma Lin' | [
8241,
1839,
370,
296,
641,
5573,
829,
287,
262,
614,
326,
6669,
5164,
1839,
43103,
5573,
829,
30,
46506,
366,
54,
296,
641,
5573,
829,
1,
16034,
3084,
62,
22,
3682,
1270,
33411,
366,
44,
641,
5573,
829,
1,
796,
705,
21467,
5164,
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
] | [
8241,
1839,
370,
296,
641,
5573,
829,
287,
262,
614,
326,
6669,
5164,
1839,
43103,
5573,
829,
30,
46506,
366,
54,
296,
641,
5573,
829,
1,
16034,
3084,
62,
22,
3682,
1270,
33411,
366,
44,
641,
5573,
829,
1,
796,
705,
21467,
5164,
6... |
Show the outcome code of mailshots along with the number of mailshots in each outcome code with a pie chart. | SELECT outcome_code, COUNT(*) FROM Mailshot_Customers GROUP BY outcome_code | [
15307,
262,
8055,
2438,
286,
6920,
20910,
1863,
351,
262,
1271,
286,
6920,
20910,
287,
1123,
8055,
2438,
351,
257,
2508,
8262,
13,
46506,
8055,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11099,
9442,
62,
15022,
364,
44441,
11050,
8055,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8055,
2438,
286,
6920,
20910,
1863,
351,
262,
1271,
286,
6920,
20910,
287,
1123,
8055,
2438,
351,
257,
2508,
8262,
13,
46506,
8055,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11099,
9442,
62,
15022,
364,
44441,
11050,
8055,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a line chart about the change of manager_id over hire_date . | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
1627,
8262,
546,
262,
1487,
286,
4706,
62,
312,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
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... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
1627,
8262,
546,
262,
1487,
286,
4706,
62,
312,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
... |
what is marital status and primary disease of subject name james cepeda? | SELECT demographic.marital_status, demographic.diagnosis FROM demographic WHERE demographic.name = "James Cepeda" | [
10919,
318,
29555,
3722,
290,
4165,
4369,
286,
2426,
1438,
474,
1047,
269,
538,
18082,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
14731,
327,
538,
18082,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
290,
4165,
4369,
286,
2426,
1438,
474,
1047,
269,
538,
18082,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
14731,
327,
538,
18082,
1
] |
What was the away team score at Hawthorn? | SELECT "Away team score" FROM table_33240 WHERE "Home team" = 'hawthorn' | [
2061,
373,
262,
1497,
1074,
4776,
379,
41457,
1211,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2091,
16102,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
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,
373,
262,
1497,
1074,
4776,
379,
41457,
1211,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2091,
16102,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
6
] |
how many patients were admitted before the year 2172 with a lab test fibrin degradation products? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2172" AND lab.label = "Fibrin Degradation Products" | [
4919,
867,
3871,
547,
6848,
878,
262,
614,
362,
23628,
351,
257,
2248,
1332,
277,
2889,
259,
27486,
3186,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
6848,
878,
262,
614,
362,
23628,
351,
257,
2248,
1332,
277,
2889,
259,
27486,
3186,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177... |
How much Lost has an Against larger than 19, and a Drawn smaller than 1? | SELECT SUM("Lost") FROM table_37538 WHERE "Against" > '19' AND "Drawn" < '1' | [
2437,
881,
9164,
468,
281,
12914,
4025,
621,
678,
11,
290,
257,
50061,
4833,
621,
352,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
22318,
2548,
33411,
366,
39276,
1,
1875,
705,
1129,
6,
5357,
366,
35,
5791,
1,
1279,
705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
881,
9164,
468,
281,
12914,
4025,
621,
678,
11,
290,
257,
50061,
4833,
621,
352,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
22318,
2548,
33411,
366,
39276,
1,
1875,
705,
1129,
6,
5357,
366,
35,
5791,
1,
1279,
705,
1... |
Who had the high assists for game number 38? | SELECT high_assists FROM table_27734286_7 WHERE game = 38 | [
8241,
550,
262,
1029,
13648,
329,
983,
1271,
4353,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
27019,
2682,
27033,
62,
22,
33411,
983,
796,
4353
] | [
1,
1,
1,
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,
550,
262,
1029,
13648,
329,
983,
1271,
4353,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
27019,
2682,
27033,
62,
22,
33411,
983,
796,
4353
] |
WHAT IS THE PLACE WITH PLAYER mark o'meara? | SELECT place FROM table_name_78 WHERE player = "mark o'meara" | [
32971,
3180,
3336,
9297,
11598,
13315,
28180,
1137,
1317,
267,
1101,
451,
64,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3695,
33411,
2137,
796,
366,
4102,
267,
1101,
451,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
3180,
3336,
9297,
11598,
13315,
28180,
1137,
1317,
267,
1101,
451,
64,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3695,
33411,
2137,
796,
366,
4102,
267,
1101,
451,
64,
1
] |
tell me what are the top five most common intakes? | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5 | [
33331,
502,
644,
389,
262,
1353,
1936,
749,
2219,
42219,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
644,
389,
262,
1353,
1936,
749,
2219,
42219,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
... |
what is the number of patients whose lab test item id is 51457 and with lab test abnormal status delta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51457" AND lab.flag = "delta" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2248,
1332,
2378,
4686,
318,
642,
1415,
3553,
290,
351,
2248,
1332,
18801,
3722,
25979,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2248,
1332,
2378,
4686,
318,
642,
1415,
3553,
290,
351,
2248,
1332,
18801,
3722,
25979,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... |
When was the final loss of the club last won in 2001 and has a total of 3 wins? | SELECT "Last final lost" FROM table_56536 WHERE "Wins" = '3' AND "Last win" = '2001' | [
2215,
373,
262,
2457,
2994,
286,
262,
3430,
938,
1839,
287,
5878,
290,
468,
257,
2472,
286,
513,
7864,
30,
46506,
366,
5956,
2457,
2626,
1,
16034,
3084,
62,
47372,
2623,
33411,
366,
54,
1040,
1,
796,
705,
18,
6,
5357,
366,
5956,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
262,
2457,
2994,
286,
262,
3430,
938,
1839,
287,
5878,
290,
468,
257,
2472,
286,
513,
7864,
30,
46506,
366,
5956,
2457,
2626,
1,
16034,
3084,
62,
47372,
2623,
33411,
366,
54,
1040,
1,
796,
705,
18,
6,
5357,
366,
5956,
1... |
What is the 2012 value with 1r in 2010 and 2r in 2006? | SELECT 2012 FROM table_name_13 WHERE 2010 = "1r" AND 2006 = "2r" | [
2061,
318,
262,
2321,
1988,
351,
352,
81,
287,
3050,
290,
362,
81,
287,
4793,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
1485,
33411,
3050,
796,
366,
16,
81,
1,
5357,
4793,
796,
366,
17,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2321,
1988,
351,
352,
81,
287,
3050,
290,
362,
81,
287,
4793,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
1485,
33411,
3050,
796,
366,
16,
81,
1,
5357,
4793,
796,
366,
17,
81,
1
] |
Show employee_id from each email, and display from high to low by the total number. | SELECT EMAIL, EMPLOYEE_ID FROM employees ORDER BY EMPLOYEE_ID DESC | [
15307,
6538,
62,
312,
422,
1123,
3053,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
2472,
1271,
13,
46506,
412,
5673,
4146,
11,
17228,
6489,
21414,
6500,
62,
2389,
16034,
4409,
38678,
11050,
17228,
6489,
21414,
6500,
62,
2389,
22196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6538,
62,
312,
422,
1123,
3053,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
2472,
1271,
13,
46506,
412,
5673,
4146,
11,
17228,
6489,
21414,
6500,
62,
2389,
16034,
4409,
38678,
11050,
17228,
6489,
21414,
6500,
62,
2389,
22196,
... |
What was E.J. 'Dutch' Harrison's lowest To Par? | SELECT MIN("To par") FROM table_70516 WHERE "Player" = 'e.j. "dutch" harrison' | [
2061,
373,
412,
13,
41,
13,
705,
49717,
6,
17281,
338,
9016,
1675,
2547,
30,
46506,
20625,
7203,
2514,
1582,
4943,
16034,
3084,
62,
34801,
1433,
33411,
366,
14140,
1,
796,
705,
68,
13,
73,
13,
366,
67,
7140,
1,
289,
22472,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
412,
13,
41,
13,
705,
49717,
6,
17281,
338,
9016,
1675,
2547,
30,
46506,
20625,
7203,
2514,
1582,
4943,
16034,
3084,
62,
34801,
1433,
33411,
366,
14140,
1,
796,
705,
68,
13,
73,
13,
366,
67,
7140,
1,
289,
22472,
6
] |
Name the opponent for jul 31 and score of w 5-1 | SELECT "Opponent" FROM table_15641 WHERE "Date" = 'jul 31' AND "Score" = 'w 5-1' | [
5376,
262,
6125,
329,
474,
377,
3261,
290,
4776,
286,
266,
642,
12,
16,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1314,
42759,
33411,
366,
10430,
1,
796,
705,
73,
377,
3261,
6,
5357,
366,
26595,
1,
796,
705,
86,
642,
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
] | [
5376,
262,
6125,
329,
474,
377,
3261,
290,
4776,
286,
266,
642,
12,
16,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1314,
42759,
33411,
366,
10430,
1,
796,
705,
73,
377,
3261,
6,
5357,
366,
26595,
1,
796,
705,
86,
642,
12,
16,
... |
Amount of answers on the site. | SELECT COUNT(Id) FROM Users | [
31264,
286,
7429,
319,
262,
2524,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
18987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
31264,
286,
7429,
319,
262,
2524,
13,
46506,
327,
28270,
7,
7390,
8,
16034,
18987
] |
is patient 15945's arterial bp [diastolic] last measured on the last icu visit greater than first measured on the last icu 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 = 15945) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | [
271,
5827,
26422,
2231,
338,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
938,
8630,
319,
262,
938,
14158,
84,
3187,
3744,
621,
717,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
26422,
2231,
338,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
938,
8630,
319,
262,
938,
14158,
84,
3187,
3744,
621,
717,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
1... |
Which Points have a Game smaller than 60, and a Score of 2 0, and a February larger than 1? | SELECT AVG(points) FROM table_name_99 WHERE game < 60 AND score = "2–0" AND february > 1 | [
13828,
11045,
423,
257,
3776,
4833,
621,
3126,
11,
290,
257,
15178,
286,
362,
657,
11,
290,
257,
3945,
4025,
621,
352,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
983,
1279,
3126,
5357,
4776,
796,
366,
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
] | [
13828,
11045,
423,
257,
3776,
4833,
621,
3126,
11,
290,
257,
15178,
286,
362,
657,
11,
290,
257,
3945,
4025,
621,
352,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
983,
1279,
3126,
5357,
4776,
796,
366,
17,... |
How many heats does Julia Wilkinson have? | SELECT COUNT("Heat") FROM table_13899 WHERE "Name" = 'julia wilkinson' | [
2437,
867,
37876,
857,
22300,
46463,
423,
30,
46506,
327,
28270,
7203,
39596,
4943,
16034,
3084,
62,
20107,
2079,
33411,
366,
5376,
1,
796,
705,
73,
43640,
39716,
26030,
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,
37876,
857,
22300,
46463,
423,
30,
46506,
327,
28270,
7203,
39596,
4943,
16034,
3084,
62,
20107,
2079,
33411,
366,
5376,
1,
796,
705,
73,
43640,
39716,
26030,
6
] |
Which is the email of the party that has used the services the most number of times? | SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
318,
262,
3053,
286,
262,
2151,
326,
468,
973,
262,
2594,
262,
749,
1271,
286,
1661,
30,
46506,
256,
16,
13,
10608,
62,
12888,
16034,
4671,
7054,
256,
16,
32357,
1268,
2151,
62,
30416,
7054,
256,
17,
6177,
256,
16,
13,
10608,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
3053,
286,
262,
2151,
326,
468,
973,
262,
2594,
262,
749,
1271,
286,
1661,
30,
46506,
256,
16,
13,
10608,
62,
12888,
16034,
4671,
7054,
256,
16,
32357,
1268,
2151,
62,
30416,
7054,
256,
17,
6177,
256,
16,
13,
10608,... |
What college's team is the Saskatchewan Roughriders? | SELECT college FROM table_10812403_4 WHERE cfl_team = "Saskatchewan Roughriders" | [
2061,
4152,
338,
1074,
318,
262,
31346,
29949,
81,
4157,
30,
46506,
4152,
16034,
3084,
62,
15711,
1065,
31552,
62,
19,
33411,
269,
2704,
62,
15097,
796,
366,
50,
2093,
29736,
29949,
81,
4157,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4152,
338,
1074,
318,
262,
31346,
29949,
81,
4157,
30,
46506,
4152,
16034,
3084,
62,
15711,
1065,
31552,
62,
19,
33411,
269,
2704,
62,
15097,
796,
366,
50,
2093,
29736,
29949,
81,
4157,
1
] |
what is the fare on 11 7 going one way from SAN FRANCISCO to OAKLAND | 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, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | [
10919,
318,
262,
14505,
319,
1367,
767,
1016,
530,
835,
422,
37376,
8782,
20940,
1797,
8220,
284,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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... | [
10919,
318,
262,
14505,
319,
1367,
767,
1016,
530,
835,
422,
37376,
8782,
20940,
1797,
8220,
284,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
6... |
npm new questions with accepted answers by year. | SELECT CAST(TIME_TO_STR(CreationDate, '%Y/%m/%d') AS TEXT(10)) AS datepart, COUNT(*) AS "new_stackoverflow_q_today" FROM Posts GROUP BY CAST(TIME_TO_STR(CreationDate, '%Y/%m/%d') AS TEXT(10)) ORDER BY datepart DESC | [
77,
4426,
649,
2683,
351,
6292,
7429,
416,
614,
13,
46506,
327,
11262,
7,
34694,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
56,
14,
4,
76,
14,
4,
67,
11537,
7054,
40383,
7,
940,
4008,
7054,
3128,
3911,
11,
327,
2827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
77,
4426,
649,
2683,
351,
6292,
7429,
416,
614,
13,
46506,
327,
11262,
7,
34694,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
56,
14,
4,
76,
14,
4,
67,
11537,
7054,
40383,
7,
940,
4008,
7054,
3128,
3911,
11,
327,
2827... |
since 1409 days ago, has patient 25814's arterial bp [systolic] been ever greater than 113.0? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25814)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [syst... | [
20777,
1478,
2931,
1528,
2084,
11,
468,
5827,
37528,
1415,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
587,
1683,
3744,
621,
17318,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
1478,
2931,
1528,
2084,
11,
468,
5827,
37528,
1415,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
587,
1683,
3744,
621,
17318,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13... |
Can you provide me with a list of classes being taught by Dr. Kathleen Wisser next semester ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Kathleen Wisser%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.o... | [
6090,
345,
2148,
502,
351,
257,
1351,
286,
6097,
852,
7817,
416,
1583,
13,
31275,
370,
747,
263,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2148,
502,
351,
257,
1351,
286,
6097,
852,
7817,
416,
1583,
13,
31275,
370,
747,
263,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
... |
Find the id of courses which are registered or attended by student whose id is 121? | SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121 | [
16742,
262,
4686,
286,
10902,
543,
389,
6823,
393,
9141,
416,
3710,
3025,
4686,
318,
20416,
30,
46506,
1781,
62,
312,
16034,
3710,
62,
17319,
62,
2301,
396,
9143,
33411,
3710,
62,
312,
796,
20416,
4725,
2849,
33493,
1781,
62,
312,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4686,
286,
10902,
543,
389,
6823,
393,
9141,
416,
3710,
3025,
4686,
318,
20416,
30,
46506,
1781,
62,
312,
16034,
3710,
62,
17319,
62,
2301,
396,
9143,
33411,
3710,
62,
312,
796,
20416,
4725,
2849,
33493,
1781,
62,
312,
160... |
What is the total number of churches named H yanger Kyrkje? | SELECT COUNT("Sub-Parish (Sogn)") FROM table_1773 WHERE "Church Name" = 'Høyanger kyrkje' | [
2061,
318,
262,
2472,
1271,
286,
14422,
3706,
367,
331,
2564,
42748,
74,
18015,
30,
46506,
327,
28270,
7203,
7004,
12,
10044,
680,
357,
50,
2360,
8,
4943,
16034,
3084,
62,
1558,
4790,
33411,
366,
46686,
6530,
1,
796,
705,
39,
24172,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14422,
3706,
367,
331,
2564,
42748,
74,
18015,
30,
46506,
327,
28270,
7203,
7004,
12,
10044,
680,
357,
50,
2360,
8,
4943,
16034,
3084,
62,
1558,
4790,
33411,
366,
46686,
6530,
1,
796,
705,
39,
24172,
... |
Find the names of bank branches that have provided a loan to any customer whose credit score is below 100. | SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 | [
16742,
262,
3891,
286,
3331,
13737,
326,
423,
2810,
257,
8063,
284,
597,
6491,
3025,
3884,
4776,
318,
2174,
1802,
13,
46506,
309,
17,
13,
65,
3672,
16034,
8063,
7054,
309,
16,
32357,
1268,
3331,
7054,
309,
17,
6177,
309,
16,
13,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
286,
3331,
13737,
326,
423,
2810,
257,
8063,
284,
597,
6491,
3025,
3884,
4776,
318,
2174,
1802,
13,
46506,
309,
17,
13,
65,
3672,
16034,
8063,
7054,
309,
16,
32357,
1268,
3331,
7054,
309,
17,
6177,
309,
16,
13,
167... |
In which season was Jeanne d'Arc (Bamako) the runner-up? | SELECT season FROM table_12444503_1 WHERE runner_up = "Jeanne d'Arc (Bamako)" | [
818,
543,
1622,
373,
48202,
288,
6,
24021,
357,
33,
321,
25496,
8,
262,
17490,
12,
929,
30,
46506,
1622,
16034,
3084,
62,
1065,
2598,
17885,
18,
62,
16,
33411,
17490,
62,
929,
796,
366,
38248,
710,
288,
6,
24021,
357,
33,
321,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
543,
1622,
373,
48202,
288,
6,
24021,
357,
33,
321,
25496,
8,
262,
17490,
12,
929,
30,
46506,
1622,
16034,
3084,
62,
1065,
2598,
17885,
18,
62,
16,
33411,
17490,
62,
929,
796,
366,
38248,
710,
288,
6,
24021,
357,
33,
321,
254... |
Calculate the number of patients who had icd9 code 35981 and treated with base drug. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "35981" AND prescriptions.drug_type = "BASE" | [
9771,
3129,
378,
262,
1271,
286,
3871,
508,
550,
14158,
67,
24,
2438,
41934,
6659,
290,
5716,
351,
2779,
2563,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9771,
3129,
378,
262,
1271,
286,
3871,
508,
550,
14158,
67,
24,
2438,
41934,
6659,
290,
5716,
351,
2779,
2563,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567... |
Name the loss for 48-37 | SELECT "Loss" FROM table_14959 WHERE "Record" = '48-37' | [
5376,
262,
2994,
329,
4764,
12,
2718,
46506,
366,
43,
793,
1,
16034,
3084,
62,
19442,
3270,
33411,
366,
23739,
1,
796,
705,
2780,
12,
2718,
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
] | [
5376,
262,
2994,
329,
4764,
12,
2718,
46506,
366,
43,
793,
1,
16034,
3084,
62,
19442,
3270,
33411,
366,
23739,
1,
796,
705,
2780,
12,
2718,
6
] |
What were the dates administered when the lead margin was larger than 14 and the poll source was Research 2000? | SELECT dates_administered FROM table_name_72 WHERE lead_margin > 14 AND poll_source = "research 2000" | [
2061,
547,
262,
9667,
17169,
618,
262,
1085,
10330,
373,
4025,
621,
1478,
290,
262,
3278,
2723,
373,
4992,
4751,
30,
46506,
9667,
62,
39081,
1068,
16034,
3084,
62,
3672,
62,
4761,
33411,
1085,
62,
36153,
1875,
1478,
5357,
3278,
62,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9667,
17169,
618,
262,
1085,
10330,
373,
4025,
621,
1478,
290,
262,
3278,
2723,
373,
4992,
4751,
30,
46506,
9667,
62,
39081,
1068,
16034,
3084,
62,
3672,
62,
4761,
33411,
1085,
62,
36153,
1875,
1478,
5357,
3278,
62,
10... |
Name the sum of population 1.1.2008 for t nsberg and population 1.1.2006 more than 45.447 | SELECT SUM(population_112008) FROM table_name_62 WHERE urban_area = "tønsberg" AND population_112006 > 45.447 | [
5376,
262,
2160,
286,
3265,
352,
13,
16,
13,
11528,
329,
256,
36545,
3900,
290,
3265,
352,
13,
16,
13,
13330,
517,
621,
4153,
13,
34825,
46506,
35683,
7,
39748,
62,
14686,
25257,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
7876,
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
] | [
5376,
262,
2160,
286,
3265,
352,
13,
16,
13,
11528,
329,
256,
36545,
3900,
290,
3265,
352,
13,
16,
13,
13330,
517,
621,
4153,
13,
34825,
46506,
35683,
7,
39748,
62,
14686,
25257,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
7876,
62,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.