instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Give me the comparison about the sum of Team_ID over the All_Home , and group by attribute All_Home by a bar chart, display by the X-axis from high to low. | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC | [
23318,
502,
262,
7208,
546,
262,
2160,
286,
4816,
62,
2389,
625,
262,
1439,
62,
16060,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
416,
257,
2318,
8262,
11,
3359,
416,
262,
1395,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
1439,
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... | [
23318,
502,
262,
7208,
546,
262,
2160,
286,
4816,
62,
2389,
625,
262,
1439,
62,
16060,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
416,
257,
2318,
8262,
11,
3359,
416,
262,
1395,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
1439,
62... |
how many hospitalized patients were there? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL | [
4919,
867,
31736,
3871,
547,
612,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
6381,
354,
2435,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
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,
31736,
3871,
547,
612,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
6381,
354,
2435,
3180,
15697
] |
How many original artists were there for the Group Performance? | SELECT COUNT("Original artist") FROM table_3523 WHERE "Theme" = 'Group Performance' | [
2437,
867,
2656,
7912,
547,
612,
329,
262,
4912,
15193,
30,
46506,
327,
28270,
7203,
20556,
6802,
4943,
16034,
3084,
62,
2327,
1954,
33411,
366,
47863,
1,
796,
705,
13247,
15193,
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
] | [
2437,
867,
2656,
7912,
547,
612,
329,
262,
4912,
15193,
30,
46506,
327,
28270,
7203,
20556,
6802,
4943,
16034,
3084,
62,
2327,
1954,
33411,
366,
47863,
1,
796,
705,
13247,
15193,
6
] |
What is the number of films of each director? Return a bar chart. | SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by | [
2061,
318,
262,
1271,
286,
7328,
286,
1123,
3437,
30,
8229,
257,
2318,
8262,
13,
46506,
4128,
276,
62,
1525,
11,
327,
28270,
7,
13470,
276,
62,
1525,
8,
16034,
2646,
44441,
11050,
4128,
276,
62,
1525
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7328,
286,
1123,
3437,
30,
8229,
257,
2318,
8262,
13,
46506,
4128,
276,
62,
1525,
11,
327,
28270,
7,
13470,
276,
62,
1525,
8,
16034,
2646,
44441,
11050,
4128,
276,
62,
1525
] |
How many goals against have 64 for games, a loss less than 12, with points greater than 107? | SELECT SUM("Goals against") FROM table_40446 WHERE "Games" = '64' AND "Lost" < '12' AND "Points" > '107' | [
2437,
867,
4661,
1028,
423,
5598,
329,
1830,
11,
257,
2994,
1342,
621,
1105,
11,
351,
2173,
3744,
621,
16226,
30,
46506,
35683,
7203,
5247,
874,
1028,
4943,
16034,
3084,
62,
1821,
27260,
33411,
366,
24474,
1,
796,
705,
2414,
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
] | [
2437,
867,
4661,
1028,
423,
5598,
329,
1830,
11,
257,
2994,
1342,
621,
1105,
11,
351,
2173,
3744,
621,
16226,
30,
46506,
35683,
7203,
5247,
874,
1028,
4943,
16034,
3084,
62,
1821,
27260,
33411,
366,
24474,
1,
796,
705,
2414,
6,
5357,
... |
How many classes are held in each department Visualize by bar chart, and sort names from low to high order. | SELECT DEPT_CODE, COUNT(*) FROM CLASS AS T1 JOIN COURSE AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY DEPT_CODE ORDER BY DEPT_CODE | [
2437,
867,
6097,
389,
2714,
287,
1123,
5011,
15612,
1096,
416,
2318,
8262,
11,
290,
3297,
3891,
422,
1877,
284,
1029,
1502,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
42715,
7054,
309,
16,
32357,
1268,
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... | [
2437,
867,
6097,
389,
2714,
287,
1123,
5011,
15612,
1096,
416,
2318,
8262,
11,
290,
3297,
3891,
422,
1877,
284,
1029,
1502,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
42715,
7054,
309,
16,
32357,
1268,
373... |
what constituency comes immediately before palanpur ? | SELECT "constituency" FROM table_204_683 WHERE "no." = (SELECT "no." FROM table_204_683 WHERE "constituency" = 'palanpur') - 1 | [
10919,
28280,
2058,
3393,
878,
6340,
272,
14225,
5633,
46506,
366,
9979,
34272,
1387,
1,
16034,
3084,
62,
18638,
62,
47521,
33411,
366,
3919,
526,
796,
357,
46506,
366,
3919,
526,
16034,
3084,
62,
18638,
62,
47521,
33411,
366,
9979,
342... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28280,
2058,
3393,
878,
6340,
272,
14225,
5633,
46506,
366,
9979,
34272,
1387,
1,
16034,
3084,
62,
18638,
62,
47521,
33411,
366,
3919,
526,
796,
357,
46506,
366,
3919,
526,
16034,
3084,
62,
18638,
62,
47521,
33411,
366,
9979,
342... |
What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163? | SELECT COUNT("Decile") FROM table_80225 WHERE "Area" = 'whitby' AND "Name" = 'samuel marsden collegiate school' AND "Roll" > '163' | [
2061,
373,
262,
875,
576,
286,
17100,
8706,
6559,
34890,
9386,
3961,
287,
13183,
1525,
11,
618,
340,
550,
257,
4836,
2440,
621,
26826,
30,
46506,
327,
28270,
7203,
10707,
576,
4943,
16034,
3084,
62,
1795,
18182,
33411,
366,
30547,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
875,
576,
286,
17100,
8706,
6559,
34890,
9386,
3961,
287,
13183,
1525,
11,
618,
340,
550,
257,
4836,
2440,
621,
26826,
30,
46506,
327,
28270,
7203,
10707,
576,
4943,
16034,
3084,
62,
1795,
18182,
33411,
366,
30547,
1,
... |
what is the maximum days of hospital stay for female patients ? | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.gender = "F" | [
10919,
318,
262,
5415,
1528,
286,
4436,
2652,
329,
4048,
3871,
5633,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
1528,
286,
4436,
2652,
329,
4048,
3871,
5633,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1
] |
did patient 25590 have laboratory test in 02/this year? | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25590) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', labevents.charttime) = '02' | [
20839,
5827,
1679,
36993,
423,
14010,
1332,
287,
7816,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20839,
5827,
1679,
36993,
423,
14010,
1332,
287,
7816,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
... |
List the studios of each film and the number of films produced by that studio Show bar chart, sort X in desc order. | SELECT Studio, COUNT(*) FROM film GROUP BY Studio ORDER BY Studio DESC | [
8053,
262,
20747,
286,
1123,
2646,
290,
262,
1271,
286,
7328,
4635,
416,
326,
8034,
5438,
2318,
8262,
11,
3297,
1395,
287,
1715,
1502,
13,
46506,
11733,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
11733,
38678,
11050,
11733,
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
] | [
8053,
262,
20747,
286,
1123,
2646,
290,
262,
1271,
286,
7328,
4635,
416,
326,
8034,
5438,
2318,
8262,
11,
3297,
1395,
287,
1715,
1502,
13,
46506,
11733,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
11733,
38678,
11050,
11733,
22... |
What is the smallest number of races competed in with 11 podiums? | SELECT MIN("Races") FROM table_3295 WHERE "Podiums" = '11' | [
2061,
318,
262,
18197,
1271,
286,
9558,
32440,
287,
351,
1367,
27941,
82,
30,
46506,
20625,
7203,
49,
2114,
4943,
16034,
3084,
62,
18,
25710,
33411,
366,
47,
12664,
82,
1,
796,
705,
1157,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
1271,
286,
9558,
32440,
287,
351,
1367,
27941,
82,
30,
46506,
20625,
7203,
49,
2114,
4943,
16034,
3084,
62,
18,
25710,
33411,
366,
47,
12664,
82,
1,
796,
705,
1157,
6
] |
what was the only year keene won class aa ? | SELECT "school year" FROM table_204_133 WHERE "class aa" = 'keene' | [
10919,
373,
262,
691,
614,
885,
1734,
1839,
1398,
257,
64,
5633,
46506,
366,
14347,
614,
1,
16034,
3084,
62,
18638,
62,
16945,
33411,
366,
4871,
257,
64,
1,
796,
705,
365,
1734,
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
] | [
10919,
373,
262,
691,
614,
885,
1734,
1839,
1398,
257,
64,
5633,
46506,
366,
14347,
614,
1,
16034,
3084,
62,
18638,
62,
16945,
33411,
366,
4871,
257,
64,
1,
796,
705,
365,
1734,
6
] |
Posts which used HTML version of FAA P/CG. | SELECT p.Id AS "post_link", pt.Name AS PostType, p.CreationDate, u.DisplayName AS PostWrittenBy, p.Body FROM Posts AS p JOIN PostTypes AS pt ON p.PostTypeId = pt.Id JOIN Users AS u ON p.OwnerUserId = u.Id WHERE p.Body LIKE '%http://www.faa.gov/air_traffic/publications/atpubs/pcg/%' ORDER BY p.CreationDate | [
21496,
543,
973,
11532,
2196,
286,
26228,
350,
14,
39816,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
42975,
13,
5376,
7054,
2947,
6030,
11,
279,
13,
12443,
341,
10430,
11,
334,
13,
23114,
5376,
7054,
2947,
25354,
3886,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
21496,
543,
973,
11532,
2196,
286,
26228,
350,
14,
39816,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
42975,
13,
5376,
7054,
2947,
6030,
11,
279,
13,
12443,
341,
10430,
11,
334,
13,
23114,
5376,
7054,
2947,
25354,
3886,... |
WHAT YEAR HAS A TO PAR SMALLER THAN 16, TOTAL 151? | SELECT year_s__won FROM table_name_86 WHERE to_par < 16 AND total = 151 | [
32971,
32914,
33930,
317,
5390,
29463,
9447,
7036,
1137,
2320,
1565,
1467,
11,
36247,
25326,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
4521,
33411,
284,
62,
1845,
1279,
1467,
5357,
2472,
796,
25326
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
32914,
33930,
317,
5390,
29463,
9447,
7036,
1137,
2320,
1565,
1467,
11,
36247,
25326,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
4521,
33411,
284,
62,
1845,
1279,
1467,
5357,
2472,
796,
25326
] |
what settlement is listed right after oulu ? | SELECT "settlement" FROM table_204_563 WHERE id = (SELECT id FROM table_204_563 WHERE "settlement" = 'oulu') + 1 | [
10919,
9443,
318,
5610,
826,
706,
267,
15712,
5633,
46506,
366,
17744,
1732,
1,
16034,
3084,
62,
18638,
62,
46572,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
46572,
33411,
366,
17744,
1732,
1,
796,
705,
280,
2290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9443,
318,
5610,
826,
706,
267,
15712,
5633,
46506,
366,
17744,
1732,
1,
16034,
3084,
62,
18638,
62,
46572,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
46572,
33411,
366,
17744,
1732,
1,
796,
705,
280,
2290,
... |
What is Season, when Goals is less than 6, and when Team is 'Tarbiat Yazd'? | SELECT "Season" FROM table_79117 WHERE "Goals" < '6' AND "Team" = 'tarbiat yazd' | [
2061,
318,
7369,
11,
618,
28510,
318,
1342,
621,
718,
11,
290,
618,
4816,
318,
705,
51,
38039,
5375,
35856,
67,
30960,
46506,
366,
18960,
1,
16034,
3084,
62,
3720,
17657,
33411,
366,
5247,
874,
1,
1279,
705,
21,
6,
5357,
366,
15592,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7369,
11,
618,
28510,
318,
1342,
621,
718,
11,
290,
618,
4816,
318,
705,
51,
38039,
5375,
35856,
67,
30960,
46506,
366,
18960,
1,
16034,
3084,
62,
3720,
17657,
33411,
366,
5247,
874,
1,
1279,
705,
21,
6,
5357,
366,
15592,... |
What is the average decimal with a 110010 binary and a glyph greater than 2? | SELECT AVG("Decimal") FROM table_58949 WHERE "Binary" = '110010' AND "Glyph" > '2' | [
2061,
318,
262,
2811,
32465,
351,
257,
36566,
940,
13934,
290,
257,
25874,
3744,
621,
362,
30,
46506,
35224,
7203,
10707,
4402,
4943,
16034,
3084,
62,
44169,
2920,
33411,
366,
33,
3219,
1,
796,
705,
1157,
37187,
6,
5357,
366,
38,
306,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32465,
351,
257,
36566,
940,
13934,
290,
257,
25874,
3744,
621,
362,
30,
46506,
35224,
7203,
10707,
4402,
4943,
16034,
3084,
62,
44169,
2920,
33411,
366,
33,
3219,
1,
796,
705,
1157,
37187,
6,
5357,
366,
38,
306,... |
How many races have less than 2 podiums and 19th position before 2009? | SELECT AVG("Races") FROM table_68129 WHERE "Podiums" < '2' AND "Position" = '19th' AND "Season" < '2009' | [
2437,
867,
9558,
423,
1342,
621,
362,
27941,
82,
290,
678,
400,
2292,
878,
3717,
30,
46506,
35224,
7203,
49,
2114,
4943,
16034,
3084,
62,
3104,
18741,
33411,
366,
47,
12664,
82,
1,
1279,
705,
17,
6,
5357,
366,
26545,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
9558,
423,
1342,
621,
362,
27941,
82,
290,
678,
400,
2292,
878,
3717,
30,
46506,
35224,
7203,
49,
2114,
4943,
16034,
3084,
62,
3104,
18741,
33411,
366,
47,
12664,
82,
1,
1279,
705,
17,
6,
5357,
366,
26545,
1,
796,
705,
... |
What is the total number of Round, when Position is 2B? | SELECT COUNT(round) FROM table_name_77 WHERE position = "2b" | [
2061,
318,
262,
2472,
1271,
286,
10485,
11,
618,
23158,
318,
362,
33,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
2292,
796,
366,
17,
65,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
10485,
11,
618,
23158,
318,
362,
33,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
2292,
796,
366,
17,
65,
1
] |
Which Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2? | SELECT MIN(points) FROM table_name_33 WHERE extra_points = 0 AND player = "curtis redden" AND touchdowns < 2 | [
13828,
11045,
318,
262,
9016,
530,
326,
468,
281,
17221,
2173,
286,
657,
11,
290,
257,
7853,
286,
1090,
48010,
302,
4742,
11,
290,
15957,
30371,
4833,
621,
362,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2091,
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
] | [
13828,
11045,
318,
262,
9016,
530,
326,
468,
281,
17221,
2173,
286,
657,
11,
290,
257,
7853,
286,
1090,
48010,
302,
4742,
11,
290,
15957,
30371,
4833,
621,
362,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2091,
33411,
... |
What was the position of the team that used an oldsmobile engine and DNQ? | SELECT finish FROM table_name_10 WHERE engine = "oldsmobile" AND start = "dnq" | [
2061,
373,
262,
2292,
286,
262,
1074,
326,
973,
281,
1468,
5796,
3579,
3113,
290,
45080,
48,
30,
46506,
5461,
16034,
3084,
62,
3672,
62,
940,
33411,
3113,
796,
366,
727,
5796,
3579,
1,
5357,
923,
796,
366,
32656,
80,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
286,
262,
1074,
326,
973,
281,
1468,
5796,
3579,
3113,
290,
45080,
48,
30,
46506,
5461,
16034,
3084,
62,
3672,
62,
940,
33411,
3113,
796,
366,
727,
5796,
3579,
1,
5357,
923,
796,
366,
32656,
80,
1
] |
what was the next movie zhao dan starred in after crossroads ? | SELECT "english title" FROM table_204_707 WHERE "year" > (SELECT "year" FROM table_204_707 WHERE "english title" = 'crossroads') ORDER BY "year" LIMIT 1 | [
10919,
373,
262,
1306,
3807,
1976,
23778,
46078,
31636,
287,
706,
3272,
21372,
5633,
46506,
366,
39126,
3670,
1,
16034,
3084,
62,
18638,
62,
24038,
33411,
366,
1941,
1,
1875,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
24038,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1306,
3807,
1976,
23778,
46078,
31636,
287,
706,
3272,
21372,
5633,
46506,
366,
39126,
3670,
1,
16034,
3084,
62,
18638,
62,
24038,
33411,
366,
1941,
1,
1875,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
24038,
... |
Who was the winning driver on 13 August? | SELECT winning_driver FROM table_1137718_2 WHERE date = "13 August" | [
8241,
373,
262,
5442,
4639,
319,
1511,
2932,
30,
46506,
5442,
62,
26230,
16034,
3084,
62,
1157,
26514,
1507,
62,
17,
33411,
3128,
796,
366,
1485,
2932,
1
] | [
1,
1,
1,
1,
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,
5442,
4639,
319,
1511,
2932,
30,
46506,
5442,
62,
26230,
16034,
3084,
62,
1157,
26514,
1507,
62,
17,
33411,
3128,
796,
366,
1485,
2932,
1
] |
what is the last drug that is prescribed to patient 009-2181 via oral route? | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-2181')) AND medication.routeadmin = 'oral' ORDER BY medication.... | [
10919,
318,
262,
938,
2563,
326,
318,
14798,
284,
5827,
3571,
24,
12,
17,
27057,
2884,
12886,
6339,
30,
46506,
14103,
13,
30349,
3672,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
938,
2563,
326,
318,
14798,
284,
5827,
3571,
24,
12,
17,
27057,
2884,
12886,
6339,
30,
46506,
14103,
13,
30349,
3672,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3... |
give the number of patients below the age of 62 whose lab test item id is 51382. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "62" AND lab.itemid = "51382" | [
26535,
262,
1271,
286,
3871,
2174,
262,
2479,
286,
8190,
3025,
2248,
1332,
2378,
4686,
318,
642,
1485,
6469,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
262,
1271,
286,
3871,
2174,
262,
2479,
286,
8190,
3025,
2248,
1332,
2378,
4686,
318,
642,
1485,
6469,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6... |
Name the least purse for 2011 | SELECT MIN(purse___us) AS $__ FROM table_15618241_1 WHERE year = 2011 | [
5376,
262,
1551,
27517,
329,
2813,
46506,
20625,
7,
79,
12321,
17569,
385,
8,
7054,
720,
834,
16034,
3084,
62,
21599,
1507,
28872,
62,
16,
33411,
614,
796,
2813
] | [
1,
1,
1,
1,
1,
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,
27517,
329,
2813,
46506,
20625,
7,
79,
12321,
17569,
385,
8,
7054,
720,
834,
16034,
3084,
62,
21599,
1507,
28872,
62,
16,
33411,
614,
796,
2813
] |
in the current hospital encounter, what was the first value of the po2 for patient 76332? | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76332 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'po2') ORDER BY labevents.charttime LIMIT 1 | [
259,
262,
1459,
4436,
8791,
11,
644,
373,
262,
717,
1988,
286,
262,
745,
17,
329,
5827,
8684,
32148,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
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... | [
259,
262,
1459,
4436,
8791,
11,
644,
373,
262,
717,
1988,
286,
262,
745,
17,
329,
5827,
8684,
32148,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,... |
What was the result for City of the Sun? | SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = "City of the Sun" | [
2061,
373,
262,
1255,
329,
2254,
286,
262,
3825,
30,
46506,
1255,
16034,
3084,
62,
17572,
26582,
2079,
62,
16,
33411,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
796,
366,
14941,
286,
262,
3825,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
2254,
286,
262,
3825,
30,
46506,
1255,
16034,
3084,
62,
17572,
26582,
2079,
62,
16,
33411,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
796,
366,
14941,
286,
262,
3825,
1
] |
What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009? | SELECT "SZDSZ" FROM table_35704 WHERE "MSZP" = '25%' AND "Date" = '25/2/2009' | [
2061,
318,
262,
311,
57,
5258,
57,
5873,
351,
281,
6579,
57,
47,
286,
1679,
4,
319,
1679,
14,
17,
14,
10531,
30,
46506,
366,
50,
57,
5258,
57,
1,
16034,
3084,
62,
2327,
32869,
33411,
366,
5653,
57,
47,
1,
796,
705,
1495,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
311,
57,
5258,
57,
5873,
351,
281,
6579,
57,
47,
286,
1679,
4,
319,
1679,
14,
17,
14,
10531,
30,
46506,
366,
50,
57,
5258,
57,
1,
16034,
3084,
62,
2327,
32869,
33411,
366,
5653,
57,
47,
1,
796,
705,
1495,
4,
6,... |
Before I take MEDEDUC 499 what do I need to take ? | SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT... | [
8421,
314,
1011,
26112,
1961,
9598,
48391,
644,
466,
314,
761,
284,
1011,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8421,
314,
1011,
26112,
1961,
9598,
48391,
644,
466,
314,
761,
284,
1011,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
1781,
... |
What was the race status(es) with the lotus-ford 38/1 chassis? | SELECT "Race status" FROM table_22185 WHERE "Chassis" = 'Lotus-Ford 38/1' | [
2061,
373,
262,
3234,
3722,
7,
274,
8,
351,
262,
1256,
385,
12,
3841,
4353,
14,
16,
24587,
30,
46506,
366,
35157,
3722,
1,
16034,
3084,
62,
1828,
21652,
33411,
366,
1925,
20297,
1,
796,
705,
48601,
385,
12,
37308,
4353,
14,
16,
6
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3234,
3722,
7,
274,
8,
351,
262,
1256,
385,
12,
3841,
4353,
14,
16,
24587,
30,
46506,
366,
35157,
3722,
1,
16034,
3084,
62,
1828,
21652,
33411,
366,
1925,
20297,
1,
796,
705,
48601,
385,
12,
37308,
4353,
14,
16,
6
... |
What is galway county's total? | SELECT SUM("Total") FROM table_79464 WHERE "County" = 'galway' | [
2061,
318,
9426,
1014,
7968,
338,
2472,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
3720,
44578,
33411,
366,
12332,
88,
1,
796,
705,
13528,
1014,
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
] | [
2061,
318,
9426,
1014,
7968,
338,
2472,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
3720,
44578,
33411,
366,
12332,
88,
1,
796,
705,
13528,
1014,
6
] |
what is the death status of subject id 3343? | SELECT demographic.expire_flag FROM demographic WHERE demographic.subject_id = "3343" | [
10919,
318,
262,
1918,
3722,
286,
2426,
4686,
513,
32118,
30,
46506,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2091,
3559,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1918,
3722,
286,
2426,
4686,
513,
32118,
30,
46506,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2091,
3559,
1
] |
On which date was the venue of vfl park used? | SELECT date FROM table_name_37 WHERE venue = "vfl park" | [
2202,
543,
3128,
373,
262,
14359,
286,
410,
2704,
3952,
973,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2718,
33411,
14359,
796,
366,
85,
2704,
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
] | [
2202,
543,
3128,
373,
262,
14359,
286,
410,
2704,
3952,
973,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2718,
33411,
14359,
796,
366,
85,
2704,
3952,
1
] |
What home has 1-5 as the away? | SELECT home FROM table_name_69 WHERE away = "1-5" | [
2061,
1363,
468,
352,
12,
20,
355,
262,
1497,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
3388,
33411,
1497,
796,
366,
16,
12,
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
] | [
2061,
1363,
468,
352,
12,
20,
355,
262,
1497,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
3388,
33411,
1497,
796,
366,
16,
12,
20,
1
] |
Who was the winner when Niki Lauda held pole position? | SELECT "Race Winner" FROM table_52285 WHERE "Pole Position" = 'niki lauda' | [
8241,
373,
262,
8464,
618,
399,
5580,
406,
3885,
64,
2714,
16825,
2292,
30,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
49542,
5332,
33411,
366,
47,
2305,
23158,
1,
796,
705,
77,
5580,
28907,
64,
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
] | [
8241,
373,
262,
8464,
618,
399,
5580,
406,
3885,
64,
2714,
16825,
2292,
30,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
49542,
5332,
33411,
366,
47,
2305,
23158,
1,
796,
705,
77,
5580,
28907,
64,
6
] |
count the number of patients whose age is less than 83 and diagnoses short title is pneumococcal pneumonia? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "83" AND diagnoses.short_title = "Pneumococcal pneumonia" | [
9127,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
9698,
290,
40567,
1790,
3670,
318,
29631,
34403,
9948,
35647,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
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,
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,
2479,
318,
1342,
621,
9698,
290,
40567,
1790,
3670,
318,
29631,
34403,
9948,
35647,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
Which region has the format CD and label MCA? | SELECT region FROM table_name_15 WHERE format = "cd" AND label = "mca" | [
13828,
3814,
468,
262,
5794,
6458,
290,
6167,
337,
8141,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
1314,
33411,
5794,
796,
366,
10210,
1,
5357,
6167,
796,
366,
76,
6888,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3814,
468,
262,
5794,
6458,
290,
6167,
337,
8141,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
1314,
33411,
5794,
796,
366,
10210,
1,
5357,
6167,
796,
366,
76,
6888,
1
] |
What is the Shuji Kondo value related to a PEPE Michinoku value of sabin (14:43)? | SELECT shuji_kondo FROM table_name_2 WHERE pepe_michinoku = "sabin (14:43)" | [
2061,
318,
262,
32344,
7285,
509,
22311,
1988,
3519,
284,
257,
350,
8905,
36,
2843,
259,
11601,
1988,
286,
264,
6014,
357,
1415,
25,
3559,
19427,
46506,
427,
84,
7285,
62,
74,
22311,
16034,
3084,
62,
3672,
62,
17,
33411,
613,
431,
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
] | [
2061,
318,
262,
32344,
7285,
509,
22311,
1988,
3519,
284,
257,
350,
8905,
36,
2843,
259,
11601,
1988,
286,
264,
6014,
357,
1415,
25,
3559,
19427,
46506,
427,
84,
7285,
62,
74,
22311,
16034,
3084,
62,
3672,
62,
17,
33411,
613,
431,
6... |
What body styles have devaux-hall inline 6 as the engine? | SELECT "Body Styles" FROM table_5036 WHERE "Engine" = 'devaux-hall inline 6' | [
2061,
1767,
12186,
423,
1614,
14644,
12,
18323,
26098,
718,
355,
262,
3113,
30,
46506,
366,
25842,
44963,
1,
16034,
3084,
62,
1120,
2623,
33411,
366,
13798,
1,
796,
705,
7959,
14644,
12,
18323,
26098,
718,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1767,
12186,
423,
1614,
14644,
12,
18323,
26098,
718,
355,
262,
3113,
30,
46506,
366,
25842,
44963,
1,
16034,
3084,
62,
1120,
2623,
33411,
366,
13798,
1,
796,
705,
7959,
14644,
12,
18323,
26098,
718,
6
] |
what is an insurance plan for patient 138 in the first hospital visit? | SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 138 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 | [
10919,
318,
281,
5096,
1410,
329,
5827,
21503,
287,
262,
717,
4436,
3187,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
21503,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
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
] | [
10919,
318,
281,
5096,
1410,
329,
5827,
21503,
287,
262,
717,
4436,
3187,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
21503,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
2... |
when 0 100km/h (60mph) is 5.8 seconds (5.5), what is the torque? | SELECT "Torque" FROM table_27079 WHERE "0\u2013100km/h (60mph)" = '5.8 seconds (5.5)' | [
12518,
657,
1802,
13276,
14,
71,
357,
1899,
23335,
8,
318,
642,
13,
23,
4201,
357,
20,
13,
20,
828,
644,
318,
262,
26415,
30,
46506,
366,
15884,
4188,
1,
16034,
3084,
62,
1983,
2998,
24,
33411,
366,
15,
59,
84,
6390,
3064,
13276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
657,
1802,
13276,
14,
71,
357,
1899,
23335,
8,
318,
642,
13,
23,
4201,
357,
20,
13,
20,
828,
644,
318,
262,
26415,
30,
46506,
366,
15884,
4188,
1,
16034,
3084,
62,
1983,
2998,
24,
33411,
366,
15,
59,
84,
6390,
3064,
13276,
... |
Which Position has a Pick of 11 (via calgary)? | SELECT "Position" FROM table_47161 WHERE "Pick" = '11 (via calgary)' | [
13828,
23158,
468,
257,
12346,
286,
1367,
357,
8869,
2386,
14849,
19427,
46506,
366,
26545,
1,
16034,
3084,
62,
2857,
25948,
33411,
366,
31686,
1,
796,
705,
1157,
357,
8869,
2386,
14849,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
23158,
468,
257,
12346,
286,
1367,
357,
8869,
2386,
14849,
19427,
46506,
366,
26545,
1,
16034,
3084,
62,
2857,
25948,
33411,
366,
31686,
1,
796,
705,
1157,
357,
8869,
2386,
14849,
33047
] |
What is the finish with 200 laps and a start of 3? | SELECT finish FROM table_name_91 WHERE laps = 200 AND start = "3" | [
2061,
318,
262,
5461,
351,
939,
24590,
290,
257,
923,
286,
513,
30,
46506,
5461,
16034,
3084,
62,
3672,
62,
6420,
33411,
24590,
796,
939,
5357,
923,
796,
366,
18,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
5461,
351,
939,
24590,
290,
257,
923,
286,
513,
30,
46506,
5461,
16034,
3084,
62,
3672,
62,
6420,
33411,
24590,
796,
939,
5357,
923,
796,
366,
18,
1
] |
What is every date with a record of 30 34 12? | SELECT date FROM table_23486853_8 WHERE record = "30–34–12" | [
2061,
318,
790,
3128,
351,
257,
1700,
286,
1542,
4974,
1105,
30,
46506,
3128,
16034,
3084,
62,
1954,
2780,
3104,
4310,
62,
23,
33411,
1700,
796,
366,
1270,
1906,
2682,
1906,
1065,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
790,
3128,
351,
257,
1700,
286,
1542,
4974,
1105,
30,
46506,
3128,
16034,
3084,
62,
1954,
2780,
3104,
4310,
62,
23,
33411,
1700,
796,
366,
1270,
1906,
2682,
1906,
1065,
1
] |
What is the time of frida svensson's race that had sa/b under the notes? | SELECT "Time" FROM table_79505 WHERE "Notes" = 'sa/b' AND "Athlete" = 'frida svensson' | [
2061,
318,
262,
640,
286,
1216,
3755,
264,
574,
16528,
338,
3234,
326,
550,
473,
14,
65,
739,
262,
4710,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
3720,
31654,
33411,
366,
16130,
1,
796,
705,
11400,
14,
65,
6,
5357,
366,
32,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
286,
1216,
3755,
264,
574,
16528,
338,
3234,
326,
550,
473,
14,
65,
739,
262,
4710,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
3720,
31654,
33411,
366,
16130,
1,
796,
705,
11400,
14,
65,
6,
5357,
366,
32,
400,
... |
what is the drug that was prescribed for patient 18757 within 2 days after being diagnosed with resp obstr-food inhal until 39 months ago? | SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 18757 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'resp o... | [
10919,
318,
262,
2563,
326,
373,
14798,
329,
5827,
1248,
39251,
1626,
362,
1528,
706,
852,
14641,
351,
1217,
909,
2536,
12,
19425,
40982,
1566,
5014,
1933,
2084,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
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... | [
10919,
318,
262,
2563,
326,
373,
14798,
329,
5827,
1248,
39251,
1626,
362,
1528,
706,
852,
14641,
351,
1217,
909,
2536,
12,
19425,
40982,
1566,
5014,
1933,
2084,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
... |
What name has a License of gpl, and an Actual version of 0.8.29wip4? | SELECT "Name" FROM table_55129 WHERE "License" = 'gpl' AND "Actual version" = '0.8.29wip4' | [
2061,
1438,
468,
257,
13789,
286,
308,
489,
11,
290,
281,
33520,
2196,
286,
657,
13,
23,
13,
1959,
86,
541,
19,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2816,
18741,
33411,
366,
34156,
1,
796,
705,
70,
489,
6,
5357,
366,
6398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
468,
257,
13789,
286,
308,
489,
11,
290,
281,
33520,
2196,
286,
657,
13,
23,
13,
1959,
86,
541,
19,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2816,
18741,
33411,
366,
34156,
1,
796,
705,
70,
489,
6,
5357,
366,
6398,
... |
Who are all the candidates when Sam Rayburn was incumbent? | SELECT "Candidates" FROM table_18644 WHERE "Incumbent" = 'Sam Rayburn' | [
8241,
389,
477,
262,
5871,
618,
3409,
7760,
10899,
373,
23526,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
1507,
29173,
33411,
366,
25517,
2178,
298,
1,
796,
705,
16305,
7760,
10899,
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
] | [
8241,
389,
477,
262,
5871,
618,
3409,
7760,
10899,
373,
23526,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
1507,
29173,
33411,
366,
25517,
2178,
298,
1,
796,
705,
16305,
7760,
10899,
6
] |
How many games played for teams with 277 points? | SELECT played FROM table_15467476_3 WHERE points_for = "277" | [
2437,
867,
1830,
2826,
329,
3466,
351,
38703,
2173,
30,
46506,
2826,
16034,
3084,
62,
21526,
3134,
35435,
62,
18,
33411,
2173,
62,
1640,
796,
366,
27019,
1
] | [
1,
1,
1,
1,
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,
2826,
329,
3466,
351,
38703,
2173,
30,
46506,
2826,
16034,
3084,
62,
21526,
3134,
35435,
62,
18,
33411,
2173,
62,
1640,
796,
366,
27019,
1
] |
What is the record for the result w 33-3? | SELECT record FROM table_name_4 WHERE result = "w 33-3" | [
2061,
318,
262,
1700,
329,
262,
1255,
266,
4747,
12,
18,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
19,
33411,
1255,
796,
366,
86,
4747,
12,
18,
1
] | [
1,
1,
1,
1,
1,
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,
329,
262,
1255,
266,
4747,
12,
18,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
19,
33411,
1255,
796,
366,
86,
4747,
12,
18,
1
] |
when was the last time patient 702 measured its respiratory rate less than 28.0? | SELECT chartevents.charttime 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 = 702)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'respirator... | [
12518,
373,
262,
938,
640,
5827,
43379,
8630,
663,
22949,
2494,
1342,
621,
2579,
13,
15,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
43379,
8630,
663,
22949,
2494,
1342,
621,
2579,
13,
15,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
1... |
What regular season result had an average attendance less than 942? | SELECT "Reg. Season" FROM table_56775 WHERE "Avg. attendance" < '942' | [
2061,
3218,
1622,
1255,
550,
281,
2811,
14858,
1342,
621,
860,
3682,
30,
46506,
366,
8081,
13,
7369,
1,
16034,
3084,
62,
20,
3134,
2425,
33411,
366,
48997,
13,
14858,
1,
1279,
705,
24,
3682,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3218,
1622,
1255,
550,
281,
2811,
14858,
1342,
621,
860,
3682,
30,
46506,
366,
8081,
13,
7369,
1,
16034,
3084,
62,
20,
3134,
2425,
33411,
366,
48997,
13,
14858,
1,
1279,
705,
24,
3682,
6
] |
In what year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4? | SELECT tournament FROM table_name_74 WHERE 2000 = "2-4" | [
818,
644,
614,
4751,
256,
1798,
434,
750,
5652,
5575,
349,
952,
423,
257,
3451,
1592,
12,
22462,
1700,
286,
362,
12,
19,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
4524,
33411,
4751,
796,
366,
17,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
614,
4751,
256,
1798,
434,
750,
5652,
5575,
349,
952,
423,
257,
3451,
1592,
12,
22462,
1700,
286,
362,
12,
19,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
4524,
33411,
4751,
796,
366,
17,
12,
19,
1
] |
What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position? | SELECT "Grand Prix" FROM table_57242 WHERE "Fastest Lap" = 'gerhard berger' AND "Pole Position" = 'michael schumacher' | [
2061,
318,
262,
4490,
1293,
87,
351,
13573,
10424,
33337,
355,
262,
14162,
14779,
290,
3899,
3059,
388,
3493,
355,
262,
16825,
2292,
30,
46506,
366,
23581,
23832,
1,
16034,
3084,
62,
3553,
27877,
33411,
366,
22968,
395,
26944,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4490,
1293,
87,
351,
13573,
10424,
33337,
355,
262,
14162,
14779,
290,
3899,
3059,
388,
3493,
355,
262,
16825,
2292,
30,
46506,
366,
23581,
23832,
1,
16034,
3084,
62,
3553,
27877,
33411,
366,
22968,
395,
26944,
1,
796,
... |
Name the loss with record of 71-33 | SELECT "Loss" FROM table_15643 WHERE "Record" = '71-33' | [
5376,
262,
2994,
351,
1700,
286,
9166,
12,
2091,
46506,
366,
43,
793,
1,
16034,
3084,
62,
1314,
41813,
33411,
366,
23739,
1,
796,
705,
4869,
12,
2091,
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,
2994,
351,
1700,
286,
9166,
12,
2091,
46506,
366,
43,
793,
1,
16034,
3084,
62,
1314,
41813,
33411,
366,
23739,
1,
796,
705,
4869,
12,
2091,
6
] |
how many patients admitted in emergency were given the drug named amryl? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug = "Amaryl" | [
4919,
867,
3871,
6848,
287,
6334,
547,
1813,
262,
2563,
3706,
716,
563,
75,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6848,
287,
6334,
547,
1813,
262,
2563,
3706,
716,
563,
75,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
... |
What college did the player drafted after round 2 before pick 160 attend? | SELECT "College" FROM table_7900 WHERE "Pick" < '160' AND "Round" > '2' | [
2061,
4152,
750,
262,
2137,
15937,
706,
2835,
362,
878,
2298,
13454,
5262,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
3720,
405,
33411,
366,
31686,
1,
1279,
705,
14198,
6,
5357,
366,
22685,
1,
1875,
705,
17,
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,
4152,
750,
262,
2137,
15937,
706,
2835,
362,
878,
2298,
13454,
5262,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
3720,
405,
33411,
366,
31686,
1,
1279,
705,
14198,
6,
5357,
366,
22685,
1,
1875,
705,
17,
6
] |
What is the IHSAA Class for football for the team joining in 1968? | SELECT "IHSAA Class Football" FROM table_63937 WHERE "Year Joined" = '1968' | [
2061,
318,
262,
314,
7998,
3838,
5016,
329,
4346,
329,
262,
1074,
9679,
287,
15963,
30,
46506,
366,
40,
7998,
3838,
5016,
9957,
1,
16034,
3084,
62,
21,
2670,
2718,
33411,
366,
17688,
16709,
1,
796,
705,
42246,
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,
314,
7998,
3838,
5016,
329,
4346,
329,
262,
1074,
9679,
287,
15963,
30,
46506,
366,
40,
7998,
3838,
5016,
9957,
1,
16034,
3084,
62,
21,
2670,
2718,
33411,
366,
17688,
16709,
1,
796,
705,
42246,
6
] |
How many districts featured the democrat nicholas von stein? | SELECT COUNT(district) FROM table_name_57 WHERE democratic = "nicholas von stein" | [
2437,
867,
12815,
8096,
262,
43268,
299,
488,
12456,
18042,
2876,
259,
30,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
3672,
62,
3553,
33411,
10518,
796,
366,
77,
488,
12456,
18042,
2876,
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
] | [
2437,
867,
12815,
8096,
262,
43268,
299,
488,
12456,
18042,
2876,
259,
30,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
3672,
62,
3553,
33411,
10518,
796,
366,
77,
488,
12456,
18042,
2876,
259,
1
] |
how much does the maximum hospital cost including a procedure called thrombectomy since 2102? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'thrombectomy')) AND STRFTIME('%y', cost.char... | [
4919,
881,
857,
262,
5415,
4436,
1575,
1390,
257,
8771,
1444,
294,
398,
65,
42505,
1201,
362,
15377,
30,
46506,
25882,
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... | [
4919,
881,
857,
262,
5415,
4436,
1575,
1390,
257,
8771,
1444,
294,
398,
65,
42505,
1201,
362,
15377,
30,
46506,
25882,
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 number of cities in new jersey on the top ten list ? | SELECT COUNT("city") FROM table_204_190 WHERE "state" = 'new jersey' AND "rank" <= 10 | [
10919,
318,
262,
1271,
286,
4736,
287,
649,
22383,
319,
262,
1353,
3478,
1351,
5633,
46506,
327,
28270,
7203,
19205,
4943,
16034,
3084,
62,
18638,
62,
19782,
33411,
366,
5219,
1,
796,
705,
3605,
22383,
6,
5357,
366,
43027,
1,
19841,
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
] | [
10919,
318,
262,
1271,
286,
4736,
287,
649,
22383,
319,
262,
1353,
3478,
1351,
5633,
46506,
327,
28270,
7203,
19205,
4943,
16034,
3084,
62,
18638,
62,
19782,
33411,
366,
5219,
1,
796,
705,
3605,
22383,
6,
5357,
366,
43027,
1,
19841,
8... |
What is the average rank for more than 12 points? | SELECT AVG("Rank") FROM table_47586 WHERE "Points" > '12' | [
2061,
318,
262,
2811,
4279,
329,
517,
621,
1105,
2173,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
32576,
4521,
33411,
366,
40710,
1,
1875,
705,
1065,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
4279,
329,
517,
621,
1105,
2173,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
32576,
4521,
33411,
366,
40710,
1,
1875,
705,
1065,
6
] |
What College team has 8 rounds? | SELECT college_junior_club_team__league_ FROM table_name_31 WHERE round = 8 | [
2061,
5535,
1074,
468,
807,
9196,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
834,
19316,
62,
16034,
3084,
62,
3672,
62,
3132,
33411,
2835,
796,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5535,
1074,
468,
807,
9196,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
834,
19316,
62,
16034,
3084,
62,
3672,
62,
3132,
33411,
2835,
796,
807
] |
what is the maximum hospital cost when it involves pneumonia - opportunistic until 2104? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'pneumonia - opportunistic')) AND STRFTIME('%... | [
10919,
318,
262,
5415,
4436,
1575,
618,
340,
9018,
35647,
532,
2755,
2569,
1566,
362,
13464,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
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,
5415,
4436,
1575,
618,
340,
9018,
35647,
532,
2755,
2569,
1566,
362,
13464,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
... |
provide the number of patients whose gender is f and days of hospital stay is greater than 2? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.days_stay > "2" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
362,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
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
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
362,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
3... |
What are the name of rooms that cost more than the average. | SELECT roomname FROM rooms WHERE baseprice > (SELECT AVG(baseprice) FROM rooms) | [
2061,
389,
262,
1438,
286,
9519,
326,
1575,
517,
621,
262,
2811,
13,
46506,
2119,
3672,
16034,
9519,
33411,
1615,
538,
20970,
1875,
357,
46506,
35224,
7,
12093,
538,
20970,
8,
16034,
9519,
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
] | [
2061,
389,
262,
1438,
286,
9519,
326,
1575,
517,
621,
262,
2811,
13,
46506,
2119,
3672,
16034,
9519,
33411,
1615,
538,
20970,
1875,
357,
46506,
35224,
7,
12093,
538,
20970,
8,
16034,
9519,
8
] |
Draw a bar chart about the distribution of All_Road and Team_ID , sort in asc by the Team_ID. | SELECT All_Road, Team_ID FROM basketball_match ORDER BY Team_ID | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
837,
3297,
287,
10570,
416,
262,
4816,
62,
2389,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
4816,
62,
2389
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
837,
3297,
287,
10570,
416,
262,
4816,
62,
2389,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
4816,
62,
2389
] |
Distribution of number of votes on questions. | WITH a AS (SELECT p.Id, COUNT(v.PostId) AS n_votes FROM Votes AS v FULL OUTER JOIN Posts AS p ON v.PostId = p.Id WHERE p.PostTypeId IN (1) AND v.VoteTypeId IN (2, 3) GROUP BY p.Id), b AS (SELECT pp.Id, n_votes FROM a FULL OUTER JOIN Posts AS pp ON a.Id = pp.Id WHERE pp.PostTypeId IN (1)) SELECT * FROM b ORDER BY Id DES... | [
20344,
3890,
286,
1271,
286,
5690,
319,
2683,
13,
54,
10554,
257,
7054,
357,
46506,
279,
13,
7390,
11,
327,
28270,
7,
85,
13,
6307,
7390,
8,
7054,
299,
62,
29307,
16034,
39584,
7054,
410,
34958,
16289,
1137,
32357,
1268,
12043,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20344,
3890,
286,
1271,
286,
5690,
319,
2683,
13,
54,
10554,
257,
7054,
357,
46506,
279,
13,
7390,
11,
327,
28270,
7,
85,
13,
6307,
7390,
8,
7054,
299,
62,
29307,
16034,
39584,
7054,
410,
34958,
16289,
1137,
32357,
1268,
12043,
7054,
... |
Can you tell me the Opponent that has the Week smaller than 11, and the TV Time of fox 10:00 am mt, and the Result of w 20-17? | SELECT "Opponent" FROM table_44895 WHERE "Week" < '11' AND "TV Time" = 'fox 10:00 am mt' AND "Result" = 'w 20-17' | [
6090,
345,
1560,
502,
262,
9385,
3471,
326,
468,
262,
6119,
4833,
621,
1367,
11,
290,
262,
3195,
3862,
286,
21831,
838,
25,
405,
716,
45079,
11,
290,
262,
25414,
286,
266,
1160,
12,
1558,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6090,
345,
1560,
502,
262,
9385,
3471,
326,
468,
262,
6119,
4833,
621,
1367,
11,
290,
262,
3195,
3862,
286,
21831,
838,
25,
405,
716,
45079,
11,
290,
262,
25414,
286,
266,
1160,
12,
1558,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,... |
what was the name of the last specimen test that patient 031-1337 received in 05/2105? | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-1337')) AND STRFTIME('%y-%m', microlab.culturetakentime) = '2105-0... | [
10919,
373,
262,
1438,
286,
262,
938,
31674,
1332,
326,
5827,
657,
3132,
12,
1485,
2718,
2722,
287,
8870,
14,
17,
13348,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
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,
373,
262,
1438,
286,
262,
938,
31674,
1332,
326,
5827,
657,
3132,
12,
1485,
2718,
2722,
287,
8870,
14,
17,
13348,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
... |
How many forced fumbles for jim laney with under 2 solo tackles? | SELECT COUNT(fumble_force) FROM table_name_20 WHERE solo < 2 AND player = "jim laney" | [
2437,
867,
4137,
277,
25329,
329,
474,
320,
11193,
88,
351,
739,
362,
12199,
18034,
30,
46506,
327,
28270,
7,
69,
10344,
62,
3174,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
12199,
1279,
362,
5357,
2137,
796,
366,
73,
320,
11193,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4137,
277,
25329,
329,
474,
320,
11193,
88,
351,
739,
362,
12199,
18034,
30,
46506,
327,
28270,
7,
69,
10344,
62,
3174,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
12199,
1279,
362,
5357,
2137,
796,
366,
73,
320,
11193,
88... |
What is the novel that has a valid status, located in Mongolia, and named Prenocephale? | SELECT "Novelty" FROM table_42373 WHERE "Status" = 'valid' AND "Location" = 'mongolia' AND "Name" = 'prenocephale' | [
2061,
318,
262,
5337,
326,
468,
257,
4938,
3722,
11,
5140,
287,
44364,
11,
290,
3706,
350,
918,
78,
344,
746,
1000,
30,
46506,
366,
2949,
626,
774,
1,
16034,
3084,
62,
43356,
4790,
33411,
366,
19580,
1,
796,
705,
12102,
6,
5357,
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... | [
2061,
318,
262,
5337,
326,
468,
257,
4938,
3722,
11,
5140,
287,
44364,
11,
290,
3706,
350,
918,
78,
344,
746,
1000,
30,
46506,
366,
2949,
626,
774,
1,
16034,
3084,
62,
43356,
4790,
33411,
366,
19580,
1,
796,
705,
12102,
6,
5357,
3... |
What version is the DB running?. | SELECT @@version | [
2061,
2196,
318,
262,
20137,
2491,
30,
13,
46506,
25248,
9641
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2196,
318,
262,
20137,
2491,
30,
13,
46506,
25248,
9641
] |
how many times do patient 3745 go to the hospital until 1 year ago. | SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 3745 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
4919,
867,
1661,
466,
5827,
5214,
2231,
467,
284,
262,
4436,
1566,
352,
614,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
18108,
76,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
5214,
2231,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
466,
5827,
5214,
2231,
467,
284,
262,
4436,
1566,
352,
614,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
18108,
76,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
5214,
2231,
53... |
What is the total number of Attempts, when Touchdowns is 6? | SELECT COUNT("Attempts") FROM table_48390 WHERE "Touchdowns" = '6' | [
2061,
318,
262,
2472,
1271,
286,
25770,
82,
11,
618,
15957,
30371,
318,
718,
30,
46506,
327,
28270,
7203,
48452,
4943,
16034,
3084,
62,
2780,
25964,
33411,
366,
35211,
30371,
1,
796,
705,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
25770,
82,
11,
618,
15957,
30371,
318,
718,
30,
46506,
327,
28270,
7203,
48452,
4943,
16034,
3084,
62,
2780,
25964,
33411,
366,
35211,
30371,
1,
796,
705,
21,
6
] |
What was the record after the NJKF Magnam 16 event that lasted 2:06? | SELECT record FROM table_name_72 WHERE time = "2:06" AND event = "njkf magnam 16" | [
2061,
373,
262,
1700,
706,
262,
18732,
42,
37,
2944,
7402,
1467,
1785,
326,
15436,
362,
25,
3312,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
4761,
33411,
640,
796,
366,
17,
25,
3312,
1,
5357,
1785,
796,
366,
77,
73,
74,
69,
2153,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1700,
706,
262,
18732,
42,
37,
2944,
7402,
1467,
1785,
326,
15436,
362,
25,
3312,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
4761,
33411,
640,
796,
366,
17,
25,
3312,
1,
5357,
1785,
796,
366,
77,
73,
74,
69,
2153,... |
What are the name and level of catalog structure with level number between 5 and 1. Show a pie chart. | SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 | [
2061,
389,
262,
1438,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
352,
13,
5438,
257,
2508,
8262,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388,
62,
5715,
62,
17618,
16034,
44515,
62,
1273,
5620,
33411,
18388,
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
] | [
2061,
389,
262,
1438,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
352,
13,
5438,
257,
2508,
8262,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388,
62,
5715,
62,
17618,
16034,
44515,
62,
1273,
5620,
33411,
18388,
62,
... |
For those employees who did not have any job in the past, show me about the distribution of hire_date and the sum of department_id bin hire_date by weekday in a bar chart. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) 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,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
13,
46506,
36210,
2200,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
13,
46506,
36210,
2200,... |
What is the name of the storm active during season aggregates? | SELECT "Name" FROM table_59703 WHERE "Dates active" = 'season aggregates' | [
2061,
318,
262,
1438,
286,
262,
6388,
4075,
1141,
1622,
13262,
689,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
3270,
36809,
33411,
366,
35,
689,
4075,
1,
796,
705,
6230,
13262,
689,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
6388,
4075,
1141,
1622,
13262,
689,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
3270,
36809,
33411,
366,
35,
689,
4075,
1,
796,
705,
6230,
13262,
689,
6
] |
Who was the Home team that had a decider of Conklin? | SELECT home FROM table_name_53 WHERE decision = "conklin" | [
8241,
373,
262,
5995,
1074,
326,
550,
257,
875,
1304,
286,
1482,
74,
2815,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
4310,
33411,
2551,
796,
366,
1102,
74,
2815,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
5995,
1074,
326,
550,
257,
875,
1304,
286,
1482,
74,
2815,
30,
46506,
1363,
16034,
3084,
62,
3672,
62,
4310,
33411,
2551,
796,
366,
1102,
74,
2815,
1
] |
Which Rank has a Years of 1998 present? | SELECT AVG(rank) FROM table_name_82 WHERE years = "1998–present" | [
13828,
10916,
468,
257,
13212,
286,
7795,
1944,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
812,
796,
366,
21113,
1906,
25579,
1
] | [
1,
1,
1,
1,
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,
10916,
468,
257,
13212,
286,
7795,
1944,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
6469,
33411,
812,
796,
366,
21113,
1906,
25579,
1
] |
what are the hospital admission times until 2103 for patient 027-91255? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '027-91255' AND STRFTIME('%y', patient.hospitaladmittime) <= '2103' | [
10919,
389,
262,
4436,
13938,
1661,
1566,
362,
15197,
329,
5827,
657,
1983,
12,
24,
1065,
2816,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
24,
1065,
2816,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
262,
4436,
13938,
1661,
1566,
362,
15197,
329,
5827,
657,
1983,
12,
24,
1065,
2816,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
24,
1065,
2816,
6,
... |
Show the name for regions and the number of storms for each region, rank in descending by the bars. | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name DESC | [
15307,
262,
1438,
329,
7652,
290,
262,
1271,
286,
20228,
329,
1123,
3814,
11,
4279,
287,
31491,
416,
262,
9210,
13,
46506,
17718,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
3814,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
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... | [
15307,
262,
1438,
329,
7652,
290,
262,
1271,
286,
20228,
329,
1123,
3814,
11,
4279,
287,
31491,
416,
262,
9210,
13,
46506,
17718,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
3814,
7054,
309,
16,
32357,
1268,
5676,
62,
36996,
7054,
309,... |
How many wins were there when the money list rank was 183? | SELECT COUNT("Wins") FROM table_15882 WHERE "Money list rank" = '183' | [
2437,
867,
7864,
547,
612,
618,
262,
1637,
1351,
4279,
373,
28551,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
1314,
42980,
33411,
366,
26788,
1351,
4279,
1,
796,
705,
24839,
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
] | [
2437,
867,
7864,
547,
612,
618,
262,
1637,
1351,
4279,
373,
28551,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
1314,
42980,
33411,
366,
26788,
1351,
4279,
1,
796,
705,
24839,
6
] |
Which Total has a Name of eoin jess category:articles with hcards, and a Scottish Cup larger than 23? | SELECT MIN(total) FROM table_name_47 WHERE name = "eoin jess category:articles with hcards" AND scottish_cup > 23 | [
13828,
7472,
468,
257,
6530,
286,
304,
36743,
474,
408,
6536,
25,
26845,
351,
289,
27761,
11,
290,
257,
11905,
5454,
4025,
621,
2242,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
1438,
796,
366,
68,
36743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7472,
468,
257,
6530,
286,
304,
36743,
474,
408,
6536,
25,
26845,
351,
289,
27761,
11,
290,
257,
11905,
5454,
4025,
621,
2242,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
1438,
796,
366,
68,
36743,
... |
Dr. Sebastian Diaz has taught what classes in the past ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course_offering.semester < (SELECT SEMESTERalias0.semester_id FROM semester AS SEMESTERalias0 WHERE SEMESTERalias0.semester = 'WN' AND SEMESTERalias0.year = 2016) AND course.course_id = cour... | [
6187,
13,
26190,
26899,
468,
7817,
644,
6097,
287,
262,
1613,
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,
21187,
11,
6011,
62,
259,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6187,
13,
26190,
26899,
468,
7817,
644,
6097,
287,
262,
1613,
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,
21187,
11,
6011,
62,
259,
7... |
What is the venue when Geelong is the away team? | SELECT "Venue" FROM table_74712 WHERE "Away team" = 'geelong' | [
2061,
318,
262,
14359,
618,
2269,
21537,
318,
262,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
48882,
1065,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
14359,
618,
2269,
21537,
318,
262,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
48882,
1065,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537,
6
] |
What was the score in the game where Carolina was the home team and Niittymaki received the decision? | SELECT "Score" FROM table_36312 WHERE "Decision" = 'niittymaki' AND "Home" = 'carolina' | [
2061,
373,
262,
4776,
287,
262,
983,
810,
5913,
373,
262,
1363,
1074,
290,
11556,
715,
4948,
8182,
2722,
262,
2551,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2623,
27970,
33411,
366,
10707,
1166,
1,
796,
705,
8461,
715,
4948,
8182,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
287,
262,
983,
810,
5913,
373,
262,
1363,
1074,
290,
11556,
715,
4948,
8182,
2722,
262,
2551,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2623,
27970,
33411,
366,
10707,
1166,
1,
796,
705,
8461,
715,
4948,
8182,
... |
What is set 3 on week 6? | SELECT "Set 3" FROM table_67541 WHERE "Week" = '6' | [
2061,
318,
900,
513,
319,
1285,
718,
30,
46506,
366,
7248,
513,
1,
16034,
3084,
62,
42444,
3901,
33411,
366,
20916,
1,
796,
705,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
900,
513,
319,
1285,
718,
30,
46506,
366,
7248,
513,
1,
16034,
3084,
62,
42444,
3901,
33411,
366,
20916,
1,
796,
705,
21,
6
] |
What is the Purse listed for the Year of 1998? | SELECT purse FROM table_name_10 WHERE year = "1998" | [
2061,
318,
262,
9330,
325,
5610,
329,
262,
6280,
286,
7795,
30,
46506,
27517,
16034,
3084,
62,
3672,
62,
940,
33411,
614,
796,
366,
21113,
1
] | [
1,
1,
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,
9330,
325,
5610,
329,
262,
6280,
286,
7795,
30,
46506,
27517,
16034,
3084,
62,
3672,
62,
940,
33411,
614,
796,
366,
21113,
1
] |
What is the primary disease and ICU stay id of Troy Friedman? | SELECT demographic.diagnosis, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Troy Friedman" | [
2061,
318,
262,
4165,
4369,
290,
12460,
52,
2652,
4686,
286,
21439,
25865,
30,
46506,
16728,
13,
47356,
5958,
11,
34092,
13,
291,
436,
323,
62,
312,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
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
] | [
2061,
318,
262,
4165,
4369,
290,
12460,
52,
2652,
4686,
286,
21439,
25865,
30,
46506,
16728,
13,
47356,
5958,
11,
34092,
13,
291,
436,
323,
62,
312,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
7... |
Name the genre for release-year of first charted record of 1988 | SELECT "Genre" FROM table_68519 WHERE "Release-year of first charted record" = '1988' | [
5376,
262,
12121,
329,
2650,
12,
1941,
286,
717,
8262,
276,
1700,
286,
12122,
46506,
366,
13746,
260,
1,
16034,
3084,
62,
35978,
1129,
33411,
366,
26362,
12,
1941,
286,
717,
8262,
276,
1700,
1,
796,
705,
26709,
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
] | [
5376,
262,
12121,
329,
2650,
12,
1941,
286,
717,
8262,
276,
1700,
286,
12122,
46506,
366,
13746,
260,
1,
16034,
3084,
62,
35978,
1129,
33411,
366,
26362,
12,
1941,
286,
717,
8262,
276,
1700,
1,
796,
705,
26709,
6
] |
what is the sum of wins for the ottawa hockey club when the games played is less than 10? | SELECT SUM("Wins") FROM table_53420 WHERE "Team" = 'ottawa hockey club' AND "Games Played" < '10' | [
10919,
318,
262,
2160,
286,
7864,
329,
262,
267,
926,
6909,
12217,
3430,
618,
262,
1830,
2826,
318,
1342,
621,
838,
30,
46506,
35683,
7203,
54,
1040,
4943,
16034,
3084,
62,
20,
2682,
1238,
33411,
366,
15592,
1,
796,
705,
1252,
6909,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
7864,
329,
262,
267,
926,
6909,
12217,
3430,
618,
262,
1830,
2826,
318,
1342,
621,
838,
30,
46506,
35683,
7203,
54,
1040,
4943,
16034,
3084,
62,
20,
2682,
1238,
33411,
366,
15592,
1,
796,
705,
1252,
6909,
... |
What is the name on the Republican ticket when the Workers ticket is edward lindgren? | SELECT "Republican ticket" FROM table_39755 WHERE "Workers ticket" = 'edward lindgren' | [
2061,
318,
262,
1438,
319,
262,
3415,
7846,
618,
262,
16847,
7846,
318,
1225,
904,
300,
521,
32762,
30,
46506,
366,
25777,
7846,
1,
16034,
3084,
62,
2670,
38172,
33411,
366,
12468,
364,
7846,
1,
796,
705,
276,
904,
300,
521,
32762,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
319,
262,
3415,
7846,
618,
262,
16847,
7846,
318,
1225,
904,
300,
521,
32762,
30,
46506,
366,
25777,
7846,
1,
16034,
3084,
62,
2670,
38172,
33411,
366,
12468,
364,
7846,
1,
796,
705,
276,
904,
300,
521,
32762,
... |
What is the 2nd round with a score of 3 - 3, and a team 2 fc lorient (d2)? | SELECT "2nd round" FROM table_48480 WHERE "Score" = '3 - 3' AND "Team 2" = 'fc lorient (d2)' | [
2061,
318,
262,
362,
358,
2835,
351,
257,
4776,
286,
513,
532,
513,
11,
290,
257,
1074,
362,
277,
66,
300,
13989,
357,
67,
17,
19427,
46506,
366,
17,
358,
2835,
1,
16034,
3084,
62,
2780,
22148,
33411,
366,
26595,
1,
796,
705,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
362,
358,
2835,
351,
257,
4776,
286,
513,
532,
513,
11,
290,
257,
1074,
362,
277,
66,
300,
13989,
357,
67,
17,
19427,
46506,
366,
17,
358,
2835,
1,
16034,
3084,
62,
2780,
22148,
33411,
366,
26595,
1,
796,
705,
18,
... |
What is the greatest number of losses when there are more than 0 draws and 1390 against matches? | SELECT MAX(losses) FROM table_name_22 WHERE draws > 0 AND against = 1390 | [
2061,
318,
262,
6000,
1271,
286,
9089,
618,
612,
389,
517,
621,
657,
14293,
290,
1511,
3829,
1028,
7466,
30,
46506,
25882,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
14293,
1875,
657,
5357,
1028,
796,
1511,
3829
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
6000,
1271,
286,
9089,
618,
612,
389,
517,
621,
657,
14293,
290,
1511,
3829,
1028,
7466,
30,
46506,
25882,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
14293,
1875,
657,
5357,
1028,
796,
1511,
3829
] |
What's the number of episodes with a broadcast order s04 e07? | SELECT COUNT("Number in series") FROM table_17620 WHERE "Broadcast Order" = 'S04 E07' | [
2061,
338,
262,
1271,
286,
8640,
351,
257,
7025,
1502,
264,
3023,
304,
2998,
30,
46506,
327,
28270,
7203,
15057,
287,
2168,
4943,
16034,
3084,
62,
24096,
1238,
33411,
366,
30507,
2701,
8284,
1,
796,
705,
50,
3023,
412,
2998,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
1271,
286,
8640,
351,
257,
7025,
1502,
264,
3023,
304,
2998,
30,
46506,
327,
28270,
7203,
15057,
287,
2168,
4943,
16034,
3084,
62,
24096,
1238,
33411,
366,
30507,
2701,
8284,
1,
796,
705,
50,
3023,
412,
2998,
6
] |
How many locomotives were made that were withdrawn in 1913? | SELECT quantity_made FROM table_name_97 WHERE withdrawn = "1913" | [
2437,
867,
33334,
313,
1083,
547,
925,
326,
547,
23019,
287,
35145,
30,
46506,
12040,
62,
9727,
16034,
3084,
62,
3672,
62,
5607,
33411,
23019,
796,
366,
1129,
1485,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
33334,
313,
1083,
547,
925,
326,
547,
23019,
287,
35145,
30,
46506,
12040,
62,
9727,
16034,
3084,
62,
3672,
62,
5607,
33411,
23019,
796,
366,
1129,
1485,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.