instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
How many members were in the group that sold 65 million albums and singles? | SELECT members FROM table_19439814_1 WHERE sold__albums_and_singles_ = "65 million" | [
2437,
867,
1866,
547,
287,
262,
1448,
326,
2702,
6135,
1510,
16788,
290,
25287,
30,
46506,
1866,
16034,
3084,
62,
22913,
31952,
1415,
62,
16,
33411,
2702,
834,
40916,
82,
62,
392,
62,
12215,
829,
62,
796,
366,
2996,
1510,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1866,
547,
287,
262,
1448,
326,
2702,
6135,
1510,
16788,
290,
25287,
30,
46506,
1866,
16034,
3084,
62,
22913,
31952,
1415,
62,
16,
33411,
2702,
834,
40916,
82,
62,
392,
62,
12215,
829,
62,
796,
366,
2996,
1510,
1
] |
What is the score of the away team who played the home team who scored 7.14 (56)? | SELECT "Away team score" FROM table_56276 WHERE "Home team score" = '7.14 (56)' | [
2061,
318,
262,
4776,
286,
262,
1497,
1074,
508,
2826,
262,
1363,
1074,
508,
7781,
767,
13,
1415,
357,
3980,
19427,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
3980,
27988,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
22,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
286,
262,
1497,
1074,
508,
2826,
262,
1363,
1074,
508,
7781,
767,
13,
1415,
357,
3980,
19427,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
3980,
27988,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
22,
1... |
When do all the researcher role staff start to work? Bin the time into YEAR interval and count them with a line chart, and rank X from high to low order. | SELECT date_from, COUNT(date_from) FROM Project_Staff ORDER BY date_from DESC | [
2215,
466,
477,
262,
13453,
2597,
3085,
923,
284,
670,
30,
20828,
262,
640,
656,
32914,
16654,
290,
954,
606,
351,
257,
1627,
8262,
11,
290,
4279,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
62,
6738,
11,
327,
28270,
7,
4475,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
466,
477,
262,
13453,
2597,
3085,
923,
284,
670,
30,
20828,
262,
640,
656,
32914,
16654,
290,
954,
606,
351,
257,
1627,
8262,
11,
290,
4279,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
62,
6738,
11,
327,
28270,
7,
4475,... |
Bar chart x axis nationality y axis the total number | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality | [
10374,
8262,
2124,
16488,
29835,
331,
16488,
262,
2472,
1271,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
29835,
331,
16488,
262,
2472,
1271,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414
] |
What is the total number of Year, when Award is 'Vamsi Berkley Award', and when Category is 'Best Actor'? | SELECT COUNT("Year") FROM table_59285 WHERE "Award" = 'vamsi berkley award' AND "Category" = 'best actor' | [
2061,
318,
262,
2472,
1271,
286,
6280,
11,
618,
11289,
318,
705,
53,
4105,
72,
35595,
1636,
11289,
3256,
290,
618,
21743,
318,
705,
13014,
27274,
30960,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
3270,
26279,
33411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
6280,
11,
618,
11289,
318,
705,
53,
4105,
72,
35595,
1636,
11289,
3256,
290,
618,
21743,
318,
705,
13014,
27274,
30960,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
3270,
26279,
33411,
366,
32,... |
Show me Deep Learning papers . | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Deep Learning' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid | [
15307,
502,
10766,
18252,
9473,
764,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
12453,
796,
705,
29744,
18252,
6,
5357,
3348,
2539,
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... | [
15307,
502,
10766,
18252,
9473,
764,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
12453,
796,
705,
29744,
18252,
6,
5357,
3348,
2539,
3... |
select count (*) from Posts. | SELECT COUNT(*) FROM Posts | [
19738,
954,
20789,
8,
422,
12043,
13,
46506,
327,
28270,
7,
28104,
16034,
12043
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19738,
954,
20789,
8,
422,
12043,
13,
46506,
327,
28270,
7,
28104,
16034,
12043
] |
who was the youngest delegate for miss dominican republic in 2002 ? | SELECT "contestant" FROM table_203_791 ORDER BY "age" LIMIT 1 | [
8727,
373,
262,
18887,
23191,
329,
2051,
7462,
7490,
17146,
287,
6244,
5633,
46506,
366,
3642,
395,
415,
1,
16034,
3084,
62,
22416,
62,
3720,
16,
38678,
11050,
366,
496,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
262,
18887,
23191,
329,
2051,
7462,
7490,
17146,
287,
6244,
5633,
46506,
366,
3642,
395,
415,
1,
16034,
3084,
62,
22416,
62,
3720,
16,
38678,
11050,
366,
496,
1,
27564,
2043,
352
] |
What episode had a run time of 24:53? | SELECT "Episode" FROM table_24064 WHERE "Run time" = '24:53' | [
2061,
4471,
550,
257,
1057,
640,
286,
1987,
25,
4310,
30,
46506,
366,
23758,
1,
16034,
3084,
62,
16102,
2414,
33411,
366,
10987,
640,
1,
796,
705,
1731,
25,
4310,
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,
4471,
550,
257,
1057,
640,
286,
1987,
25,
4310,
30,
46506,
366,
23758,
1,
16034,
3084,
62,
16102,
2414,
33411,
366,
10987,
640,
1,
796,
705,
1731,
25,
4310,
6
] |
severe renal insufficiency ( creatinine clearance < 30 ml / min ) | SELECT * FROM table_test_26 WHERE renal_disease = 1 OR creatinine_clearance_cl < 30 | [
43070,
44375,
1035,
1648,
19777,
357,
1827,
259,
500,
19745,
1279,
1542,
25962,
1220,
949,
1267,
46506,
1635,
16034,
3084,
62,
9288,
62,
2075,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
1827,
259,
500,
62,
20063,
590,
62,
565,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43070,
44375,
1035,
1648,
19777,
357,
1827,
259,
500,
19745,
1279,
1542,
25962,
1220,
949,
1267,
46506,
1635,
16034,
3084,
62,
9288,
62,
2075,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
1827,
259,
500,
62,
20063,
590,
62,
565,
12... |
On what Date is Olimpia the Home team? | SELECT "Date" FROM table_8370 WHERE "Home" = 'olimpia' | [
2202,
644,
7536,
318,
440,
2475,
79,
544,
262,
5995,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
5999,
2154,
33411,
366,
16060,
1,
796,
705,
349,
11011,
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
] | [
2202,
644,
7536,
318,
440,
2475,
79,
544,
262,
5995,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
5999,
2154,
33411,
366,
16060,
1,
796,
705,
349,
11011,
544,
6
] |
How many rounds were won with James Hunt as pole position and John Watson as fastest lap? | SELECT COUNT(rnd) FROM table_1140083_2 WHERE pole_position = "James Hunt" AND fastest_lap = "John Watson" | [
2437,
867,
9196,
547,
1839,
351,
3700,
12937,
355,
16825,
2292,
290,
1757,
14959,
355,
14162,
14779,
30,
46506,
327,
28270,
7,
81,
358,
8,
16034,
3084,
62,
1157,
7029,
5999,
62,
17,
33411,
16825,
62,
9150,
796,
366,
14731,
12937,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9196,
547,
1839,
351,
3700,
12937,
355,
16825,
2292,
290,
1757,
14959,
355,
14162,
14779,
30,
46506,
327,
28270,
7,
81,
358,
8,
16034,
3084,
62,
1157,
7029,
5999,
62,
17,
33411,
16825,
62,
9150,
796,
366,
14731,
12937,
1,
... |
Tell me the digital for tuner of thomson dtt75105 | SELECT "Digital" FROM table_11613 WHERE "Tuner" = 'thomson dtt75105' | [
24446,
502,
262,
4875,
329,
6278,
263,
286,
294,
296,
1559,
288,
926,
2425,
13348,
46506,
366,
27640,
1,
16034,
3084,
62,
18298,
1485,
33411,
366,
51,
38886,
1,
796,
705,
400,
296,
1559,
288,
926,
2425,
13348,
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
] | [
24446,
502,
262,
4875,
329,
6278,
263,
286,
294,
296,
1559,
288,
926,
2425,
13348,
46506,
366,
27640,
1,
16034,
3084,
62,
18298,
1485,
33411,
366,
51,
38886,
1,
796,
705,
400,
296,
1559,
288,
926,
2425,
13348,
6
] |
How many floors did the tallest building in Aston have? | SELECT floors FROM table_name_43 WHERE location = "aston" | [
2437,
867,
18570,
750,
262,
38760,
2615,
287,
33644,
423,
30,
46506,
18570,
16034,
3084,
62,
3672,
62,
3559,
33411,
4067,
796,
366,
45966,
1
] | [
1,
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,
18570,
750,
262,
38760,
2615,
287,
33644,
423,
30,
46506,
18570,
16034,
3084,
62,
3672,
62,
3559,
33411,
4067,
796,
366,
45966,
1
] |
What are the names of catalog entries with level number 8, and count them by a bar chart, and order by the X in descending. | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name DESC | [
2061,
389,
262,
3891,
286,
18388,
12784,
351,
1241,
1271,
807,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
1502,
416,
262,
1395,
287,
31491,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
327,
28270,
7,
9246,
11794,
62,
13000,
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... | [
2061,
389,
262,
3891,
286,
18388,
12784,
351,
1241,
1271,
807,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
1502,
416,
262,
1395,
287,
31491,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
327,
28270,
7,
9246,
11794,
62,
13000,
62,... |
TOP 100 stackoverflow users from kerala, INDIA. | SELECT Id, DisplayName, Reputation, WebsiteUrl, Location, EmailHash FROM Users WHERE Location LIKE '%Karnataka%' ORDER BY Reputation DESC LIMIT 100 | [
35222,
1802,
8931,
2502,
11125,
2985,
422,
479,
33314,
11,
24413,
3539,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
11,
9570,
26257,
16034,
18987,
33411,
13397,
34178,
705,
4,
42,
1501,
48088,
4,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35222,
1802,
8931,
2502,
11125,
2985,
422,
479,
33314,
11,
24413,
3539,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
11,
9570,
26257,
16034,
18987,
33411,
13397,
34178,
705,
4,
42,
1501,
48088,
4,
6,
... |
what's the interview with swimsuit being 9.140 | SELECT interview FROM table_11970261_2 WHERE swimsuit = "9.140" | [
10919,
338,
262,
2720,
351,
9422,
6063,
852,
860,
13,
15187,
46506,
2720,
16034,
3084,
62,
16315,
2154,
30057,
62,
17,
33411,
9422,
6063,
796,
366,
24,
13,
15187,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
2720,
351,
9422,
6063,
852,
860,
13,
15187,
46506,
2720,
16034,
3084,
62,
16315,
2154,
30057,
62,
17,
33411,
9422,
6063,
796,
366,
24,
13,
15187,
1
] |
Select TagName From Tags Order By Count Desc. | SELECT TagName FROM Tags ORDER BY Count DESC | [
17563,
17467,
5376,
3574,
44789,
8284,
2750,
2764,
39373,
13,
46506,
17467,
5376,
16034,
44789,
38678,
11050,
2764,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17563,
17467,
5376,
3574,
44789,
8284,
2750,
2764,
39373,
13,
46506,
17467,
5376,
16034,
44789,
38678,
11050,
2764,
22196,
34
] |
how many days have elapsed since the first time patient 30826 stayed in the ward 12 during this hospital encounter? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30826 AND admissions.dischtime IS NULL)) AND transfers.... | [
4919,
867,
1528,
423,
42118,
1201,
262,
717,
640,
5827,
35617,
2075,
9658,
287,
262,
15305,
1105,
1141,
428,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1528,
423,
42118,
1201,
262,
717,
640,
5827,
35617,
2075,
9658,
287,
262,
15305,
1105,
1141,
428,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
... |
Which School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a Location of versailles? | SELECT school FROM table_name_78 WHERE previous_conference = "none (new school)" AND year_joined > 1960 AND location = "versailles" | [
13828,
3961,
468,
257,
21801,
8785,
286,
4844,
357,
3605,
1524,
828,
290,
257,
6280,
16709,
4025,
621,
9507,
11,
290,
257,
13397,
286,
25470,
21718,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
3695,
33411,
2180,
62,
41124,
796,
366,
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
] | [
13828,
3961,
468,
257,
21801,
8785,
286,
4844,
357,
3605,
1524,
828,
290,
257,
6280,
16709,
4025,
621,
9507,
11,
290,
257,
13397,
286,
25470,
21718,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
3695,
33411,
2180,
62,
41124,
796,
366,
2... |
when was the last time patient 027-178044 heartrate was measured greater than 86.0 until 01/18/2105. | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-178044')) AND vitalperiodic.heartrate > 86.0 AN... | [
12518,
373,
262,
938,
640,
5827,
657,
1983,
12,
1558,
1795,
2598,
2612,
4873,
373,
8630,
3744,
621,
9849,
13,
15,
1566,
5534,
14,
1507,
14,
17,
13348,
13,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
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... | [
12518,
373,
262,
938,
640,
5827,
657,
1983,
12,
1558,
1795,
2598,
2612,
4873,
373,
8630,
3744,
621,
9849,
13,
15,
1566,
5534,
14,
1507,
14,
17,
13348,
13,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
3... |
Show me the distinct payment method codes from the invoice record. | SELECT DISTINCT payment_method_code FROM invoices | [
15307,
502,
262,
7310,
6074,
2446,
12416,
422,
262,
45458,
1700,
13,
46506,
360,
8808,
1268,
4177,
6074,
62,
24396,
62,
8189,
16034,
800,
78,
1063
] | [
1,
1,
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,
262,
7310,
6074,
2446,
12416,
422,
262,
45458,
1700,
13,
46506,
360,
8808,
1268,
4177,
6074,
62,
24396,
62,
8189,
16034,
800,
78,
1063
] |
How many wins did Cobden have when draws were more than 0? | SELECT COUNT("Wins") FROM table_79353 WHERE "Club" = 'cobden' AND "Draws" > '0' | [
2437,
867,
7864,
750,
14828,
6559,
423,
618,
14293,
547,
517,
621,
657,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
3720,
33319,
33411,
366,
42350,
1,
796,
705,
66,
672,
6559,
6,
5357,
366,
25302,
82,
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
] | [
2437,
867,
7864,
750,
14828,
6559,
423,
618,
14293,
547,
517,
621,
657,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
3720,
33319,
33411,
366,
42350,
1,
796,
705,
66,
672,
6559,
6,
5357,
366,
25302,
82,
1,
1875,
705,... |
What was the 'calling at' station of the train that departed on 18.16? | SELECT "Calling at" FROM table_22293 WHERE "Departure" = '18.16' | [
2061,
373,
262,
705,
44714,
379,
6,
4429,
286,
262,
4512,
326,
24057,
319,
1248,
13,
1433,
30,
46506,
366,
48593,
379,
1,
16034,
3084,
62,
1828,
31675,
33411,
366,
12156,
433,
495,
1,
796,
705,
1507,
13,
1433,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
705,
44714,
379,
6,
4429,
286,
262,
4512,
326,
24057,
319,
1248,
13,
1433,
30,
46506,
366,
48593,
379,
1,
16034,
3084,
62,
1828,
31675,
33411,
366,
12156,
433,
495,
1,
796,
705,
1507,
13,
1433,
6
] |
What was the away team when the home team was Carlton? | SELECT away_team FROM table_name_7 WHERE home_team = "carlton" | [
2061,
373,
262,
1497,
1074,
618,
262,
1363,
1074,
373,
44348,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
22,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
618,
262,
1363,
1074,
373,
44348,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
22,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] |
What incumbent won the district of texas 22? | SELECT "Incumbent" FROM table_18286 WHERE "District" = 'Texas 22' | [
2061,
23526,
1839,
262,
4783,
286,
48659,
292,
2534,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
27033,
33411,
366,
44857,
1,
796,
705,
21607,
2534,
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,
23526,
1839,
262,
4783,
286,
48659,
292,
2534,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
27033,
33411,
366,
44857,
1,
796,
705,
21607,
2534,
6
] |
What's the try bonus that had 423 points? | SELECT try_bonus FROM table_name_38 WHERE points_for = "423" | [
2061,
338,
262,
1949,
7202,
326,
550,
49125,
2173,
30,
46506,
1949,
62,
4189,
385,
16034,
3084,
62,
3672,
62,
2548,
33411,
2173,
62,
1640,
796,
366,
43356,
1
] | [
1,
1,
1,
1,
1,
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,
1949,
7202,
326,
550,
49125,
2173,
30,
46506,
1949,
62,
4189,
385,
16034,
3084,
62,
3672,
62,
2548,
33411,
2173,
62,
1640,
796,
366,
43356,
1
] |
Where was game number 5 played? | SELECT location_attendance FROM table_23286112_12 WHERE game = 5 | [
8496,
373,
983,
1271,
642,
2826,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
1954,
2078,
5333,
1065,
62,
1065,
33411,
983,
796,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
983,
1271,
642,
2826,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
1954,
2078,
5333,
1065,
62,
1065,
33411,
983,
796,
642
] |
What is the result for the distance of 10f, and a winner or 2nd of Lampra? | SELECT "Result" FROM table_43501 WHERE "Distance" = '10f' AND "Winner or 2nd" = 'lampra' | [
2061,
318,
262,
1255,
329,
262,
5253,
286,
838,
69,
11,
290,
257,
8464,
393,
362,
358,
286,
28607,
430,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
40064,
486,
33411,
366,
45767,
1,
796,
705,
940,
69,
6,
5357,
366,
48056,
393,
362,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
329,
262,
5253,
286,
838,
69,
11,
290,
257,
8464,
393,
362,
358,
286,
28607,
430,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
40064,
486,
33411,
366,
45767,
1,
796,
705,
940,
69,
6,
5357,
366,
48056,
393,
362,... |
What is the total sum of silver metals for all countries with more than 2 Bronze medals? | SELECT SUM("Silver") FROM table_15104 WHERE "Total" > '2' AND "Bronze" > '2' | [
2061,
318,
262,
2472,
2160,
286,
8465,
21782,
329,
477,
2678,
351,
517,
621,
362,
19461,
28057,
30,
46506,
35683,
7203,
26766,
4943,
16034,
3084,
62,
1314,
13464,
33411,
366,
14957,
1,
1875,
705,
17,
6,
5357,
366,
18760,
2736,
1,
1875... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
8465,
21782,
329,
477,
2678,
351,
517,
621,
362,
19461,
28057,
30,
46506,
35683,
7203,
26766,
4943,
16034,
3084,
62,
1314,
13464,
33411,
366,
14957,
1,
1875,
705,
17,
6,
5357,
366,
18760,
2736,
1,
1875... |
what was patient 009-9251's heartrate average on the first intensive care unit visit? | SELECT AVG(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-9251') AND NOT patient.unitdischargetime IS NULL... | [
10919,
373,
5827,
3571,
24,
12,
24,
28072,
338,
2612,
4873,
2811,
319,
262,
717,
18590,
1337,
4326,
3187,
30,
46506,
35224,
7,
85,
1287,
41007,
291,
13,
11499,
4873,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
2085... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
3571,
24,
12,
24,
28072,
338,
2612,
4873,
2811,
319,
262,
717,
18590,
1337,
4326,
3187,
30,
46506,
35224,
7,
85,
1287,
41007,
291,
13,
11499,
4873,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
2085... |
How many rounds were won with James Hunt as pole position and John Watson as fastest lap? | SELECT COUNT("Rnd") FROM table_16738 WHERE "Pole Position" = 'James Hunt' AND "Fastest Lap" = 'John Watson' | [
2437,
867,
9196,
547,
1839,
351,
3700,
12937,
355,
16825,
2292,
290,
1757,
14959,
355,
14162,
14779,
30,
46506,
327,
28270,
7203,
49,
358,
4943,
16034,
3084,
62,
21940,
2548,
33411,
366,
47,
2305,
23158,
1,
796,
705,
14731,
12937,
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
] | [
2437,
867,
9196,
547,
1839,
351,
3700,
12937,
355,
16825,
2292,
290,
1757,
14959,
355,
14162,
14779,
30,
46506,
327,
28270,
7203,
49,
358,
4943,
16034,
3084,
62,
21940,
2548,
33411,
366,
47,
2305,
23158,
1,
796,
705,
14731,
12937,
6,
... |
Which City has a State of massachusetts, and a School of northeastern university? | SELECT city FROM table_name_59 WHERE state = "massachusetts" AND school = "northeastern university" | [
13828,
2254,
468,
257,
1812,
286,
2347,
9770,
11,
290,
257,
3961,
286,
38131,
6403,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3270,
33411,
1181,
796,
366,
22208,
9770,
1,
5357,
1524,
796,
366,
77,
419,
18160,
6403,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2254,
468,
257,
1812,
286,
2347,
9770,
11,
290,
257,
3961,
286,
38131,
6403,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3270,
33411,
1181,
796,
366,
22208,
9770,
1,
5357,
1524,
796,
366,
77,
419,
18160,
6403,
1
] |
which patients are suffering from abdominal pain primary disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL PAIN" | [
4758,
3871,
389,
7195,
422,
32692,
2356,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
6242,
39170,
17961,
8147,
1268,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
389,
7195,
422,
32692,
2356,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
6242,
39170,
17961,
8147,
1268,
1
] |
did patient 24118 have any procedure? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24118) | [
20839,
5827,
1987,
16817,
423,
597,
8771,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
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
] | [
20839,
5827,
1987,
16817,
423,
597,
8771,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
... |
How many games were lost that had goals against of 5? | SELECT lost FROM table_name_15 WHERE goals_against = "5" | [
2437,
867,
1830,
547,
2626,
326,
550,
4661,
1028,
286,
642,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
1314,
33411,
4661,
62,
32826,
796,
366,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1830,
547,
2626,
326,
550,
4661,
1028,
286,
642,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
1314,
33411,
4661,
62,
32826,
796,
366,
20,
1
] |
What is the number of reports for the italian grand prix? | SELECT COUNT(report) FROM table_1140078_2 WHERE race = "Italian Grand Prix" | [
2061,
318,
262,
1271,
286,
3136,
329,
262,
340,
7199,
4490,
1293,
87,
30,
46506,
327,
28270,
7,
13116,
8,
16034,
3084,
62,
1157,
7029,
3695,
62,
17,
33411,
3234,
796,
366,
45696,
5675,
23832,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
3136,
329,
262,
340,
7199,
4490,
1293,
87,
30,
46506,
327,
28270,
7,
13116,
8,
16034,
3084,
62,
1157,
7029,
3695,
62,
17,
33411,
3234,
796,
366,
45696,
5675,
23832,
1
] |
What is the points difference for a loss less than 6, and points less than 11? | SELECT points_difference FROM table_name_30 WHERE lost < 6 AND points < 11 | [
2061,
318,
262,
2173,
3580,
329,
257,
2994,
1342,
621,
718,
11,
290,
2173,
1342,
621,
1367,
30,
46506,
2173,
62,
26069,
1945,
16034,
3084,
62,
3672,
62,
1270,
33411,
2626,
1279,
718,
5357,
2173,
1279,
1367
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
3580,
329,
257,
2994,
1342,
621,
718,
11,
290,
2173,
1342,
621,
1367,
30,
46506,
2173,
62,
26069,
1945,
16034,
3084,
62,
3672,
62,
1270,
33411,
2626,
1279,
718,
5357,
2173,
1279,
1367
] |
what was the score on june 16? | SELECT "Score" FROM table_78104 WHERE "Date" = 'june 16' | [
10919,
373,
262,
4776,
319,
474,
1726,
1467,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3695,
13464,
33411,
366,
10430,
1,
796,
705,
73,
1726,
1467,
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
] | [
10919,
373,
262,
4776,
319,
474,
1726,
1467,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3695,
13464,
33411,
366,
10430,
1,
796,
705,
73,
1726,
1467,
6
] |
What is the location for the game with a score of w 106-81? | SELECT "Location/Attendance" FROM table_66089 WHERE "Score" = 'w 106-81' | [
2061,
318,
262,
4067,
329,
262,
983,
351,
257,
4776,
286,
266,
15696,
12,
6659,
30,
46506,
366,
14749,
14,
8086,
437,
590,
1,
16034,
3084,
62,
39885,
4531,
33411,
366,
26595,
1,
796,
705,
86,
15696,
12,
6659,
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
] | [
2061,
318,
262,
4067,
329,
262,
983,
351,
257,
4776,
286,
266,
15696,
12,
6659,
30,
46506,
366,
14749,
14,
8086,
437,
590,
1,
16034,
3084,
62,
39885,
4531,
33411,
366,
26595,
1,
796,
705,
86,
15696,
12,
6659,
6
] |
What is the verb meaning for class 4? | SELECT verb_meaning FROM table_name_64 WHERE class = "4" | [
2061,
318,
262,
15942,
3616,
329,
1398,
604,
30,
46506,
15942,
62,
24815,
16034,
3084,
62,
3672,
62,
2414,
33411,
1398,
796,
366,
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
] | [
2061,
318,
262,
15942,
3616,
329,
1398,
604,
30,
46506,
15942,
62,
24815,
16034,
3084,
62,
3672,
62,
2414,
33411,
1398,
796,
366,
19,
1
] |
Next semester , what 300 -level classes are there ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester... | [
10019,
24878,
837,
644,
5867,
532,
5715,
6097,
389,
612,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
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... | [
10019,
24878,
837,
644,
5867,
532,
5715,
6097,
389,
612,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,... |
Which Episode has a Rank of 1? | SELECT episode FROM table_name_71 WHERE rank = 1 | [
13828,
7922,
468,
257,
10916,
286,
352,
30,
46506,
4471,
16034,
3084,
62,
3672,
62,
4869,
33411,
4279,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7922,
468,
257,
10916,
286,
352,
30,
46506,
4471,
16034,
3084,
62,
3672,
62,
4869,
33411,
4279,
796,
352
] |
What was the 2011 gross revenue for the venue that had a gross revenue of $156,315 in 1982? | SELECT "Gross Revenue (2011)" FROM table_69198 WHERE "Gross Revenue (1982)" = '$156,315' | [
2061,
373,
262,
2813,
10319,
6426,
329,
262,
14359,
326,
550,
257,
10319,
6426,
286,
720,
21599,
11,
27936,
287,
14489,
30,
46506,
366,
38,
1214,
20197,
357,
9804,
16725,
16034,
3084,
62,
3388,
22337,
33411,
366,
38,
1214,
20197,
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
] | [
2061,
373,
262,
2813,
10319,
6426,
329,
262,
14359,
326,
550,
257,
10319,
6426,
286,
720,
21599,
11,
27936,
287,
14489,
30,
46506,
366,
38,
1214,
20197,
357,
9804,
16725,
16034,
3084,
62,
3388,
22337,
33411,
366,
38,
1214,
20197,
357,
... |
has patient 8016's arterial bp [diastolic] been greater than 68.0 degrees the last month? | 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 = 8016)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diast... | [
10134,
5827,
807,
27037,
338,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
587,
3744,
621,
8257,
13,
15,
7370,
262,
938,
1227,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
807,
27037,
338,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
587,
3744,
621,
8257,
13,
15,
7370,
262,
938,
1227,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... |
Which team has an up/down of + 3479? | SELECT "Team" FROM table_27072 WHERE "Up/Down" = '+ 3479' | [
13828,
1074,
468,
281,
510,
14,
2902,
286,
1343,
513,
31714,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1983,
2998,
17,
33411,
366,
4933,
14,
8048,
1,
796,
705,
10,
513,
31714,
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,
1074,
468,
281,
510,
14,
2902,
286,
1343,
513,
31714,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1983,
2998,
17,
33411,
366,
4933,
14,
8048,
1,
796,
705,
10,
513,
31714,
6
] |
count the number of patients whose year of birth is less than 2184 and item id is 51250? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2184" AND lab.itemid = "51250" | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
22883,
290,
2378,
4686,
318,
22243,
1120,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
4082,
318,
1342,
621,
362,
22883,
290,
2378,
4686,
318,
22243,
1120,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
224... |
What was the height of this Freshman with a forward position? | SELECT "Height" FROM table_27433 WHERE "Position" = 'Forward' AND "Year" = 'Freshman' | [
2061,
373,
262,
6001,
286,
428,
20138,
805,
351,
257,
2651,
2292,
30,
46506,
366,
23106,
1,
16034,
3084,
62,
28857,
2091,
33411,
366,
26545,
1,
796,
705,
39746,
6,
5357,
366,
17688,
1,
796,
705,
35857,
805,
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,
373,
262,
6001,
286,
428,
20138,
805,
351,
257,
2651,
2292,
30,
46506,
366,
23106,
1,
16034,
3084,
62,
28857,
2091,
33411,
366,
26545,
1,
796,
705,
39746,
6,
5357,
366,
17688,
1,
796,
705,
35857,
805,
6
] |
What is the most number of truck loads north? | SELECT MAX(number_of_truck_loads_north) FROM table_12791809_1 | [
2061,
318,
262,
749,
1271,
286,
7779,
15989,
5093,
30,
46506,
25882,
7,
17618,
62,
1659,
62,
83,
30915,
62,
46030,
62,
43588,
8,
16034,
3084,
62,
1065,
3720,
1507,
2931,
62,
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
] | [
2061,
318,
262,
749,
1271,
286,
7779,
15989,
5093,
30,
46506,
25882,
7,
17618,
62,
1659,
62,
83,
30915,
62,
46030,
62,
43588,
8,
16034,
3084,
62,
1065,
3720,
1507,
2931,
62,
16
] |
Who was the away team at the game at Victoria Park? | SELECT away_team FROM table_name_65 WHERE venue = "victoria park" | [
8241,
373,
262,
1497,
1074,
379,
262,
983,
379,
12313,
3250,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
2996,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] | [
1,
1,
1,
1,
1,
1,
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,
1497,
1074,
379,
262,
983,
379,
12313,
3250,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
2996,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] |
Who played home team at Victoria Park? | SELECT home_team FROM table_name_41 WHERE venue = "victoria park" | [
8241,
2826,
1363,
1074,
379,
12313,
3250,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3901,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] | [
1,
1,
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,
2826,
1363,
1074,
379,
12313,
3250,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3901,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] |
How many points did the Ford V8 with a Tyrrell 007 have? | SELECT points FROM table_name_3 WHERE engine = "ford v8" AND chassis = "tyrrell 007" | [
2437,
867,
2173,
750,
262,
8092,
569,
23,
351,
257,
14319,
11252,
3571,
22,
423,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
18,
33411,
3113,
796,
366,
3841,
410,
23,
1,
5357,
24587,
796,
366,
774,
81,
11252,
3571,
22,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2173,
750,
262,
8092,
569,
23,
351,
257,
14319,
11252,
3571,
22,
423,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
18,
33411,
3113,
796,
366,
3841,
410,
23,
1,
5357,
24587,
796,
366,
774,
81,
11252,
3571,
22,
1
] |
how many patients whose diagnoses short title is end stage renal disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "End stage renal disease" | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
886,
3800,
44375,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
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
] | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
886,
3800,
44375,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
7... |
what was the first specimen test of patient 31510 in 06/this year? | SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31510) AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', micro... | [
10919,
373,
262,
717,
31674,
1332,
286,
5827,
32647,
940,
287,
9130,
14,
5661,
614,
30,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
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... | [
10919,
373,
262,
717,
31674,
1332,
286,
5827,
32647,
940,
287,
9130,
14,
5661,
614,
30,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
... |
tell me the name of the drug which patient 40435 was prescribed in the same hospital encounter after receiving a audiological evaluation procedure this month? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 40435 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_proce... | [
33331,
502,
262,
1438,
286,
262,
2563,
543,
5827,
32320,
2327,
373,
14798,
287,
262,
976,
4436,
8791,
706,
6464,
257,
2709,
15071,
12660,
8771,
428,
1227,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
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... | [
33331,
502,
262,
1438,
286,
262,
2563,
543,
5827,
32320,
2327,
373,
14798,
287,
262,
976,
4436,
8791,
706,
6464,
257,
2709,
15071,
12660,
8771,
428,
1227,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11... |
what is the average hospital cost for a person with end stage renal disease in the previous year? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'end stage renal disease')) AND DATETIME(cost.chargetime, 'start... | [
10919,
318,
262,
2811,
4436,
1575,
329,
257,
1048,
351,
886,
3800,
44375,
4369,
287,
262,
2180,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4436,
1575,
329,
257,
1048,
351,
886,
3800,
44375,
4369,
287,
262,
2180,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
... |
What is the smallest introduced value? | SELECT MIN("Introduced") FROM table_16325 | [
2061,
318,
262,
18197,
5495,
1988,
30,
46506,
20625,
7203,
37143,
4943,
16034,
3084,
62,
24136,
1495
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
5495,
1988,
30,
46506,
20625,
7203,
37143,
4943,
16034,
3084,
62,
24136,
1495
] |
blood pressure: sbp > 160 mmhg or dbp > 100 mmhg. | SELECT * FROM table_dev_12 WHERE systolic_blood_pressure_sbp > 160 OR diastolic_blood_pressure_dbp > 100 | [
18041,
3833,
25,
264,
46583,
1875,
13454,
8085,
71,
70,
393,
20613,
79,
1875,
1802,
8085,
71,
70,
13,
46506,
1635,
16034,
3084,
62,
7959,
62,
1065,
33411,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
1875,
13454,
6375,
2566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
18041,
3833,
25,
264,
46583,
1875,
13454,
8085,
71,
70,
393,
20613,
79,
1875,
1802,
8085,
71,
70,
13,
46506,
1635,
16034,
3084,
62,
7959,
62,
1065,
33411,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
1875,
13454,
6375,
2566,
... |
ORALHEAL 990 is usually taught by which teacher ? | SELECT COUNT(instructor.name), instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'ORALHEAL' AND course.number = 990 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id ... | [
1581,
1847,
13909,
1847,
860,
3829,
318,
3221,
7817,
416,
543,
4701,
5633,
46506,
327,
28270,
7,
259,
7249,
273,
13,
3672,
828,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1581,
1847,
13909,
1847,
860,
3829,
318,
3221,
7817,
416,
543,
4701,
5633,
46506,
327,
28270,
7,
259,
7249,
273,
13,
3672,
828,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
... |
Give me the comparison about ID over the meter_400 by a bar chart, and list in desc by the names. | SELECT meter_400, ID FROM swimmer ORDER BY meter_400 DESC | [
23318,
502,
262,
7208,
546,
4522,
625,
262,
16430,
62,
7029,
416,
257,
2318,
8262,
11,
290,
1351,
287,
1715,
416,
262,
3891,
13,
46506,
16430,
62,
7029,
11,
4522,
16034,
9422,
647,
38678,
11050,
16430,
62,
7029,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
4522,
625,
262,
16430,
62,
7029,
416,
257,
2318,
8262,
11,
290,
1351,
287,
1715,
416,
262,
3891,
13,
46506,
16430,
62,
7029,
11,
4522,
16034,
9422,
647,
38678,
11050,
16430,
62,
7029,
22196,
34
] |
Show me the average of baseprice by bedtype in a histogram, and could you sort in ascending by the bars? | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY bedType | [
15307,
502,
262,
2811,
286,
1615,
538,
20970,
416,
3996,
4906,
287,
257,
1554,
21857,
11,
290,
714,
345,
3297,
287,
41988,
416,
262,
9210,
30,
46506,
3996,
6030,
11,
35224,
7,
8692,
18124,
8,
16034,
42043,
44441,
11050,
3996,
6030,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2811,
286,
1615,
538,
20970,
416,
3996,
4906,
287,
257,
1554,
21857,
11,
290,
714,
345,
3297,
287,
41988,
416,
262,
9210,
30,
46506,
3996,
6030,
11,
35224,
7,
8692,
18124,
8,
16034,
42043,
44441,
11050,
3996,
6030,
38... |
List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif | SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.range = 'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id = T3.id WHERE T1.rang... | [
8053,
262,
11394,
286,
18405,
326,
1718,
1111,
257,
4286,
286,
12269,
351,
2837,
705,
51,
12944,
74,
282,
22494,
6,
290,
257,
4286,
286,
12269,
351,
2837,
705,
5956,
64,
5674,
361,
46506,
309,
18,
13,
17938,
16034,
8598,
7054,
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... | [
8053,
262,
11394,
286,
18405,
326,
1718,
1111,
257,
4286,
286,
12269,
351,
2837,
705,
51,
12944,
74,
282,
22494,
6,
290,
257,
4286,
286,
12269,
351,
2837,
705,
5956,
64,
5674,
361,
46506,
309,
18,
13,
17938,
16034,
8598,
7054,
309,
... |
the last ward id of patient 76275 since 4 years ago is? | SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76275) AND NOT transfers.wardid IS NULL AND DATETIME(transfers.intime) >= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY transfers.intime DESC LIMIT 1 | [
1169,
938,
15305,
4686,
286,
5827,
8684,
23195,
1201,
604,
812,
2084,
318,
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,
33411,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1169,
938,
15305,
4686,
286,
5827,
8684,
23195,
1201,
604,
812,
2084,
318,
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,
33411,
25349,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the sum of department_id bin hire_date by time in a bar chart. | SELECT HIRE_DATE, SUM(DEPARTMENT_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,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
287,
... |
Return the the 'active to date' of the latest contact channel used by the customer named 'Tillman Ernser'. | SELECT MAX(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | [
13615,
262,
262,
705,
5275,
284,
3128,
6,
286,
262,
3452,
2800,
6518,
973,
416,
262,
6491,
3706,
705,
51,
359,
805,
22762,
2655,
4458,
46506,
25882,
7,
83,
17,
13,
5275,
62,
1462,
62,
4475,
8,
16034,
4297,
7054,
256,
16,
32357,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13615,
262,
262,
705,
5275,
284,
3128,
6,
286,
262,
3452,
2800,
6518,
973,
416,
262,
6491,
3706,
705,
51,
359,
805,
22762,
2655,
4458,
46506,
25882,
7,
83,
17,
13,
5275,
62,
1462,
62,
4475,
8,
16034,
4297,
7054,
256,
16,
32357,
12... |
What is the H/A in the semi-final round where oldham athletic were the opponents? | SELECT h___a FROM table_name_90 WHERE opponents = "oldham athletic" AND round = "semi-final" | [
2061,
318,
262,
367,
14,
32,
287,
262,
10663,
12,
20311,
2835,
810,
1468,
2763,
15177,
547,
262,
7691,
30,
46506,
289,
17569,
64,
16034,
3084,
62,
3672,
62,
3829,
33411,
7691,
796,
366,
727,
2763,
15177,
1,
5357,
2835,
796,
366,
325... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
367,
14,
32,
287,
262,
10663,
12,
20311,
2835,
810,
1468,
2763,
15177,
547,
262,
7691,
30,
46506,
289,
17569,
64,
16034,
3084,
62,
3672,
62,
3829,
33411,
7691,
796,
366,
727,
2763,
15177,
1,
5357,
2835,
796,
366,
325... |
Score of 3 4, and a Attendance larger than 34,609 happened on what date? | SELECT date FROM table_name_39 WHERE score = "3–4" AND attendance > 34 OFFSET 609 | [
26595,
286,
513,
604,
11,
290,
257,
46502,
590,
4025,
621,
4974,
11,
31751,
3022,
319,
644,
3128,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2670,
33411,
4776,
796,
366,
18,
1906,
19,
1,
5357,
14858,
1875,
4974,
3963,
10652,
2767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26595,
286,
513,
604,
11,
290,
257,
46502,
590,
4025,
621,
4974,
11,
31751,
3022,
319,
644,
3128,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2670,
33411,
4776,
796,
366,
18,
1906,
19,
1,
5357,
14858,
1875,
4974,
3963,
10652,
2767,
... |
count the number of patients whose admission year is less than 2180 and procedure short title is thoracentesis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2180" AND procedures.short_title = "Thoracentesis" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
15259,
290,
8771,
1790,
3670,
318,
41899,
12643,
9339,
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,
614,
318,
1342,
621,
362,
15259,
290,
8771,
1790,
3670,
318,
41899,
12643,
9339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Bar graph to show the total number from different payment method code, I want to show by the payment_method_code in ascending. | SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY payment_method_code | [
10374,
4823,
284,
905,
262,
2472,
1271,
422,
1180,
6074,
2446,
2438,
11,
314,
765,
284,
905,
416,
262,
6074,
62,
24396,
62,
8189,
287,
41988,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
44441,
11050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
4823,
284,
905,
262,
2472,
1271,
422,
1180,
6074,
2446,
2438,
11,
314,
765,
284,
905,
416,
262,
6074,
62,
24396,
62,
8189,
287,
41988,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
44441,
11050,
... |
What time has q as the notes, and Australia as the country? | SELECT "Time" FROM table_64015 WHERE "Notes" = 'q' AND "Country" = 'australia' | [
2061,
640,
468,
10662,
355,
262,
4710,
11,
290,
4505,
355,
262,
1499,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2414,
25150,
33411,
366,
16130,
1,
796,
705,
80,
6,
5357,
366,
33921,
1,
796,
705,
64,
436,
1373,
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,
1,
1,
1
] | [
2061,
640,
468,
10662,
355,
262,
4710,
11,
290,
4505,
355,
262,
1499,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2414,
25150,
33411,
366,
16130,
1,
796,
705,
80,
6,
5357,
366,
33921,
1,
796,
705,
64,
436,
1373,
544,
6
] |
Which home team has a playoff record of (0-0) and played La Crosse Spartans? | SELECT home FROM table_name_3 WHERE plyff = "(0-0)" AND opponent = "la crosse spartans" | [
13828,
1363,
1074,
468,
257,
13119,
1700,
286,
357,
15,
12,
15,
8,
290,
2826,
4689,
26942,
325,
45130,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
18,
33411,
35960,
487,
796,
30629,
15,
12,
15,
16725,
5357,
6125,
796,
366,
5031,
269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
468,
257,
13119,
1700,
286,
357,
15,
12,
15,
8,
290,
2826,
4689,
26942,
325,
45130,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
18,
33411,
35960,
487,
796,
30629,
15,
12,
15,
16725,
5357,
6125,
796,
366,
5031,
269... |
What is the score for the game against Malacca at the Klfa Stadium, Cheras? | SELECT "Score" FROM table_5806 WHERE "Opponent" = 'malacca' AND "Venue" = 'klfa stadium, cheras' | [
2061,
318,
262,
4776,
329,
262,
983,
1028,
4434,
43552,
379,
262,
509,
1652,
64,
10499,
11,
19305,
292,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
20,
37988,
33411,
366,
27524,
3471,
1,
796,
705,
7617,
43552,
6,
5357,
366,
37522,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
329,
262,
983,
1028,
4434,
43552,
379,
262,
509,
1652,
64,
10499,
11,
19305,
292,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
20,
37988,
33411,
366,
27524,
3471,
1,
796,
705,
7617,
43552,
6,
5357,
366,
37522,
51... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by time, I want to show by the sum department id in asc please. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(DEPARTMENT_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
314,
765,
284,
905,
416,
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,
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
314,
765,
284,
905,
416,
26... |
What is the record at the neutral site for when the overall record is ui, 27-16? | SELECT at_neutral_site FROM table_16201038_4 WHERE overall_record = "UI, 27-16" | [
2061,
318,
262,
1700,
379,
262,
8500,
2524,
329,
618,
262,
4045,
1700,
318,
334,
72,
11,
2681,
12,
1433,
30,
46506,
379,
62,
29797,
62,
15654,
16034,
3084,
62,
1433,
10333,
2548,
62,
19,
33411,
4045,
62,
22105,
796,
366,
10080,
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
] | [
2061,
318,
262,
1700,
379,
262,
8500,
2524,
329,
618,
262,
4045,
1700,
318,
334,
72,
11,
2681,
12,
1433,
30,
46506,
379,
62,
29797,
62,
15654,
16034,
3084,
62,
1433,
10333,
2548,
62,
19,
33411,
4045,
62,
22105,
796,
366,
10080,
11,
... |
Find times of trains that run through stations for the local authority Chiltern, compare the total number of different times, I want to rank by the X from high to low. | SELECT time, COUNT(time) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" GROUP BY time ORDER BY time DESC | [
16742,
1661,
286,
13404,
326,
1057,
832,
8985,
329,
262,
1957,
4934,
609,
346,
759,
11,
8996,
262,
2472,
1271,
286,
1180,
1661,
11,
314,
765,
284,
4279,
416,
262,
1395,
422,
1029,
284,
1877,
13,
46506,
640,
11,
327,
28270,
7,
2435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
286,
13404,
326,
1057,
832,
8985,
329,
262,
1957,
4934,
609,
346,
759,
11,
8996,
262,
2472,
1271,
286,
1180,
1661,
11,
314,
765,
284,
4279,
416,
262,
1395,
422,
1029,
284,
1877,
13,
46506,
640,
11,
327,
28270,
7,
2435,
... |
when was patient 15945 for the last time received intake on this month/28? | SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15945)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT_TIME(), ... | [
12518,
373,
5827,
26422,
2231,
329,
262,
938,
640,
2722,
10337,
319,
428,
1227,
14,
2078,
30,
46506,
287,
79,
1133,
85,
658,
62,
33967,
13,
40926,
2435,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
5827,
26422,
2231,
329,
262,
938,
640,
2722,
10337,
319,
428,
1227,
14,
2078,
30,
46506,
287,
79,
1133,
85,
658,
62,
33967,
13,
40926,
2435,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
... |
What is the opposition when the tally was 0-11? | SELECT opposition FROM table_name_25 WHERE tally = "0-11" | [
2061,
318,
262,
5471,
618,
262,
26767,
373,
657,
12,
1157,
30,
46506,
5471,
16034,
3084,
62,
3672,
62,
1495,
33411,
26767,
796,
366,
15,
12,
1157,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5471,
618,
262,
26767,
373,
657,
12,
1157,
30,
46506,
5471,
16034,
3084,
62,
3672,
62,
1495,
33411,
26767,
796,
366,
15,
12,
1157,
1
] |
how many hours has elapsed since patient 18866 last received a laboratory test of alkaline phosphatase on their current hospital encounter? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', labevents.charttime)) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'alkaline phosphatase') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18866 A... | [
4919,
867,
2250,
468,
42118,
1201,
5827,
27778,
2791,
938,
2722,
257,
14010,
1332,
286,
32915,
20663,
18431,
265,
589,
319,
511,
1459,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
42118,
1201,
5827,
27778,
2791,
938,
2722,
257,
14010,
1332,
286,
32915,
20663,
18431,
265,
589,
319,
511,
1459,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694... |
What is the total number of entries for Leif Olson? | SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson" | [
2061,
318,
262,
2472,
1271,
286,
12784,
329,
1004,
361,
31530,
30,
46506,
327,
28270,
7,
301,
5889,
8,
16034,
3084,
62,
1238,
3270,
405,
1238,
62,
17,
33411,
2137,
796,
366,
3123,
361,
31530,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12784,
329,
1004,
361,
31530,
30,
46506,
327,
28270,
7,
301,
5889,
8,
16034,
3084,
62,
1238,
3270,
405,
1238,
62,
17,
33411,
2137,
796,
366,
3123,
361,
31530,
1
] |
Show me a line chart of how the number of creation change over the creation, rank in desc by the x-axis please. | SELECT Creation, COUNT(Creation) FROM department ORDER BY Creation DESC | [
15307,
502,
257,
1627,
8262,
286,
703,
262,
1271,
286,
6282,
1487,
625,
262,
6282,
11,
4279,
287,
1715,
416,
262,
2124,
12,
22704,
3387,
13,
46506,
21582,
11,
327,
28270,
7,
12443,
341,
8,
16034,
5011,
38678,
11050,
21582,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
257,
1627,
8262,
286,
703,
262,
1271,
286,
6282,
1487,
625,
262,
6282,
11,
4279,
287,
1715,
416,
262,
2124,
12,
22704,
3387,
13,
46506,
21582,
11,
327,
28270,
7,
12443,
341,
8,
16034,
5011,
38678,
11050,
21582,
22196,
34
] |
count the number of patients who received a laxatives - doss (colace) treatment within 2 months after they were diagnosed with spinal cord injury - thoracic since 3 years ago. | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'spinal cord injury - thoracic' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-3 year'))... | [
9127,
262,
1271,
286,
3871,
508,
2722,
257,
36919,
2929,
532,
288,
793,
357,
4033,
558,
8,
3513,
1626,
362,
1933,
706,
484,
547,
14641,
351,
26234,
15050,
5095,
532,
41899,
330,
291,
1201,
513,
812,
2084,
13,
46506,
327,
28270,
7,
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... | [
9127,
262,
1271,
286,
3871,
508,
2722,
257,
36919,
2929,
532,
288,
793,
357,
4033,
558,
8,
3513,
1626,
362,
1933,
706,
484,
547,
14641,
351,
26234,
15050,
5095,
532,
41899,
330,
291,
1201,
513,
812,
2084,
13,
46506,
327,
28270,
7,
3... |
When 14.85 kilometers squared is the land area what is the name? | SELECT name FROM table_189598_7 WHERE land_area__km²_ = "14.85" | [
2215,
1478,
13,
5332,
18212,
44345,
318,
262,
1956,
1989,
644,
318,
262,
1438,
30,
46506,
1438,
16034,
3084,
62,
23362,
41292,
62,
22,
33411,
1956,
62,
20337,
834,
13276,
31185,
62,
796,
366,
1415,
13,
5332,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1478,
13,
5332,
18212,
44345,
318,
262,
1956,
1989,
644,
318,
262,
1438,
30,
46506,
1438,
16034,
3084,
62,
23362,
41292,
62,
22,
33411,
1956,
62,
20337,
834,
13276,
31185,
62,
796,
366,
1415,
13,
5332,
1
] |
Show ids for the faculty members who don't advise any student. | SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student | [
15307,
220,
2340,
329,
262,
12829,
1866,
508,
836,
470,
18595,
597,
3710,
13,
46506,
13585,
2389,
16034,
35262,
7788,
42006,
33493,
20685,
16034,
13613
] | [
1,
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,
220,
2340,
329,
262,
12829,
1866,
508,
836,
470,
18595,
597,
3710,
13,
46506,
13585,
2389,
16034,
35262,
7788,
42006,
33493,
20685,
16034,
13613
] |
What is the Date of the Ameritech Senior Open? | SELECT date FROM table_name_61 WHERE tournament = "ameritech senior open" | [
2061,
318,
262,
7536,
286,
262,
33391,
45396,
14017,
4946,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5333,
33411,
7756,
796,
366,
2382,
45396,
4664,
1280,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
262,
33391,
45396,
14017,
4946,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5333,
33411,
7756,
796,
366,
2382,
45396,
4664,
1280,
1
] |
Name the Result F A that has a League position of 1st on 4 january 1994? | SELECT result_f___a FROM table_name_87 WHERE league_position = "1st" AND date = "4 january 1994" | [
5376,
262,
25414,
376,
317,
326,
468,
257,
4041,
2292,
286,
352,
301,
319,
604,
42897,
2838,
9162,
30,
46506,
1255,
62,
69,
17569,
64,
16034,
3084,
62,
3672,
62,
5774,
33411,
4652,
62,
9150,
796,
366,
16,
301,
1,
5357,
3128,
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
] | [
5376,
262,
25414,
376,
317,
326,
468,
257,
4041,
2292,
286,
352,
301,
319,
604,
42897,
2838,
9162,
30,
46506,
1255,
62,
69,
17569,
64,
16034,
3084,
62,
3672,
62,
5774,
33411,
4652,
62,
9150,
796,
366,
16,
301,
1,
5357,
3128,
796,
... |
For those employees who was hired before 2002-06-21, find hire_date and the average of manager_id bin hire_date by time, and visualize them by a bar chart, and show in descending by the y-axis please. | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(MANAGER_ID) DESC | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1064,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
905,
287,
31491,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
905,
287,
31491,
4... |
Return a bar chart about the number of companies for each industry, and order in asc by the Y please. | SELECT Industry, COUNT(Industry) FROM company GROUP BY Industry ORDER BY COUNT(Industry) | [
13615,
257,
2318,
8262,
546,
262,
1271,
286,
2706,
329,
1123,
2831,
11,
290,
1502,
287,
10570,
416,
262,
575,
3387,
13,
46506,
17420,
11,
327,
28270,
7,
35848,
563,
8,
16034,
1664,
44441,
11050,
17420,
38678,
11050,
327,
28270,
7,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
2318,
8262,
546,
262,
1271,
286,
2706,
329,
1123,
2831,
11,
290,
1502,
287,
10570,
416,
262,
575,
3387,
13,
46506,
17420,
11,
327,
28270,
7,
35848,
563,
8,
16034,
1664,
44441,
11050,
17420,
38678,
11050,
327,
28270,
7,
358... |
What is the final score when they played Frankfurt Galaxy? | SELECT final_score FROM table_24882796_2 WHERE opponent = "Frankfurt Galaxy" | [
2061,
318,
262,
2457,
4776,
618,
484,
2826,
31970,
9252,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
1731,
3459,
1983,
4846,
62,
17,
33411,
6125,
796,
366,
17439,
29205,
9252,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
2457,
4776,
618,
484,
2826,
31970,
9252,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
1731,
3459,
1983,
4846,
62,
17,
33411,
6125,
796,
366,
17439,
29205,
9252,
1
] |
how many swimmers swam at least a 1:59.99 race ? | SELECT COUNT("name") FROM table_204_29 WHERE "time" = 1 | [
4919,
867,
1509,
36904,
1509,
321,
379,
1551,
257,
352,
25,
3270,
13,
2079,
3234,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
1959,
33411,
366,
2435,
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,
1,
1,
1
] | [
4919,
867,
1509,
36904,
1509,
321,
379,
1551,
257,
352,
25,
3270,
13,
2079,
3234,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
1959,
33411,
366,
2435,
1,
796,
352
] |
What was the result of the game after week 3 against the New York Giants? | SELECT "Result" FROM table_37500 WHERE "Week" > '3' AND "Opponent" = 'new york giants' | [
2061,
373,
262,
1255,
286,
262,
983,
706,
1285,
513,
1028,
262,
968,
1971,
12056,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
22318,
405,
33411,
366,
20916,
1,
1875,
705,
18,
6,
5357,
366,
27524,
3471,
1,
796,
705,
3605,
331,
967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
706,
1285,
513,
1028,
262,
968,
1971,
12056,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
22318,
405,
33411,
366,
20916,
1,
1875,
705,
18,
6,
5357,
366,
27524,
3471,
1,
796,
705,
3605,
331,
967,
... |
Name the Mountain Peak which has a Rank of 62? | SELECT "Mountain Peak" FROM table_77144 WHERE "Rank" = '62' | [
5376,
262,
9638,
23974,
543,
468,
257,
10916,
286,
8190,
30,
46506,
366,
44,
18635,
23974,
1,
16034,
3084,
62,
3324,
18444,
33411,
366,
27520,
1,
796,
705,
5237,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
9638,
23974,
543,
468,
257,
10916,
286,
8190,
30,
46506,
366,
44,
18635,
23974,
1,
16034,
3084,
62,
3324,
18444,
33411,
366,
27520,
1,
796,
705,
5237,
6
] |
A bar chart about what is the average age for each city and what are those cities?, order in asc by the y axis please. | SELECT city_code, AVG(Age) FROM Student GROUP BY city_code ORDER BY AVG(Age) | [
32,
2318,
8262,
546,
644,
318,
262,
2811,
2479,
329,
1123,
1748,
290,
644,
389,
883,
4736,
21747,
1502,
287,
10570,
416,
262,
331,
16488,
3387,
13,
46506,
1748,
62,
8189,
11,
35224,
7,
23396,
8,
16034,
13613,
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,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
546,
644,
318,
262,
2811,
2479,
329,
1123,
1748,
290,
644,
389,
883,
4736,
21747,
1502,
287,
10570,
416,
262,
331,
16488,
3387,
13,
46506,
1748,
62,
8189,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
1748,
62,
... |
The nation of denmark has what average total nad more than 0 gold? | SELECT AVG("Total") FROM table_39568 WHERE "Nation" = 'denmark' AND "Gold" > '0' | [
464,
3277,
286,
2853,
4102,
468,
644,
2811,
2472,
299,
324,
517,
621,
657,
3869,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
31010,
3104,
33411,
366,
46108,
1,
796,
705,
6559,
4102,
6,
5357,
366,
13306,
1,
1875,
705,
15,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
464,
3277,
286,
2853,
4102,
468,
644,
2811,
2472,
299,
324,
517,
621,
657,
3869,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
31010,
3104,
33411,
366,
46108,
1,
796,
705,
6559,
4102,
6,
5357,
366,
13306,
1,
1875,
705,
15,
6... |
Count of the positively scored, open questions with a positively scored, accepted answer, by month. | SELECT DATEFROMPARTS(TIME_TO_STR(Q.CreationDate, '%Y'), TIME_TO_STR(Q.CreationDate, '%M'), 1) AS Month, COUNT(*) AS Count FROM Posts AS Q, Posts AS A WHERE Q.AcceptedAnswerId = A.Id AND Q.CreationDate < @TsNow AND Q.ClosedDate IS NULL AND Q.Score > 0 AND A.Score > 0 GROUP BY DATEFROMPARTS(TIME_TO_STR(Q.CreationDate, '%... | [
12332,
286,
262,
19888,
7781,
11,
1280,
2683,
351,
257,
19888,
7781,
11,
6292,
3280,
11,
416,
1227,
13,
46506,
360,
6158,
10913,
2662,
27082,
4694,
7,
34694,
62,
10468,
62,
18601,
7,
48,
13,
12443,
341,
10430,
11,
705,
4,
56,
33809,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
19888,
7781,
11,
1280,
2683,
351,
257,
19888,
7781,
11,
6292,
3280,
11,
416,
1227,
13,
46506,
360,
6158,
10913,
2662,
27082,
4694,
7,
34694,
62,
10468,
62,
18601,
7,
48,
13,
12443,
341,
10430,
11,
705,
4,
56,
33809,... |
What is the birthday of the player who has Years at Club of 1951? | SELECT date_of_birth FROM table_name_12 WHERE years_at_club = "1951" | [
2061,
318,
262,
10955,
286,
262,
2137,
508,
468,
13212,
379,
6289,
286,
27937,
30,
46506,
3128,
62,
1659,
62,
24280,
16034,
3084,
62,
3672,
62,
1065,
33411,
812,
62,
265,
62,
18664,
796,
366,
1129,
4349,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10955,
286,
262,
2137,
508,
468,
13212,
379,
6289,
286,
27937,
30,
46506,
3128,
62,
1659,
62,
24280,
16034,
3084,
62,
3672,
62,
1065,
33411,
812,
62,
265,
62,
18664,
796,
366,
1129,
4349,
1
] |
Which Points has a Points for of 381? | SELECT points FROM table_name_34 WHERE points_for = "381" | [
13828,
11045,
468,
257,
11045,
329,
286,
4353,
16,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
2682,
33411,
2173,
62,
1640,
796,
366,
36626,
1
] | [
1,
1,
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,
468,
257,
11045,
329,
286,
4353,
16,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
2682,
33411,
2173,
62,
1640,
796,
366,
36626,
1
] |
Name the total number of democratic votes when the other votes are less than 18 and the percentage of R votes are 52.63% and votes since 1856 less than 38 | SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 38" | [
5376,
262,
2472,
1271,
286,
10518,
5690,
618,
262,
584,
5690,
389,
1342,
621,
1248,
290,
262,
5873,
286,
371,
5690,
389,
6740,
13,
5066,
4,
290,
5690,
1201,
1248,
3980,
1342,
621,
4353,
46506,
327,
28270,
7,
41232,
62,
29307,
8,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5376,
262,
2472,
1271,
286,
10518,
5690,
618,
262,
584,
5690,
389,
1342,
621,
1248,
290,
262,
5873,
286,
371,
5690,
389,
6740,
13,
5066,
4,
290,
5690,
1201,
1248,
3980,
1342,
621,
4353,
46506,
327,
28270,
7,
41232,
62,
29307,
8,
160... |
What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4? | SELECT SUM("Events") FROM table_41492 WHERE "Top-10" = '7' AND "Top-5" > '4' | [
2061,
318,
262,
2160,
286,
18715,
11,
618,
5849,
12,
940,
318,
767,
11,
290,
618,
5849,
12,
20,
318,
3744,
621,
604,
30,
46506,
35683,
7203,
37103,
4943,
16034,
3084,
62,
37309,
5892,
33411,
366,
9126,
12,
940,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
18715,
11,
618,
5849,
12,
940,
318,
767,
11,
290,
618,
5849,
12,
20,
318,
3744,
621,
604,
30,
46506,
35683,
7203,
37103,
4943,
16034,
3084,
62,
37309,
5892,
33411,
366,
9126,
12,
940,
1,
796,
705,
22,
6,... |
show the top three most commonly prescribed drugs for patients of the age of 40s until 2100? | SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 40 AND 49) AND STRFTIME('%y', prescriptions.startdate) <= '2100' GROUP BY prescriptions.drug) AS t1 W... | [
12860,
262,
1353,
1115,
749,
8811,
14798,
5010,
329,
3871,
286,
262,
2479,
286,
2319,
82,
1566,
38123,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
262,
1353,
1115,
749,
8811,
14798,
5010,
329,
3871,
286,
262,
2479,
286,
2319,
82,
1566,
38123,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
1... |
Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast? | SELECT MIN("Against") FROM table_65248 WHERE "Status" = 'tour match' AND "Venue" = 'ravenhill , belfast' | [
13828,
262,
9016,
12914,
468,
257,
12678,
286,
4205,
2872,
11,
290,
257,
9932,
518,
286,
37735,
12639,
837,
894,
7217,
30,
46506,
20625,
7203,
39276,
4943,
16034,
3084,
62,
2996,
23045,
33411,
366,
19580,
1,
796,
705,
83,
454,
2872,
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
] | [
13828,
262,
9016,
12914,
468,
257,
12678,
286,
4205,
2872,
11,
290,
257,
9932,
518,
286,
37735,
12639,
837,
894,
7217,
30,
46506,
20625,
7203,
39276,
4943,
16034,
3084,
62,
2996,
23045,
33411,
366,
19580,
1,
796,
705,
83,
454,
2872,
6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.