instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What team won after 2008? | SELECT team FROM table_name_9 WHERE season > 2008 | [
2061,
1074,
1839,
706,
3648,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
24,
33411,
1622,
1875,
3648
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
1839,
706,
3648,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
24,
33411,
1622,
1875,
3648
] |
Who won the most recent favorite rap/hip-hop new artist at the American music awards? | SELECT MAX("Year") FROM table_57890 WHERE "Association" = 'american music awards' AND "Category" = 'favorite rap/hip-hop new artist' | [
8241,
1839,
262,
749,
2274,
4004,
4095,
14,
1056,
12,
8548,
649,
6802,
379,
262,
1605,
2647,
13304,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
38907,
3829,
33411,
366,
8021,
41003,
1,
796,
705,
2382,
7490,
2647,
13304,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
2274,
4004,
4095,
14,
1056,
12,
8548,
649,
6802,
379,
262,
1605,
2647,
13304,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
38907,
3829,
33411,
366,
8021,
41003,
1,
796,
705,
2382,
7490,
2647,
13304,
6,
5... |
What was the result of the game with more than 12 goals at Pasadena? | SELECT "Result" FROM table_41356 WHERE "Goal" > '12' AND "Venue" = 'pasadena' | [
2061,
373,
262,
1255,
286,
262,
983,
351,
517,
621,
1105,
4661,
379,
41010,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
44103,
3980,
33411,
366,
49045,
1,
1875,
705,
1065,
6,
5357,
366,
37522,
518,
1,
796,
705,
44429,
38047,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
983,
351,
517,
621,
1105,
4661,
379,
41010,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
44103,
3980,
33411,
366,
49045,
1,
1875,
705,
1065,
6,
5357,
366,
37522,
518,
1,
796,
705,
44429,
38047,
6
] |
Users Answer and Question Votes. See the total up and down votes for answers and questions for a given user. | SELECT (CASE WHEN p.PostTypeId = 1 THEN 'Question' WHEN p.PostTypeId = 2 THEN 'Answer' END) AS "post_type", (CASE WHEN v.VoteTypeId = 2 THEN 'Up Vote' WHEN v.VoteTypeId = 3 THEN 'Down Vote' END) AS "vote_type", COUNT(*) AS Votes FROM Votes AS v JOIN Posts AS p ON v.PostId = p.Id WHERE v.VoteTypeId IN (2, 3) AND v.UserI... | [
14490,
23998,
290,
18233,
39584,
13,
4091,
262,
2472,
510,
290,
866,
5690,
329,
7429,
290,
2683,
329,
257,
1813,
2836,
13,
46506,
357,
34,
11159,
42099,
279,
13,
6307,
6030,
7390,
796,
352,
42243,
705,
24361,
6,
42099,
279,
13,
6307,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
23998,
290,
18233,
39584,
13,
4091,
262,
2472,
510,
290,
866,
5690,
329,
7429,
290,
2683,
329,
257,
1813,
2836,
13,
46506,
357,
34,
11159,
42099,
279,
13,
6307,
6030,
7390,
796,
352,
42243,
705,
24361,
6,
42099,
279,
13,
6307,
... |
users and their post-type details. | SELECT COUNT(DISTINCT Users.Id) FROM Users, Posts WHERE Posts.OwnerUserId = Users.Id AND Posts.PostTypeId = 2 | [
18417,
290,
511,
1281,
12,
4906,
3307,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
18987,
13,
7390,
8,
16034,
18987,
11,
12043,
33411,
12043,
13,
42419,
12982,
7390,
796,
18987,
13,
7390,
5357,
12043,
13,
6307,
6030,
7390,
796,
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
] | [
18417,
290,
511,
1281,
12,
4906,
3307,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
18987,
13,
7390,
8,
16034,
18987,
11,
12043,
33411,
12043,
13,
42419,
12982,
7390,
796,
18987,
13,
7390,
5357,
12043,
13,
6307,
6030,
7390,
796,
36... |
What is the first name and GPA of every student that has a GPA lower than average. | SELECT STU_FNAME, SUM(STU_GPA) FROM STUDENT WHERE STU_GPA < (SELECT AVG(STU_GPA) FROM STUDENT) GROUP BY STU_FNAME | [
2061,
318,
262,
717,
1438,
290,
45283,
286,
790,
3710,
326,
468,
257,
45283,
2793,
621,
2811,
13,
46506,
3563,
52,
62,
37,
20608,
11,
35683,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
3525,
33411,
3563,
52,
62,
38,
4537,
1279,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
290,
45283,
286,
790,
3710,
326,
468,
257,
45283,
2793,
621,
2811,
13,
46506,
3563,
52,
62,
37,
20608,
11,
35683,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
3525,
33411,
3563,
52,
62,
38,
4537,
1279,
35... |
Name the number of high rebounds for april 21 | SELECT COUNT(high_rebounds) FROM table_17621978_11 WHERE date = "April 21" | [
5376,
262,
1271,
286,
1029,
18841,
329,
46593,
346,
2310,
46506,
327,
28270,
7,
8929,
62,
34806,
3733,
8,
16034,
3084,
62,
1558,
5237,
37950,
62,
1157,
33411,
3128,
796,
366,
16784,
2310,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1029,
18841,
329,
46593,
346,
2310,
46506,
327,
28270,
7,
8929,
62,
34806,
3733,
8,
16034,
3084,
62,
1558,
5237,
37950,
62,
1157,
33411,
3128,
796,
366,
16784,
2310,
1
] |
give the admission type and primary disease of subject id 18372. | SELECT demographic.admission_type, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "18372" | [
26535,
262,
13938,
2099,
290,
4165,
4369,
286,
2426,
4686,
1248,
36720,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
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
] | [
26535,
262,
13938,
2099,
290,
4165,
4369,
286,
2426,
4686,
1248,
36720,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... |
Where is the club that was founded in 1946 located that has an unknown coach? | SELECT location FROM table_name_45 WHERE coach = "unknown" AND founded = 1946 | [
8496,
318,
262,
3430,
326,
373,
9393,
287,
22717,
5140,
326,
468,
281,
6439,
3985,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2231,
33411,
3985,
796,
366,
34680,
1,
5357,
9393,
796,
22717
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
262,
3430,
326,
373,
9393,
287,
22717,
5140,
326,
468,
281,
6439,
3985,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2231,
33411,
3985,
796,
366,
34680,
1,
5357,
9393,
796,
22717
] |
How many deaths did eseta cause? | SELECT deaths FROM table_name_34 WHERE name = "eseta" | [
2437,
867,
7040,
750,
1658,
17167,
2728,
30,
46506,
7040,
16034,
3084,
62,
3672,
62,
2682,
33411,
1438,
796,
366,
274,
17167,
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,
7040,
750,
1658,
17167,
2728,
30,
46506,
7040,
16034,
3084,
62,
3672,
62,
2682,
33411,
1438,
796,
366,
274,
17167,
1
] |
recent papers by subhasis chaudhuri | SELECT DISTINCT keyphrase.keyphrasename, paper.year FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname = 'subhasis chaudhuri' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.authorid = author.authorid AND writes.paperid = paper.pape... | [
49921,
9473,
416,
850,
10134,
271,
442,
3885,
71,
9900,
46506,
360,
8808,
1268,
4177,
1994,
34675,
13,
2539,
746,
8847,
12453,
11,
3348,
13,
1941,
16034,
1772,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
11,
6797,
33411,
1772,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
49921,
9473,
416,
850,
10134,
271,
442,
3885,
71,
9900,
46506,
360,
8808,
1268,
4177,
1994,
34675,
13,
2539,
746,
8847,
12453,
11,
3348,
13,
1941,
16034,
1772,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
11,
6797,
33411,
1772,
1... |
How many distinct transaction types are used in the transactions? | SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS | [
2437,
867,
7310,
8611,
3858,
389,
973,
287,
262,
8945,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
8611,
62,
4906,
62,
8189,
8,
16034,
44069,
10659,
11053
] | [
1,
1,
1,
1,
1,
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,
7310,
8611,
3858,
389,
973,
287,
262,
8945,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
8611,
62,
4906,
62,
8189,
8,
16034,
44069,
10659,
11053
] |
What is the name of member in charge of greatest number of events? | SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
1438,
286,
2888,
287,
3877,
286,
6000,
1271,
286,
2995,
30,
46506,
309,
16,
13,
19522,
62,
3672,
16034,
2888,
7054,
309,
16,
32357,
1268,
2151,
62,
31534,
7054,
309,
17,
6177,
309,
16,
13,
19522,
62,
312,
796,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2888,
287,
3877,
286,
6000,
1271,
286,
2995,
30,
46506,
309,
16,
13,
19522,
62,
3672,
16034,
2888,
7054,
309,
16,
32357,
1268,
2151,
62,
31534,
7054,
309,
17,
6177,
309,
16,
13,
19522,
62,
312,
796,
309,
... |
For Stellenbosch, which has a population larger than 155,733, what is the average area? | SELECT AVG(area__km_2__) FROM table_name_38 WHERE name = "stellenbosch" AND population__2011_ > 155 OFFSET 733 | [
1890,
520,
40635,
39565,
354,
11,
543,
468,
257,
3265,
4025,
621,
20708,
11,
49995,
11,
644,
318,
262,
2811,
1989,
30,
46506,
35224,
7,
20337,
834,
13276,
62,
17,
834,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
1438,
796,
366,
301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
520,
40635,
39565,
354,
11,
543,
468,
257,
3265,
4025,
621,
20708,
11,
49995,
11,
644,
318,
262,
2811,
1989,
30,
46506,
35224,
7,
20337,
834,
13276,
62,
17,
834,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
1438,
796,
366,
301,
... |
how many patients whose admission type is elective have got the lab test named sodium, urine done? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.label = "Sodium, Urine" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
423,
1392,
262,
2248,
1332,
3706,
21072,
11,
18922,
1760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
423,
1392,
262,
2248,
1332,
3706,
21072,
11,
18922,
1760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... |
What identifier has 100000 watts as the power? | SELECT identifier FROM table_name_98 WHERE power = "100000 watts" | [
2061,
27421,
468,
1802,
830,
36416,
355,
262,
1176,
30,
46506,
27421,
16034,
3084,
62,
3672,
62,
4089,
33411,
1176,
796,
366,
3064,
830,
36416,
1
] | [
1,
1,
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,
27421,
468,
1802,
830,
36416,
355,
262,
1176,
30,
46506,
27421,
16034,
3084,
62,
3672,
62,
4089,
33411,
1176,
796,
366,
3064,
830,
36416,
1
] |
What is the earliest numbered episode of the season? | SELECT MIN("No. in season") FROM table_74107 | [
2061,
318,
262,
14555,
25840,
4471,
286,
262,
1622,
30,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
4524,
15982
] | [
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,
14555,
25840,
4471,
286,
262,
1622,
30,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
4524,
15982
] |
Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf? | SELECT year_born__age_ FROM table_name_41 WHERE current_club = "sporting al riyadi beirut" AND position = "pf" | [
13828,
6280,
4642,
357,
23396,
8,
468,
257,
9236,
6289,
286,
17702,
435,
374,
7745,
9189,
307,
343,
315,
11,
290,
257,
23158,
286,
279,
69,
30,
46506,
614,
62,
6286,
834,
496,
62,
16034,
3084,
62,
3672,
62,
3901,
33411,
1459,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6280,
4642,
357,
23396,
8,
468,
257,
9236,
6289,
286,
17702,
435,
374,
7745,
9189,
307,
343,
315,
11,
290,
257,
23158,
286,
279,
69,
30,
46506,
614,
62,
6286,
834,
496,
62,
16034,
3084,
62,
3672,
62,
3901,
33411,
1459,
62,
... |
What date did the International Gold Cup take place? | SELECT date FROM table_name_69 WHERE name = "international gold cup" | [
2061,
3128,
750,
262,
4037,
3561,
5454,
1011,
1295,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3388,
33411,
1438,
796,
366,
45609,
3869,
6508,
1
] | [
1,
1,
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,
750,
262,
4037,
3561,
5454,
1011,
1295,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3388,
33411,
1438,
796,
366,
45609,
3869,
6508,
1
] |
What is the streak for game 2? | SELECT streak FROM table_name_6 WHERE game = "2" | [
2061,
318,
262,
15113,
329,
983,
362,
30,
46506,
15113,
16034,
3084,
62,
3672,
62,
21,
33411,
983,
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
] | [
2061,
318,
262,
15113,
329,
983,
362,
30,
46506,
15113,
16034,
3084,
62,
3672,
62,
21,
33411,
983,
796,
366,
17,
1
] |
what is the number of patients whose primary disease is chest pain and with procedure opn mitral valvuloplasty? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "CHEST PAIN" AND procedures.short_title = "Opn mitral valvuloplasty" | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
351,
8771,
1034,
77,
10255,
1373,
1188,
85,
377,
20106,
7833,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
351,
8771,
1034,
77,
10255,
1373,
1188,
85,
377,
20106,
7833,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
what is maximum age of patients whose death status is 0 and age is greater than or equal to 64? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.age >= "64" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
1918,
3722,
318,
657,
290,
2479,
318,
3744,
621,
393,
4961,
284,
5598,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
1,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
5415,
2479,
286,
3871,
3025,
1918,
3722,
318,
657,
290,
2479,
318,
3744,
621,
393,
4961,
284,
5598,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
1,
535... |
What is the draw record (%) total for clubs with more than 3 wins with 10 matches and more than 1 draw? | SELECT COUNT("Record (%) [draw = 0.5 wins]") FROM table_69868 WHERE "Wins" > '3' AND "Matches" = '10' AND "Draws" > '1' | [
2061,
318,
262,
3197,
1700,
11509,
2472,
329,
9784,
351,
517,
621,
513,
7864,
351,
838,
7466,
290,
517,
621,
352,
3197,
30,
46506,
327,
28270,
7203,
23739,
11509,
685,
19334,
796,
657,
13,
20,
7864,
60,
4943,
16034,
3084,
62,
39357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3197,
1700,
11509,
2472,
329,
9784,
351,
517,
621,
513,
7864,
351,
838,
7466,
290,
517,
621,
352,
3197,
30,
46506,
327,
28270,
7203,
23739,
11509,
685,
19334,
796,
657,
13,
20,
7864,
60,
4943,
16034,
3084,
62,
39357,
... |
Which venue hosted the Los Angeles Rams as an opponent? | SELECT "Venue" FROM table_75174 WHERE "Opponent" = 'los angeles rams' | [
13828,
14359,
12007,
262,
5401,
5652,
16077,
355,
281,
6125,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2425,
22985,
33411,
366,
27524,
3471,
1,
796,
705,
33280,
18304,
274,
374,
4105,
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
] | [
13828,
14359,
12007,
262,
5401,
5652,
16077,
355,
281,
6125,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2425,
22985,
33411,
366,
27524,
3471,
1,
796,
705,
33280,
18304,
274,
374,
4105,
6
] |
Create a bar chart showing the number of date claim made across date claim made, rank from high to low by the y-axis. | SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Settlements ORDER BY COUNT(Date_Claim_Made) DESC | [
16447,
257,
2318,
8262,
4478,
262,
1271,
286,
3128,
1624,
925,
1973,
3128,
1624,
925,
11,
4279,
422,
1029,
284,
1877,
416,
262,
331,
12,
22704,
13,
46506,
7536,
62,
44819,
62,
24616,
11,
327,
28270,
7,
10430,
62,
44819,
62,
24616,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2318,
8262,
4478,
262,
1271,
286,
3128,
1624,
925,
1973,
3128,
1624,
925,
11,
4279,
422,
1029,
284,
1877,
416,
262,
331,
12,
22704,
13,
46506,
7536,
62,
44819,
62,
24616,
11,
327,
28270,
7,
10430,
62,
44819,
62,
24616,
8... |
what is the to par when the player is jack nicklaus? | SELECT "To par" FROM table_9168 WHERE "Player" = 'jack nicklaus' | [
10919,
318,
262,
284,
1582,
618,
262,
2137,
318,
14509,
14428,
38024,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
24,
14656,
33411,
366,
14140,
1,
796,
705,
19650,
14428,
38024,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
284,
1582,
618,
262,
2137,
318,
14509,
14428,
38024,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
24,
14656,
33411,
366,
14140,
1,
796,
705,
19650,
14428,
38024,
6
] |
what is the average urea nitrogen, urine value of patient 12775 on the current hospital visit? | SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen, urine') | [
10919,
318,
262,
2811,
334,
21468,
23417,
11,
18922,
1988,
286,
5827,
18112,
2425,
319,
262,
1459,
4436,
3187,
30,
46506,
35224,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
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,
2811,
334,
21468,
23417,
11,
18922,
1988,
286,
5827,
18112,
2425,
319,
262,
1459,
4436,
3187,
30,
46506,
35224,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
... |
JanitorTags: tagged Apache but not httpd. | SELECT * FROM PostTags WHERE PostId = 258443 | [
12128,
2072,
36142,
25,
30509,
24843,
475,
407,
2638,
67,
13,
46506,
1635,
16034,
2947,
36142,
33411,
2947,
7390,
796,
37528,
34938
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12128,
2072,
36142,
25,
30509,
24843,
475,
407,
2638,
67,
13,
46506,
1635,
16034,
2947,
36142,
33411,
2947,
7390,
796,
37528,
34938
] |
Name the points classification for quick step-innergetic with stage 7 | SELECT "Points Classification" FROM table_67465 WHERE "Team Classification" = 'quick step-innergetic' AND "Stage" = '7' | [
5376,
262,
2173,
17923,
329,
2068,
2239,
12,
5083,
24321,
351,
3800,
767,
46506,
366,
40710,
40984,
1,
16034,
3084,
62,
3134,
42018,
33411,
366,
15592,
40984,
1,
796,
705,
24209,
2239,
12,
5083,
24321,
6,
5357,
366,
29391,
1,
796,
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
] | [
5376,
262,
2173,
17923,
329,
2068,
2239,
12,
5083,
24321,
351,
3800,
767,
46506,
366,
40710,
40984,
1,
16034,
3084,
62,
3134,
42018,
33411,
366,
15592,
40984,
1,
796,
705,
24209,
2239,
12,
5083,
24321,
6,
5357,
366,
29391,
1,
796,
705... |
Who held the title of Ruler? | SELECT name FROM table_name_31 WHERE title = "ruler" | [
8241,
2714,
262,
3670,
286,
31808,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3132,
33411,
3670,
796,
366,
81,
18173,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
2714,
262,
3670,
286,
31808,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3132,
33411,
3670,
796,
366,
81,
18173,
1
] |
What was the home score for the Home team Melbourne? | SELECT "Home team score" FROM table_10710 WHERE "Home team" = 'melbourne' | [
2061,
373,
262,
1363,
4776,
329,
262,
5995,
1074,
14819,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
15982,
940,
33411,
366,
16060,
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
] | [
2061,
373,
262,
1363,
4776,
329,
262,
5995,
1074,
14819,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
15982,
940,
33411,
366,
16060,
1074,
1,
796,
705,
17694,
12544,
6
] |
How many tries where points is 77? | SELECT "Tries for" FROM table_18964 WHERE "Points" = '77' | [
2437,
867,
8404,
810,
2173,
318,
8541,
30,
46506,
366,
51,
1678,
329,
1,
16034,
3084,
62,
23362,
2414,
33411,
366,
40710,
1,
796,
705,
3324,
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
] | [
2437,
867,
8404,
810,
2173,
318,
8541,
30,
46506,
366,
51,
1678,
329,
1,
16034,
3084,
62,
23362,
2414,
33411,
366,
40710,
1,
796,
705,
3324,
6
] |
Which episode had celebrities Nick Hewer and Saira Khan in them? | SELECT episode FROM table_24725951_1 WHERE celebrities = "Nick Hewer and Saira Khan" | [
13828,
4471,
550,
21305,
8047,
30446,
263,
290,
311,
958,
64,
11356,
287,
606,
30,
46506,
4471,
16034,
3084,
62,
23753,
1495,
50119,
62,
16,
33411,
21305,
796,
366,
23609,
30446,
263,
290,
311,
958,
64,
11356,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
550,
21305,
8047,
30446,
263,
290,
311,
958,
64,
11356,
287,
606,
30,
46506,
4471,
16034,
3084,
62,
23753,
1495,
50119,
62,
16,
33411,
21305,
796,
366,
23609,
30446,
263,
290,
311,
958,
64,
11356,
1
] |
Name the least dismissals for 4 rank | SELECT MAX("Dismissals") FROM table_25975 WHERE "Rank" = '4' | [
5376,
262,
1551,
6735,
874,
329,
604,
4279,
46506,
25882,
7203,
35,
1042,
747,
874,
4943,
16034,
3084,
62,
25191,
2425,
33411,
366,
27520,
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
] | [
5376,
262,
1551,
6735,
874,
329,
604,
4279,
46506,
25882,
7203,
35,
1042,
747,
874,
4943,
16034,
3084,
62,
25191,
2425,
33411,
366,
27520,
1,
796,
705,
19,
6
] |
What kind of Surface has a Score of 6 4, 0 6, 6 2? | SELECT "Surface" FROM table_43447 WHERE "Score" = '6–4, 0–6, 6–2' | [
2061,
1611,
286,
20321,
468,
257,
15178,
286,
718,
604,
11,
657,
718,
11,
718,
362,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
3559,
34825,
33411,
366,
26595,
1,
796,
705,
21,
1906,
19,
11,
657,
1906,
21,
11,
718,
1906,
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
] | [
2061,
1611,
286,
20321,
468,
257,
15178,
286,
718,
604,
11,
657,
718,
11,
718,
362,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
3559,
34825,
33411,
366,
26595,
1,
796,
705,
21,
1906,
19,
11,
657,
1906,
21,
11,
718,
1906,
17,
... |
has there been since 03/2103 any organism found in patient 9299's last stool microbiology test? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9299) AND microbiologyevents.spec_type_desc = 'stool' AND NOT microbiologyevents.org_name IS NULL AND STRFTIME('%y-%m', microbiologyevents.charttime) >= '2103-03' ORDE... | [
10134,
612,
587,
1201,
7643,
14,
17,
15197,
597,
26433,
1043,
287,
5827,
860,
22579,
338,
938,
38753,
24559,
1435,
1332,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
612,
587,
1201,
7643,
14,
17,
15197,
597,
26433,
1043,
287,
5827,
860,
22579,
338,
938,
38753,
24559,
1435,
1332,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62... |
Distribution of the number of comments per post. | SELECT SUM(CommentCount) AS "number_of_comments", PostTypeId FROM Posts WHERE (PostTypeId = 1 OR PostTypeId = 2) GROUP BY PostTypeId | [
20344,
3890,
286,
262,
1271,
286,
3651,
583,
1281,
13,
46506,
35683,
7,
21357,
12332,
8,
7054,
366,
17618,
62,
1659,
62,
15944,
1600,
2947,
6030,
7390,
16034,
12043,
33411,
357,
6307,
6030,
7390,
796,
352,
6375,
2947,
6030,
7390,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20344,
3890,
286,
262,
1271,
286,
3651,
583,
1281,
13,
46506,
35683,
7,
21357,
12332,
8,
7054,
366,
17618,
62,
1659,
62,
15944,
1600,
2947,
6030,
7390,
16034,
12043,
33411,
357,
6307,
6030,
7390,
796,
352,
6375,
2947,
6030,
7390,
796,
... |
Questions by Tag and Minimum Asker Reputation. Show all questions with the specified tag where the question's asker has at least the specified reputation | SELECT Posts.Id AS "post_link", Posts.CreationDate, Users.Id AS "user_link", Users.Reputation FROM Posts, Users WHERE Posts.OwnerUserId = Users.Id AND Users.Reputation >= '##MinReputation##' ORDER BY CreationDate DESC | [
35741,
416,
17467,
290,
26265,
1081,
6122,
1432,
7094,
13,
5438,
477,
2683,
351,
262,
7368,
7621,
810,
262,
1808,
338,
1265,
263,
468,
379,
1551,
262,
7368,
8507,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
416,
17467,
290,
26265,
1081,
6122,
1432,
7094,
13,
5438,
477,
2683,
351,
262,
7368,
7621,
810,
262,
1808,
338,
1265,
263,
468,
379,
1551,
262,
7368,
8507,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
124... |
how many patients whose admission type is emergency and ethnicity is american indian/alaska native? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
6334,
290,
26289,
318,
45630,
272,
773,
666,
14,
282,
8480,
6868,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
13938,
2099,
318,
6334,
290,
26289,
318,
45630,
272,
773,
666,
14,
282,
8480,
6868,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
... |
what is average age of patients whose admission type is emergency and primary disease is posterior communicating aneurysm/sda? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" | [
10919,
318,
2811,
2479,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
4165,
4369,
318,
34319,
22889,
281,
23365,
893,
76,
14,
82,
6814,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
2479,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
4165,
4369,
318,
34319,
22889,
281,
23365,
893,
76,
14,
82,
6814,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
... |
what ground transportation is available in BOSTON | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'BOSTON' AND ground_service.city_code = city.city_code | [
10919,
2323,
9358,
318,
1695,
287,
347,
10892,
1340,
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,
8202,
41924,
6,
5357,
2323,
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
] | [
10919,
2323,
9358,
318,
1695,
287,
347,
10892,
1340,
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,
8202,
41924,
6,
5357,
2323,
62,... |
Name the Venue which has a Score of 8 1? | SELECT venue FROM table_name_61 WHERE score = "8 – 1" | [
5376,
262,
9932,
518,
543,
468,
257,
15178,
286,
807,
352,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
5333,
33411,
4776,
796,
366,
23,
784,
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
] | [
5376,
262,
9932,
518,
543,
468,
257,
15178,
286,
807,
352,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
5333,
33411,
4776,
796,
366,
23,
784,
352,
1
] |
What is the average round of the s position player from the college of Mississippi and has an overall less than 214? | SELECT AVG("Round") FROM table_46360 WHERE "Position" = 's' AND "College" = 'mississippi' AND "Overall" < '214' | [
2061,
318,
262,
2811,
2835,
286,
262,
264,
2292,
2137,
422,
262,
4152,
286,
13797,
290,
468,
281,
4045,
1342,
621,
28277,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
3510,
15277,
33411,
366,
26545,
1,
796,
705,
82,
6,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
2835,
286,
262,
264,
2292,
2137,
422,
262,
4152,
286,
13797,
290,
468,
281,
4045,
1342,
621,
28277,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
3510,
15277,
33411,
366,
26545,
1,
796,
705,
82,
6,
5357,
... |
what procedure did patient 017-74343 the previous year receive for the first time? | SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-74343')) AND DATETIME(treatment.treatmenttime, 'start of year... | [
10919,
8771,
750,
5827,
5534,
22,
12,
4524,
32118,
262,
2180,
614,
3328,
329,
262,
717,
640,
30,
46506,
3513,
13,
42487,
3672,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
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,
8771,
750,
5827,
5534,
22,
12,
4524,
32118,
262,
2180,
614,
3328,
329,
262,
717,
640,
30,
46506,
3513,
13,
42487,
3672,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,... |
Which Year has a Venue of bydgoszcz, poland, and an Event of junior team? | SELECT AVG("Year") FROM table_64738 WHERE "Venue" = 'bydgoszcz, poland' AND "Event" = 'junior team' | [
13828,
6280,
468,
257,
9932,
518,
286,
416,
67,
70,
418,
89,
26691,
11,
755,
392,
11,
290,
281,
8558,
286,
13430,
1074,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
33981,
2548,
33411,
366,
37522,
518,
1,
796,
705,
1525,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6280,
468,
257,
9932,
518,
286,
416,
67,
70,
418,
89,
26691,
11,
755,
392,
11,
290,
281,
8558,
286,
13430,
1074,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
33981,
2548,
33411,
366,
37522,
518,
1,
796,
705,
1525,
67... |
What are the main industries of the companies without gas stations and what are the companies? | SELECT company, main_industry FROM company WHERE NOT company_id IN (SELECT company_id FROM station_company) | [
2061,
389,
262,
1388,
11798,
286,
262,
2706,
1231,
3623,
8985,
290,
644,
389,
262,
2706,
30,
46506,
1664,
11,
1388,
62,
23213,
563,
16034,
1664,
33411,
5626,
1664,
62,
312,
3268,
357,
46506,
1664,
62,
312,
16034,
4429,
62,
39722,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1388,
11798,
286,
262,
2706,
1231,
3623,
8985,
290,
644,
389,
262,
2706,
30,
46506,
1664,
11,
1388,
62,
23213,
563,
16034,
1664,
33411,
5626,
1664,
62,
312,
3268,
357,
46506,
1664,
62,
312,
16034,
4429,
62,
39722,
8
] |
what are the different role codes for users, and how many users have each? | SELECT role_code, COUNT(*) FROM Users GROUP BY role_code | [
10919,
389,
262,
1180,
2597,
12416,
329,
2985,
11,
290,
703,
867,
2985,
423,
1123,
30,
46506,
2597,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
18987,
44441,
11050,
2597,
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
] | [
10919,
389,
262,
1180,
2597,
12416,
329,
2985,
11,
290,
703,
867,
2985,
423,
1123,
30,
46506,
2597,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
18987,
44441,
11050,
2597,
62,
8189
] |
Name the score for san diego | SELECT score FROM table_23944006_4 WHERE championship = "San Diego" | [
5376,
262,
4776,
329,
5336,
4656,
2188,
46506,
4776,
16034,
3084,
62,
23516,
2598,
28041,
62,
19,
33411,
12184,
796,
366,
15017,
9500,
1
] | [
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,
4776,
329,
5336,
4656,
2188,
46506,
4776,
16034,
3084,
62,
23516,
2598,
28041,
62,
19,
33411,
12184,
796,
366,
15017,
9500,
1
] |
What is Conference Titles, when Win % is .667? | SELECT "Conference Titles" FROM table_44563 WHERE "Win %" = '.667' | [
2061,
318,
8785,
7659,
829,
11,
618,
7178,
4064,
318,
764,
28933,
30,
46506,
366,
3103,
4288,
7659,
829,
1,
16034,
3084,
62,
43489,
5066,
33411,
366,
16643,
4064,
1,
796,
45302,
28933,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
8785,
7659,
829,
11,
618,
7178,
4064,
318,
764,
28933,
30,
46506,
366,
3103,
4288,
7659,
829,
1,
16034,
3084,
62,
43489,
5066,
33411,
366,
16643,
4064,
1,
796,
45302,
28933,
6
] |
Which opponent plays against the Pohang Steelers? | SELECT name FROM table_name_58 WHERE opponent = "pohang steelers" | [
13828,
6125,
5341,
1028,
262,
350,
1219,
648,
21323,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3365,
33411,
6125,
796,
366,
79,
1219,
648,
7771,
364,
1
] | [
1,
1,
1,
1,
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,
6125,
5341,
1028,
262,
350,
1219,
648,
21323,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3365,
33411,
6125,
796,
366,
79,
1219,
648,
7771,
364,
1
] |
List the weight for 56.5 kilograms. | SELECT race FROM table_2581397_3 WHERE weight__kg_ = "56.5" | [
8053,
262,
3463,
329,
7265,
13,
20,
37075,
13,
46506,
3234,
16034,
3084,
62,
25600,
1485,
5607,
62,
18,
33411,
3463,
834,
10025,
62,
796,
366,
3980,
13,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
3463,
329,
7265,
13,
20,
37075,
13,
46506,
3234,
16034,
3084,
62,
25600,
1485,
5607,
62,
18,
33411,
3463,
834,
10025,
62,
796,
366,
3980,
13,
20,
1
] |
Which Avg/G has a Name of josh freeman, and a Loss smaller than 134? | SELECT SUM(avg_g) FROM table_name_59 WHERE name = "josh freeman" AND loss < 134 | [
13828,
33455,
14,
38,
468,
257,
6530,
286,
474,
3768,
2030,
8463,
11,
290,
257,
22014,
4833,
621,
22352,
30,
46506,
35683,
7,
615,
70,
62,
70,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1438,
796,
366,
73,
3768,
2030,
8463,
1,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33455,
14,
38,
468,
257,
6530,
286,
474,
3768,
2030,
8463,
11,
290,
257,
22014,
4833,
621,
22352,
30,
46506,
35683,
7,
615,
70,
62,
70,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1438,
796,
366,
73,
3768,
2030,
8463,
1,
535... |
what was the last ward id that patient 98554 went in the previous year? | SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 98554) AND NOT transfers.wardid IS NULL AND DATETIME(transfers.intime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY transfers.intime DESC LIMIT 1 | [
10919,
373,
262,
938,
15305,
4686,
326,
5827,
9661,
44218,
1816,
287,
262,
2180,
614,
30,
46506,
16395,
13,
904,
312,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
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,
373,
262,
938,
15305,
4686,
326,
5827,
9661,
44218,
1816,
287,
262,
2180,
614,
30,
46506,
16395,
13,
904,
312,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
3... |
What is the total number of areas that are called Nanqiao District? | SELECT COUNT("Area") FROM table_2171 WHERE "English Name" = 'Nanqiao District' | [
2061,
318,
262,
2472,
1271,
286,
3006,
326,
389,
1444,
18008,
80,
13481,
5665,
30,
46506,
327,
28270,
7203,
30547,
4943,
16034,
3084,
62,
24591,
16,
33411,
366,
15823,
6530,
1,
796,
705,
45,
272,
80,
13481,
5665,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
3006,
326,
389,
1444,
18008,
80,
13481,
5665,
30,
46506,
327,
28270,
7203,
30547,
4943,
16034,
3084,
62,
24591,
16,
33411,
366,
15823,
6530,
1,
796,
705,
45,
272,
80,
13481,
5665,
6
] |
how many patients whose primary disease is colangitis and drug route is id? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "COLANGITIS" AND prescriptions.route = "ID" | [
4919,
867,
3871,
3025,
4165,
4369,
318,
951,
648,
11815,
290,
2563,
6339,
318,
4686,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
4165,
4369,
318,
951,
648,
11815,
290,
2563,
6339,
318,
4686,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
... |
What is the date of the Last Performance of Rarmian Newton as Billy Elliot? | SELECT "Last Performance" FROM table_14504 WHERE "Name" = 'rarmian newton' | [
2061,
318,
262,
3128,
286,
262,
4586,
15193,
286,
371,
1670,
666,
17321,
355,
15890,
30451,
30,
46506,
366,
5956,
15193,
1,
16034,
3084,
62,
1415,
33580,
33411,
366,
5376,
1,
796,
705,
81,
1670,
666,
649,
1122,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
286,
262,
4586,
15193,
286,
371,
1670,
666,
17321,
355,
15890,
30451,
30,
46506,
366,
5956,
15193,
1,
16034,
3084,
62,
1415,
33580,
33411,
366,
5376,
1,
796,
705,
81,
1670,
666,
649,
1122,
6
] |
What is the Lap Length of the race with a Grand Prix Fia Category? | SELECT "Lap length" FROM table_36226 WHERE "Category" = 'grand prix fia' | [
2061,
318,
262,
26944,
22313,
286,
262,
3234,
351,
257,
5675,
23832,
376,
544,
21743,
30,
46506,
366,
43,
499,
4129,
1,
16034,
3084,
62,
2623,
24909,
33411,
366,
27313,
1,
796,
705,
23936,
1293,
87,
277,
544,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
26944,
22313,
286,
262,
3234,
351,
257,
5675,
23832,
376,
544,
21743,
30,
46506,
366,
43,
499,
4129,
1,
16034,
3084,
62,
2623,
24909,
33411,
366,
27313,
1,
796,
705,
23936,
1293,
87,
277,
544,
6
] |
What is the home team that played on M.C.G. grounds? | SELECT home_team FROM table_16388398_2 WHERE ground = "M.C.G." | [
2061,
318,
262,
1363,
1074,
326,
2826,
319,
337,
13,
34,
13,
38,
13,
9384,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
1433,
30460,
31952,
62,
17,
33411,
2323,
796,
366,
44,
13,
34,
13,
38,
526
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
326,
2826,
319,
337,
13,
34,
13,
38,
13,
9384,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
1433,
30460,
31952,
62,
17,
33411,
2323,
796,
366,
44,
13,
34,
13,
38,
526
] |
Which edition released on 2007-06-07 has a Java EE compatibility of 5? | SELECT "Edition" FROM table_49694 WHERE "Java EE compatibility" = '5' AND "Release date" = '2007-06-07' | [
13828,
8313,
2716,
319,
4343,
12,
3312,
12,
2998,
468,
257,
7349,
27254,
17764,
286,
642,
30,
46506,
366,
7407,
653,
1,
16034,
3084,
62,
2920,
45214,
33411,
366,
29584,
27254,
17764,
1,
796,
705,
20,
6,
5357,
366,
26362,
3128,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8313,
2716,
319,
4343,
12,
3312,
12,
2998,
468,
257,
7349,
27254,
17764,
286,
642,
30,
46506,
366,
7407,
653,
1,
16034,
3084,
62,
2920,
45214,
33411,
366,
29584,
27254,
17764,
1,
796,
705,
20,
6,
5357,
366,
26362,
3128,
1,
79... |
Can you tell me lowest Rank that has the Capacity in use of 93.6%, and the Total Passengers larger than 4,679,457? | SELECT MIN("Rank") FROM table_40157 WHERE "Capacity in use" = '93.6%' AND "Total Passengers" > '4,679,457' | [
6090,
345,
1560,
502,
9016,
10916,
326,
468,
262,
29765,
287,
779,
286,
10261,
13,
21,
7441,
290,
262,
7472,
6251,
9302,
4025,
621,
604,
11,
37601,
11,
33032,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
21844,
3553,
33411,
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... | [
6090,
345,
1560,
502,
9016,
10916,
326,
468,
262,
29765,
287,
779,
286,
10261,
13,
21,
7441,
290,
262,
7472,
6251,
9302,
4025,
621,
604,
11,
37601,
11,
33032,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
21844,
3553,
33411,
3... |
Which Inhabitants have a Party of democratic party, and a Municipality of florence, and an Election smaller than 2009? | SELECT MIN("Inhabitants") FROM table_13602 WHERE "Party" = 'democratic party' AND "Municipality" = 'florence' AND "Election" < '2009' | [
13828,
554,
5976,
270,
1187,
423,
257,
3615,
286,
10518,
2151,
11,
290,
257,
27338,
1483,
286,
781,
382,
1198,
11,
290,
281,
14219,
4833,
621,
3717,
30,
46506,
20625,
7203,
818,
5976,
270,
1187,
4943,
16034,
3084,
62,
1485,
31418,
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... | [
13828,
554,
5976,
270,
1187,
423,
257,
3615,
286,
10518,
2151,
11,
290,
257,
27338,
1483,
286,
781,
382,
1198,
11,
290,
281,
14219,
4833,
621,
3717,
30,
46506,
20625,
7203,
818,
5976,
270,
1187,
4943,
16034,
3084,
62,
1485,
31418,
334... |
What is the average Game, when Team is 'Milwaukee'? | SELECT AVG("Game") FROM table_76271 WHERE "Team" = 'milwaukee' | [
2061,
318,
262,
2811,
3776,
11,
618,
4816,
318,
705,
24857,
15428,
30960,
46506,
35224,
7203,
8777,
4943,
16034,
3084,
62,
4304,
28977,
33411,
366,
15592,
1,
796,
705,
25433,
15428,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
3776,
11,
618,
4816,
318,
705,
24857,
15428,
30960,
46506,
35224,
7203,
8777,
4943,
16034,
3084,
62,
4304,
28977,
33411,
366,
15592,
1,
796,
705,
25433,
15428,
6
] |
What is the Country of the Player with a To par of 4? | SELECT country FROM table_name_72 WHERE to_par = "–4" | [
2061,
318,
262,
12946,
286,
262,
7853,
351,
257,
1675,
1582,
286,
604,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
4761,
33411,
284,
62,
1845,
796,
366,
1906,
19,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
12946,
286,
262,
7853,
351,
257,
1675,
1582,
286,
604,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
4761,
33411,
284,
62,
1845,
796,
366,
1906,
19,
1
] |
what is the name of the first medication prescribed to patient 40059 in 10/2105? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40059) AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-10' ORDER BY prescriptions.startdate LIMIT 1 | [
10919,
318,
262,
1438,
286,
262,
717,
14103,
14798,
284,
5827,
7337,
3270,
287,
838,
14,
17,
13348,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
717,
14103,
14798,
284,
5827,
7337,
3270,
287,
838,
14,
17,
13348,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
1603... |
Who was the presenter on Monday of 'Big Brother 13' in which Alice Levine Jamie East presented on Sunday? | SELECT "Monday" FROM table_11583 WHERE "Sunday" = 'alice levine jamie east' AND "Series" = 'big brother 13' | [
8241,
373,
262,
39597,
319,
3321,
286,
705,
12804,
8402,
1511,
6,
287,
543,
14862,
38294,
17826,
3687,
5545,
319,
3502,
30,
46506,
366,
23810,
1,
16034,
3084,
62,
1157,
46239,
33411,
366,
21934,
1,
796,
705,
282,
501,
23145,
500,
1685... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
39597,
319,
3321,
286,
705,
12804,
8402,
1511,
6,
287,
543,
14862,
38294,
17826,
3687,
5545,
319,
3502,
30,
46506,
366,
23810,
1,
16034,
3084,
62,
1157,
46239,
33411,
366,
21934,
1,
796,
705,
282,
501,
23145,
500,
1685... |
How many Dates have a Builder of laconia car company, and a Number of 63-68? | SELECT COUNT("Date") FROM table_8434 WHERE "Builder" = 'laconia car company' AND "Number" = '63-68' | [
2437,
867,
44712,
423,
257,
35869,
286,
300,
7807,
544,
1097,
1664,
11,
290,
257,
7913,
286,
8093,
12,
3104,
30,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
5705,
2682,
33411,
366,
32875,
1,
796,
705,
75,
7807,
544,
1097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
44712,
423,
257,
35869,
286,
300,
7807,
544,
1097,
1664,
11,
290,
257,
7913,
286,
8093,
12,
3104,
30,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
5705,
2682,
33411,
366,
32875,
1,
796,
705,
75,
7807,
544,
1097,
... |
Who constructed the car that has a Time/Retired of engine, and over 50 laps? | SELECT constructor FROM table_name_56 WHERE time_retired = "engine" AND laps > 50 | [
8241,
12006,
262,
1097,
326,
468,
257,
3862,
14,
9781,
1202,
286,
3113,
11,
290,
625,
2026,
24590,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
3980,
33411,
640,
62,
1186,
1202,
796,
366,
18392,
1,
5357,
24590,
1875,
2026
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12006,
262,
1097,
326,
468,
257,
3862,
14,
9781,
1202,
286,
3113,
11,
290,
625,
2026,
24590,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
3980,
33411,
640,
62,
1186,
1202,
796,
366,
18392,
1,
5357,
24590,
1875,
2026
] |
What was the attendance for the game with alfreton town as the home team? | SELECT attendance FROM table_name_53 WHERE home_team = "alfreton town" | [
2061,
373,
262,
14858,
329,
262,
983,
351,
435,
19503,
1122,
3240,
355,
262,
1363,
1074,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4310,
33411,
1363,
62,
15097,
796,
366,
1604,
260,
1122,
3240,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
14858,
329,
262,
983,
351,
435,
19503,
1122,
3240,
355,
262,
1363,
1074,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4310,
33411,
1363,
62,
15097,
796,
366,
1604,
260,
1122,
3240,
1
] |
What is the Wins of the Top-25 of 1 and 7 Events? | SELECT "Wins" FROM table_76033 WHERE "Top-25" = '1' AND "Events" = '7' | [
2061,
318,
262,
24423,
286,
262,
5849,
12,
1495,
286,
352,
290,
767,
18715,
30,
46506,
366,
54,
1040,
1,
16034,
3084,
62,
40761,
2091,
33411,
366,
9126,
12,
1495,
1,
796,
705,
16,
6,
5357,
366,
37103,
1,
796,
705,
22,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
24423,
286,
262,
5849,
12,
1495,
286,
352,
290,
767,
18715,
30,
46506,
366,
54,
1040,
1,
16034,
3084,
62,
40761,
2091,
33411,
366,
9126,
12,
1495,
1,
796,
705,
16,
6,
5357,
366,
37103,
1,
796,
705,
22,
6
] |
what is the number of patients whose lab test category is blood gas? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab."CATEGORY" = "Blood Gas" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2248,
1332,
6536,
318,
2910,
3623,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6536,
318,
2910,
3623,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312... |
what is the minimum cost of the total hospital to include a drug called neomycin-polymyxin-gramicidin? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'neomycin-polymyxin-gramicidin') GROUP BY cost.hadm_id) AS t1 | [
10919,
318,
262,
5288,
1575,
286,
262,
2472,
4436,
284,
2291,
257,
2563,
1444,
497,
9145,
17879,
12,
35428,
1820,
87,
259,
12,
4546,
291,
312,
259,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
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... | [
10919,
318,
262,
5288,
1575,
286,
262,
2472,
4436,
284,
2291,
257,
2563,
1444,
497,
9145,
17879,
12,
35428,
1820,
87,
259,
12,
4546,
291,
312,
259,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13... |
Yet another questions per month stat. | SELECT DATEFROMPARTS(TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%M'), 1) AS Month, COUNT(*) AS Count FROM Posts WHERE PostTypeId = 1 GROUP BY DATEFROMPARTS(TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%M'), 1) ORDER BY Month | [
11486,
1194,
2683,
583,
1227,
1185,
13,
46506,
360,
6158,
10913,
2662,
27082,
4694,
7,
34694,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
56,
33809,
20460,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
44,
3380... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
11486,
1194,
2683,
583,
1227,
1185,
13,
46506,
360,
6158,
10913,
2662,
27082,
4694,
7,
34694,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
56,
33809,
20460,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
44,
3380... |
What is the selection show in 1969 when the Semi final/heat host shows there was no semi final/heat. | SELECT "Selection show" FROM table_13916 WHERE "Semi final/heat host" = 'no semi final/heat' AND "Year(s)" = '1969' | [
2061,
318,
262,
6356,
905,
287,
16450,
618,
262,
35525,
2457,
14,
25080,
2583,
2523,
612,
373,
645,
10663,
2457,
14,
25080,
13,
46506,
366,
4653,
1564,
905,
1,
16034,
3084,
62,
20219,
1433,
33411,
366,
13900,
72,
2457,
14,
25080,
2583... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6356,
905,
287,
16450,
618,
262,
35525,
2457,
14,
25080,
2583,
2523,
612,
373,
645,
10663,
2457,
14,
25080,
13,
46506,
366,
4653,
1564,
905,
1,
16034,
3084,
62,
20219,
1433,
33411,
366,
13900,
72,
2457,
14,
25080,
2583... |
What is the train number for the train name island express with a destination of kanniyakumari? | SELECT train_number FROM table_29770377_1 WHERE train_name = "Island Express" AND destination = "Kanniyakumari" | [
2061,
318,
262,
4512,
1271,
329,
262,
4512,
1438,
7022,
4911,
351,
257,
10965,
286,
479,
1236,
7745,
461,
388,
2743,
30,
46506,
4512,
62,
17618,
16034,
3084,
62,
26561,
2154,
26514,
62,
16,
33411,
4512,
62,
3672,
796,
366,
3792,
1044,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4512,
1271,
329,
262,
4512,
1438,
7022,
4911,
351,
257,
10965,
286,
479,
1236,
7745,
461,
388,
2743,
30,
46506,
4512,
62,
17618,
16034,
3084,
62,
26561,
2154,
26514,
62,
16,
33411,
4512,
62,
3672,
796,
366,
3792,
1044,... |
Which Calendar has a User-selectable themes of user-selectable themes? | SELECT "Calendar" FROM table_75114 WHERE "User-selectable themes" = 'user-selectable themes' | [
13828,
26506,
468,
257,
11787,
12,
19738,
540,
13460,
286,
2836,
12,
19738,
540,
13460,
30,
46506,
366,
9771,
9239,
1,
16034,
3084,
62,
2425,
16562,
33411,
366,
12982,
12,
19738,
540,
13460,
1,
796,
705,
7220,
12,
19738,
540,
13460,
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
] | [
13828,
26506,
468,
257,
11787,
12,
19738,
540,
13460,
286,
2836,
12,
19738,
540,
13460,
30,
46506,
366,
9771,
9239,
1,
16034,
3084,
62,
2425,
16562,
33411,
366,
12982,
12,
19738,
540,
13460,
1,
796,
705,
7220,
12,
19738,
540,
13460,
6... |
Show me some recent papers on Machine Translation ? | SELECT DISTINCT paper.paperid, paper.year FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Machine Translation' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid ORDER BY paper.year DESC | [
15307,
502,
617,
2274,
9473,
319,
10850,
33322,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
11,
3348,
13,
1941,
16034,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
12453,
796,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
502,
617,
2274,
9473,
319,
10850,
33322,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
11,
3348,
13,
1941,
16034,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
12453,
796,
705,... |
When az is the runner up nad feyenoord came in third place how many overall winners are there? | SELECT COUNT(winner) FROM table_20867295_2 WHERE third_place = "Feyenoord" AND runner_up = "AZ" | [
2215,
35560,
318,
262,
17490,
510,
299,
324,
730,
88,
23397,
585,
1625,
287,
2368,
1295,
703,
867,
4045,
14591,
389,
612,
30,
46506,
327,
28270,
7,
39791,
8,
16034,
3084,
62,
21315,
3134,
25710,
62,
17,
33411,
2368,
62,
5372,
796,
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
] | [
2215,
35560,
318,
262,
17490,
510,
299,
324,
730,
88,
23397,
585,
1625,
287,
2368,
1295,
703,
867,
4045,
14591,
389,
612,
30,
46506,
327,
28270,
7,
39791,
8,
16034,
3084,
62,
21315,
3134,
25710,
62,
17,
33411,
2368,
62,
5372,
796,
3... |
Find the titles of all movies not reviewed by Chris Jackson. | SELECT DISTINCT title FROM movie EXCEPT SELECT T2.title FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid JOIN reviewer AS T3 ON T1.rid = T3.rid WHERE T3.name = 'Chris Jackson' | [
16742,
262,
8714,
286,
477,
6918,
407,
11765,
416,
5180,
6612,
13,
46506,
360,
8808,
1268,
4177,
3670,
16034,
3807,
7788,
42006,
33493,
309,
17,
13,
7839,
16034,
7955,
7054,
309,
16,
32357,
1268,
3807,
7054,
309,
17,
6177,
309,
16,
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... | [
16742,
262,
8714,
286,
477,
6918,
407,
11765,
416,
5180,
6612,
13,
46506,
360,
8808,
1268,
4177,
3670,
16034,
3807,
7788,
42006,
33493,
309,
17,
13,
7839,
16034,
7955,
7054,
309,
16,
32357,
1268,
3807,
7054,
309,
17,
6177,
309,
16,
13... |
when was the first time patient 006-80884 was prescribed a drug through po route in the current hospital encounter? | 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 = '006-80884' AND patient.hospitaldischargetime IS NULL)) AND med... | [
12518,
373,
262,
717,
640,
5827,
3571,
21,
12,
1795,
40353,
373,
14798,
257,
2563,
832,
745,
6339,
287,
262,
1459,
4436,
8791,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
717,
640,
5827,
3571,
21,
12,
1795,
40353,
373,
14798,
257,
2563,
832,
745,
6339,
287,
262,
1459,
4436,
8791,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,... |
What are the memories and carriers of phones, could you sort total number in desc order please? | SELECT Carrier, SUM(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY SUM(Memory_in_G) DESC | [
2061,
389,
262,
9846,
290,
16651,
286,
9512,
11,
714,
345,
3297,
2472,
1271,
287,
1715,
1502,
3387,
30,
46506,
30252,
11,
35683,
7,
30871,
62,
259,
62,
38,
8,
16034,
3072,
44441,
11050,
30252,
38678,
11050,
35683,
7,
30871,
62,
259,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
9846,
290,
16651,
286,
9512,
11,
714,
345,
3297,
2472,
1271,
287,
1715,
1502,
3387,
30,
46506,
30252,
11,
35683,
7,
30871,
62,
259,
62,
38,
8,
16034,
3072,
44441,
11050,
30252,
38678,
11050,
35683,
7,
30871,
62,
259,
... |
On what surface was the match played with a score of 2 6, 6 3, 6 4? | SELECT "Surface" FROM table_40383 WHERE "Score" = '2–6, 6–3, 6–4' | [
2202,
644,
4417,
373,
262,
2872,
2826,
351,
257,
4776,
286,
362,
718,
11,
718,
513,
11,
718,
604,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
1821,
34741,
33411,
366,
26595,
1,
796,
705,
17,
1906,
21,
11,
718,
1906,
18,
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
] | [
2202,
644,
4417,
373,
262,
2872,
2826,
351,
257,
4776,
286,
362,
718,
11,
718,
513,
11,
718,
604,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
1821,
34741,
33411,
366,
26595,
1,
796,
705,
17,
1906,
21,
11,
718,
1906,
18,
11,
... |
what is the number of patients whose diagnosis is fall on stair/step nec and with buccal drug route? | 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.short_title = "Fall on stair/step NEC" AND prescriptions.route = "BUCCAL" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13669,
318,
2121,
319,
18761,
14,
9662,
27576,
290,
351,
809,
535,
282,
2563,
6339,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13669,
318,
2121,
319,
18761,
14,
9662,
27576,
290,
351,
809,
535,
282,
2563,
6339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357... |
when was the episode with production code '2arg01' originally aired? | SELECT "Original air date" FROM table_29438 WHERE "Production code" = '2ARG01' | [
12518,
373,
262,
4471,
351,
3227,
2438,
705,
17,
853,
486,
6,
6198,
18530,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
27696,
2548,
33411,
366,
35027,
2438,
1,
796,
705,
17,
1503,
38,
486,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
373,
262,
4471,
351,
3227,
2438,
705,
17,
853,
486,
6,
6198,
18530,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
27696,
2548,
33411,
366,
35027,
2438,
1,
796,
705,
17,
1503,
38,
486,
6
] |
For MUSPERF 591 is MUSPERF 200 is necessary ? | SELECT COUNT(*) > 0 FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'MUSPERF' AND COURSE_0.number = 200 AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'MUSPERF' AND COURSE_1.number =... | [
1890,
39484,
18973,
37,
642,
6420,
318,
39484,
18973,
37,
939,
318,
3306,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
7054,
37384,
5188,
62,
16,
11,
1781,
62,
3866,
27614,
33411,
373... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
39484,
18973,
37,
642,
6420,
318,
39484,
18973,
37,
939,
318,
3306,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
7054,
37384,
5188,
62,
16,
11,
1781,
62,
3866,
27614,
33411,
373... |
Which classroom has the most students? | SELECT classroom FROM list GROUP BY classroom ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
15806,
468,
262,
749,
2444,
30,
46506,
15806,
16034,
1351,
44441,
11050,
15806,
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
] | [
13828,
15806,
468,
262,
749,
2444,
30,
46506,
15806,
16034,
1351,
44441,
11050,
15806,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
... |
IN THE ISSUE WHERE NICOLE NARAIN WAS THE CENTERFOLD MODEL, WHO WAS THE INTERVIEW SUBJECT? | SELECT "Interview subject" FROM table_20222 WHERE "Centerfold model" = 'Nicole Narain' | [
1268,
3336,
33805,
8924,
33411,
399,
22707,
2538,
399,
24401,
1268,
21725,
3336,
33269,
1137,
37,
15173,
19164,
3698,
11,
19494,
21725,
3336,
23255,
28206,
28932,
23680,
30,
46506,
366,
39945,
2426,
1,
16034,
3084,
62,
1238,
23148,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1268,
3336,
33805,
8924,
33411,
399,
22707,
2538,
399,
24401,
1268,
21725,
3336,
33269,
1137,
37,
15173,
19164,
3698,
11,
19494,
21725,
3336,
23255,
28206,
28932,
23680,
30,
46506,
366,
39945,
2426,
1,
16034,
3084,
62,
1238,
23148,
33411,
... |
how many hours have elapsed since the last time in their current hospital visit patient 011-55642 was prescribed with sodium chloride 0.9% 250 ml lvp? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 = '011-55... | [
4919,
867,
2250,
423,
42118,
1201,
262,
938,
640,
287,
511,
1459,
4436,
3187,
5827,
5534,
16,
12,
2816,
41290,
373,
14798,
351,
21072,
44921,
657,
13,
24,
4,
8646,
25962,
300,
36133,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2250,
423,
42118,
1201,
262,
938,
640,
287,
511,
1459,
4436,
3187,
5827,
5534,
16,
12,
2816,
41290,
373,
14798,
351,
21072,
44921,
657,
13,
24,
4,
8646,
25962,
300,
36133,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
107... |
What is the most recent year that Iftiraas was the winner? | SELECT MAX("Year") FROM table_49901 WHERE "Winner" = 'iftiraas' | [
2061,
318,
262,
749,
2274,
614,
326,
314,
701,
8704,
292,
373,
262,
8464,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
28324,
486,
33411,
366,
48056,
1,
796,
705,
2135,
8704,
292,
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,
749,
2274,
614,
326,
314,
701,
8704,
292,
373,
262,
8464,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
28324,
486,
33411,
366,
48056,
1,
796,
705,
2135,
8704,
292,
6
] |
What is the total draw count with 52 goals and less than 15 losses? | SELECT SUM(draws) FROM table_name_38 WHERE goals_against = 52 AND losses < 15 | [
2061,
318,
262,
2472,
3197,
954,
351,
6740,
4661,
290,
1342,
621,
1315,
9089,
30,
46506,
35683,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
4661,
62,
32826,
796,
6740,
5357,
9089,
1279,
1315
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3197,
954,
351,
6740,
4661,
290,
1342,
621,
1315,
9089,
30,
46506,
35683,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
4661,
62,
32826,
796,
6740,
5357,
9089,
1279,
1315
] |
The Empty House audiobook has what #? | SELECT "#" FROM table_31182 WHERE "Title" = 'The Empty House' | [
464,
33523,
2097,
40504,
49776,
468,
644,
1303,
30,
46506,
25113,
1,
16034,
3084,
62,
36244,
6469,
33411,
366,
19160,
1,
796,
705,
464,
33523,
2097,
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
] | [
464,
33523,
2097,
40504,
49776,
468,
644,
1303,
30,
46506,
25113,
1,
16034,
3084,
62,
36244,
6469,
33411,
366,
19160,
1,
796,
705,
464,
33523,
2097,
6
] |
In the 2008/2009 season one team had a season total points of 31, for that team how many total points were scored against them? | SELECT "Points against" FROM table_18092 WHERE "Points" = '31' | [
818,
262,
3648,
14,
10531,
1622,
530,
1074,
550,
257,
1622,
2472,
2173,
286,
3261,
11,
329,
326,
1074,
703,
867,
2472,
2173,
547,
7781,
1028,
606,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
1507,
2931,
17,
33411,
366,
40710,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
262,
3648,
14,
10531,
1622,
530,
1074,
550,
257,
1622,
2472,
2173,
286,
3261,
11,
329,
326,
1074,
703,
867,
2472,
2173,
547,
7781,
1028,
606,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
1507,
2931,
17,
33411,
366,
40710,
1... |
What is the sum of totals associated with a UEFA Cup score of 4? | SELECT SUM("Total") FROM table_40176 WHERE "UEFA Cup" = '4' | [
2061,
318,
262,
2160,
286,
26310,
3917,
351,
257,
40858,
5454,
4776,
286,
604,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
21844,
4304,
33411,
366,
8924,
7708,
5454,
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,
1
] | [
2061,
318,
262,
2160,
286,
26310,
3917,
351,
257,
40858,
5454,
4776,
286,
604,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
21844,
4304,
33411,
366,
8924,
7708,
5454,
1,
796,
705,
19,
6
] |
Count the number of patients whose admission locations is clinic referral/premature and admission year is before 2112. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.admityear < "2112" | [
12332,
262,
1271,
286,
3871,
3025,
13938,
7064,
318,
15760,
31413,
14,
31605,
1300,
290,
13938,
614,
318,
878,
2310,
1065,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
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... | [
12332,
262,
1271,
286,
3871,
3025,
13938,
7064,
318,
15760,
31413,
14,
31605,
1300,
290,
13938,
614,
318,
878,
2310,
1065,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3... |
which camp grew the least on 9 feb ? | SELECT "camp" FROM table_204_217 ORDER BY "9 feb" LIMIT 1 | [
4758,
1413,
6348,
262,
1551,
319,
860,
730,
65,
5633,
46506,
366,
16544,
1,
16034,
3084,
62,
18638,
62,
24591,
38678,
11050,
366,
24,
730,
65,
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
] | [
4758,
1413,
6348,
262,
1551,
319,
860,
730,
65,
5633,
46506,
366,
16544,
1,
16034,
3084,
62,
18638,
62,
24591,
38678,
11050,
366,
24,
730,
65,
1,
27564,
2043,
352
] |
What is the maximum and minimum market value of companies? | SELECT MAX(Market_Value_in_Billion), MIN(Market_Value_in_Billion) FROM company | [
2061,
318,
262,
5415,
290,
5288,
1910,
1988,
286,
2706,
30,
46506,
25882,
7,
27470,
62,
11395,
62,
259,
62,
33,
1131,
828,
20625,
7,
27470,
62,
11395,
62,
259,
62,
33,
1131,
8,
16034,
1664
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5415,
290,
5288,
1910,
1988,
286,
2706,
30,
46506,
25882,
7,
27470,
62,
11395,
62,
259,
62,
33,
1131,
828,
20625,
7,
27470,
62,
11395,
62,
259,
62,
33,
1131,
8,
16034,
1664
] |
What nationality is Larry McMorran? | SELECT nationality FROM table_name_59 WHERE player = "larry mcmorran" | [
2061,
29835,
318,
13633,
15359,
273,
2596,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
3270,
33411,
2137,
796,
366,
75,
6532,
36650,
4491,
2596,
1
] | [
1,
1,
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,
29835,
318,
13633,
15359,
273,
2596,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
3270,
33411,
2137,
796,
366,
75,
6532,
36650,
4491,
2596,
1
] |
What is the most minimal Final year that has a North or east end of covington? | SELECT MIN("Final year") FROM table_8471 WHERE "North or east terminus" = 'covington' | [
2061,
318,
262,
749,
10926,
8125,
614,
326,
468,
257,
2258,
393,
7627,
886,
286,
269,
5165,
1122,
30,
46506,
20625,
7203,
19006,
614,
4943,
16034,
3084,
62,
23,
38339,
33411,
366,
14157,
393,
7627,
5651,
385,
1,
796,
705,
66,
5165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
10926,
8125,
614,
326,
468,
257,
2258,
393,
7627,
886,
286,
269,
5165,
1122,
30,
46506,
20625,
7203,
19006,
614,
4943,
16034,
3084,
62,
23,
38339,
33411,
366,
14157,
393,
7627,
5651,
385,
1,
796,
705,
66,
5165,
... |
What month is the Paris 20k Road Race held? | SELECT "Month held" FROM table_28348 WHERE "Location" = 'Paris' | [
2061,
1227,
318,
262,
6342,
1160,
74,
5567,
12588,
2714,
30,
46506,
366,
31948,
2714,
1,
16034,
3084,
62,
2078,
28978,
33411,
366,
14749,
1,
796,
705,
40313,
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,
1227,
318,
262,
6342,
1160,
74,
5567,
12588,
2714,
30,
46506,
366,
31948,
2714,
1,
16034,
3084,
62,
2078,
28978,
33411,
366,
14749,
1,
796,
705,
40313,
6
] |
What is the smallest average for the player with 13 matches and fewer than 7 catches? | SELECT MIN(average) FROM table_name_82 WHERE matches = 13 AND catches < 7 | [
2061,
318,
262,
18197,
2811,
329,
262,
2137,
351,
1511,
7466,
290,
7380,
621,
767,
17591,
30,
46506,
20625,
7,
23913,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
7466,
796,
1511,
5357,
17591,
1279,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
2811,
329,
262,
2137,
351,
1511,
7466,
290,
7380,
621,
767,
17591,
30,
46506,
20625,
7,
23913,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
7466,
796,
1511,
5357,
17591,
1279,
767
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.