instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What Giant Slalom has Victories larger than 27, a Slalom of , and a Career of 1996 2009? | SELECT "Giant Slalom" FROM table_78834 WHERE "Victories" > '27' AND "Slalom" = '–' AND "Career" = '1996–2009' | [
2061,
17384,
3454,
282,
296,
468,
6114,
1749,
4025,
621,
2681,
11,
257,
3454,
282,
296,
286,
837,
290,
257,
32619,
286,
8235,
3717,
30,
46506,
366,
38,
3014,
3454,
282,
296,
1,
16034,
3084,
62,
22,
3459,
2682,
33411,
366,
21944,
174... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17384,
3454,
282,
296,
468,
6114,
1749,
4025,
621,
2681,
11,
257,
3454,
282,
296,
286,
837,
290,
257,
32619,
286,
8235,
3717,
30,
46506,
366,
38,
3014,
3454,
282,
296,
1,
16034,
3084,
62,
22,
3459,
2682,
33411,
366,
21944,
174... |
Find the name of the person who has no student friends. | SELECT name FROM Person EXCEPT SELECT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' | [
16742,
262,
1438,
286,
262,
1048,
508,
468,
645,
3710,
2460,
13,
46506,
1438,
16034,
7755,
7788,
42006,
33493,
309,
17,
13,
3672,
16034,
7755,
7054,
309,
16,
32357,
1268,
7755,
23331,
7054,
309,
17,
6177,
309,
16,
13,
3672,
796,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1438,
286,
262,
1048,
508,
468,
645,
3710,
2460,
13,
46506,
1438,
16034,
7755,
7788,
42006,
33493,
309,
17,
13,
3672,
16034,
7755,
7054,
309,
16,
32357,
1268,
7755,
23331,
7054,
309,
17,
6177,
309,
16,
13,
3672,
796,
309,
... |
the two teams who raced in 2011 are carlin motorsport and what other team ? | SELECT "team" FROM table_204_722 WHERE "team" <> 'carlin motorsport' AND "season" = 2011 | [
1169,
734,
3466,
508,
32897,
287,
2813,
389,
1097,
2815,
24699,
634,
290,
644,
584,
1074,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
22,
1828,
33411,
366,
15097,
1,
1279,
29,
705,
7718,
2815,
24699,
634,
6,
5357,
366,
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
] | [
1169,
734,
3466,
508,
32897,
287,
2813,
389,
1097,
2815,
24699,
634,
290,
644,
584,
1074,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
22,
1828,
33411,
366,
15097,
1,
1279,
29,
705,
7718,
2815,
24699,
634,
6,
5357,
366,
6... |
what is the semifinalists when the surface is hard (i)? | SELECT semifinalists FROM table_name_9 WHERE surface = "hard (i)" | [
10919,
318,
262,
32948,
1292,
1023,
618,
262,
4417,
318,
1327,
357,
72,
19427,
46506,
32948,
1292,
1023,
16034,
3084,
62,
3672,
62,
24,
33411,
4417,
796,
366,
10424,
357,
72,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
32948,
1292,
1023,
618,
262,
4417,
318,
1327,
357,
72,
19427,
46506,
32948,
1292,
1023,
16034,
3084,
62,
3672,
62,
24,
33411,
4417,
796,
366,
10424,
357,
72,
16725
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about manager_id over the job_id , order by the X-axis from low to high please. | SELECT JOB_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
4706,
62,
312,
625,
262,
1693,
62,
312,
837,
1502,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
4706,
62,
312,
625,
262,
1693,
62,
312,
837,
1502,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1... |
What is 18-49, when Weekly Winner is 'Youth Counselor Justin Meece'? | SELECT 18 AS _49 FROM table_name_45 WHERE weekly_winner = "youth counselor justin meece" | [
2061,
318,
1248,
12,
2920,
11,
618,
18168,
25358,
318,
705,
56,
1536,
21023,
273,
10799,
337,
1453,
344,
30960,
46506,
1248,
7054,
4808,
2920,
16034,
3084,
62,
3672,
62,
2231,
33411,
10273,
62,
39791,
796,
366,
88,
1536,
31928,
655,
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
] | [
2061,
318,
1248,
12,
2920,
11,
618,
18168,
25358,
318,
705,
56,
1536,
21023,
273,
10799,
337,
1453,
344,
30960,
46506,
1248,
7054,
4808,
2920,
16034,
3084,
62,
3672,
62,
2231,
33411,
10273,
62,
39791,
796,
366,
88,
1536,
31928,
655,
2... |
What is the highest number of Counties carries? | SELECT MAX("Counties Carries") FROM table_1421 | [
2061,
318,
262,
4511,
1271,
286,
2764,
444,
10732,
30,
46506,
25882,
7203,
12332,
444,
1879,
1678,
4943,
16034,
3084,
62,
1415,
2481
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
286,
2764,
444,
10732,
30,
46506,
25882,
7203,
12332,
444,
1879,
1678,
4943,
16034,
3084,
62,
1415,
2481
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me the trend about manager_id over hire_date with a line chart, and show X from high to low order. | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
262,
5182,
546,
4706,
62,
312,
625,
11078,
62,
4475,
351,
257,
1627,
8262,
11,
290,
905,
1395,
422,
1029,
284,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
5182,
546,
4706,
62,
312,
625,
11078,
62,
4475,
351,
257,
1627,
8262,
11,
290,
905,
1395,
422,
1029,
284,
1... |
What score did Jack Nicklaus have when he placed t6? | SELECT score FROM table_name_92 WHERE place = "t6" AND player = "jack nicklaus" | [
2061,
4776,
750,
3619,
8047,
38024,
423,
618,
339,
4624,
256,
21,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5892,
33411,
1295,
796,
366,
83,
21,
1,
5357,
2137,
796,
366,
19650,
14428,
38024,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
750,
3619,
8047,
38024,
423,
618,
339,
4624,
256,
21,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5892,
33411,
1295,
796,
366,
83,
21,
1,
5357,
2137,
796,
366,
19650,
14428,
38024,
1
] |
Churai has what as the fewest number of electorates? | SELECT MIN(number_of_electorates__2009_) FROM table_name_2 WHERE name = "churai" | [
1925,
16998,
468,
644,
355,
262,
1178,
395,
1271,
286,
43191,
689,
30,
46506,
20625,
7,
17618,
62,
1659,
62,
9509,
273,
689,
834,
10531,
62,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
1438,
796,
366,
354,
16998,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1925,
16998,
468,
644,
355,
262,
1178,
395,
1271,
286,
43191,
689,
30,
46506,
20625,
7,
17618,
62,
1659,
62,
9509,
273,
689,
834,
10531,
62,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
1438,
796,
366,
354,
16998,
1
] |
What Winning constructor has a Circuit of lasarte? | SELECT "Winning constructor" FROM table_60588 WHERE "Circuit" = 'lasarte' | [
2061,
40983,
23772,
468,
257,
13588,
286,
39990,
32074,
30,
46506,
366,
16643,
768,
23772,
1,
16034,
3084,
62,
1899,
39118,
33411,
366,
31560,
5013,
1,
796,
705,
21921,
32074,
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,
40983,
23772,
468,
257,
13588,
286,
39990,
32074,
30,
46506,
366,
16643,
768,
23772,
1,
16034,
3084,
62,
1899,
39118,
33411,
366,
31560,
5013,
1,
796,
705,
21921,
32074,
6
] |
provide the number of patients whose age is less than 85 and procedure long title is ureteral catheterization? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "85" AND procedures.long_title = "Ureteral catheterization" | [
15234,
485,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
7600,
290,
8771,
890,
3670,
318,
334,
260,
353,
282,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
7600,
290,
8771,
890,
3670,
318,
334,
260,
353,
282,
3797,
43332,
1634,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
What label is the ALCA-9197 Catalog? | SELECT "Label" FROM table_71462 WHERE "Catalog" = 'alca-9197' | [
2061,
6167,
318,
262,
317,
5639,
32,
12,
24,
24991,
44515,
30,
46506,
366,
33986,
1,
16034,
3084,
62,
45722,
5237,
33411,
366,
49015,
1,
796,
705,
282,
6888,
12,
24,
24991,
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,
6167,
318,
262,
317,
5639,
32,
12,
24,
24991,
44515,
30,
46506,
366,
33986,
1,
16034,
3084,
62,
45722,
5237,
33411,
366,
49015,
1,
796,
705,
282,
6888,
12,
24,
24991,
6
] |
how many nations received more medals than canada ? | SELECT COUNT("nation") FROM table_204_595 WHERE "total" > (SELECT "total" FROM table_204_595 WHERE "nation" = 'canada') | [
4919,
867,
7027,
2722,
517,
28057,
621,
460,
4763,
5633,
46506,
327,
28270,
7203,
25729,
4943,
16034,
3084,
62,
18638,
62,
35124,
33411,
366,
23350,
1,
1875,
357,
46506,
366,
23350,
1,
16034,
3084,
62,
18638,
62,
35124,
33411,
366,
2572... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7027,
2722,
517,
28057,
621,
460,
4763,
5633,
46506,
327,
28270,
7203,
25729,
4943,
16034,
3084,
62,
18638,
62,
35124,
33411,
366,
23350,
1,
1875,
357,
46506,
366,
23350,
1,
16034,
3084,
62,
18638,
62,
35124,
33411,
366,
2572... |
Name the least total for 1978 years won | SELECT MIN("Total") FROM table_68253 WHERE "Year(s) won" = '1978' | [
5376,
262,
1551,
2472,
329,
15524,
812,
1839,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
3104,
28592,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
37950,
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,
1551,
2472,
329,
15524,
812,
1839,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
3104,
28592,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
37950,
6
] |
Bernhard Langer maximum total was what? | SELECT MAX(total) FROM table_name_27 WHERE player = "bernhard langer" | [
23927,
10424,
406,
2564,
5415,
2472,
373,
644,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1983,
33411,
2137,
796,
366,
33900,
10424,
300,
2564,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23927,
10424,
406,
2564,
5415,
2472,
373,
644,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1983,
33411,
2137,
796,
366,
33900,
10424,
300,
2564,
1
] |
What is the result for the event that lasted 2:20? | SELECT "Res." FROM table_66331 WHERE "Time" = '2:20' | [
2061,
318,
262,
1255,
329,
262,
1785,
326,
15436,
362,
25,
1238,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
2791,
31697,
33411,
366,
7575,
1,
796,
705,
17,
25,
1238,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
329,
262,
1785,
326,
15436,
362,
25,
1238,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
2791,
31697,
33411,
366,
7575,
1,
796,
705,
17,
25,
1238,
6
] |
What is the latest first elected? | SELECT MAX(first_elected) FROM table_2668405_17 | [
2061,
318,
262,
3452,
717,
7018,
30,
46506,
25882,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
2075,
3104,
26598,
62,
1558
] | [
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,
3452,
717,
7018,
30,
46506,
25882,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
2075,
3104,
26598,
62,
1558
] |
Name the original air date for barnaby southcomb for charlie martin | SELECT "Original air date" FROM table_22294 WHERE "Director" = 'Barnaby Southcomb' AND "Writer" = 'Charlie Martin' | [
5376,
262,
2656,
1633,
3128,
329,
25203,
3930,
5366,
24011,
329,
1149,
14485,
11277,
259,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1828,
27696,
33411,
366,
28702,
1,
796,
705,
47359,
3930,
2520,
24011,
6,
5357,
366,
34379,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
1633,
3128,
329,
25203,
3930,
5366,
24011,
329,
1149,
14485,
11277,
259,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1828,
27696,
33411,
366,
28702,
1,
796,
705,
47359,
3930,
2520,
24011,
6,
5357,
366,
34379,
1,
... |
What is the lowest play with ue figueres club and a goal difference more than 16? | SELECT MIN("Played") FROM table_56548 WHERE "Club" = 'ue figueres' AND "Goal Difference" > '16' | [
2061,
318,
262,
9016,
711,
351,
334,
68,
2336,
518,
411,
3430,
290,
257,
3061,
3580,
517,
621,
1467,
30,
46506,
20625,
7203,
11002,
276,
4943,
16034,
3084,
62,
47372,
2780,
33411,
366,
42350,
1,
796,
705,
518,
2336,
518,
411,
6,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
711,
351,
334,
68,
2336,
518,
411,
3430,
290,
257,
3061,
3580,
517,
621,
1467,
30,
46506,
20625,
7203,
11002,
276,
4943,
16034,
3084,
62,
47372,
2780,
33411,
366,
42350,
1,
796,
705,
518,
2336,
518,
411,
6,
535... |
What is the High assists with a Date that is february 27? | SELECT "High assists" FROM table_43000 WHERE "Date" = 'february 27' | [
2061,
318,
262,
3334,
13648,
351,
257,
7536,
326,
318,
730,
65,
3728,
2681,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
3559,
830,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
2681,
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,
318,
262,
3334,
13648,
351,
257,
7536,
326,
318,
730,
65,
3728,
2681,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
3559,
830,
33411,
366,
10430,
1,
796,
705,
69,
1765,
3728,
2681,
6
] |
Name the most minutes and starts being 12 | SELECT MAX("Minutes") FROM table_26875 WHERE "Starts" = '12' | [
5376,
262,
749,
2431,
290,
4940,
852,
1105,
46506,
25882,
7203,
9452,
1769,
4943,
16034,
3084,
62,
25022,
2425,
33411,
366,
1273,
5889,
1,
796,
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
] | [
5376,
262,
749,
2431,
290,
4940,
852,
1105,
46506,
25882,
7203,
9452,
1769,
4943,
16034,
3084,
62,
25022,
2425,
33411,
366,
1273,
5889,
1,
796,
705,
1065,
6
] |
What are the names of all products, and count them by a bar chart, and I want to list y axis in desc order. | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY COUNT(Name) DESC | [
2061,
389,
262,
3891,
286,
477,
3186,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1351,
331,
16488,
287,
1715,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
18675,
44441,
11050,
6530,
38678,
11050,
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
] | [
2061,
389,
262,
3891,
286,
477,
3186,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1351,
331,
16488,
287,
1715,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
18675,
44441,
11050,
6530,
38678,
11050,
3... |
for type diesel-mechanical and configuration b-b, what is the status? | SELECT "Status" FROM table_39624 WHERE "Configuration" = 'b-b' AND "Type" = 'diesel-mechanical' | [
1640,
2099,
21866,
12,
1326,
3147,
605,
290,
8398,
275,
12,
65,
11,
644,
318,
262,
3722,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
34107,
1731,
33411,
366,
38149,
1,
796,
705,
65,
12,
65,
6,
5357,
366,
6030,
1,
796,
705,
25990,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1640,
2099,
21866,
12,
1326,
3147,
605,
290,
8398,
275,
12,
65,
11,
644,
318,
262,
3722,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
34107,
1731,
33411,
366,
38149,
1,
796,
705,
65,
12,
65,
6,
5357,
366,
6030,
1,
796,
705,
25990,
... |
For each payment method, how many payments were made Show bar chart, sort Y in ascending order. | SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code ORDER BY COUNT(*) | [
1890,
1123,
6074,
2446,
11,
703,
867,
7524,
547,
925,
5438,
2318,
8262,
11,
3297,
575,
287,
41988,
1502,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
22092,
62,
19197,
902,
44441,
11050,
6074,
62,
24396,
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
] | [
1890,
1123,
6074,
2446,
11,
703,
867,
7524,
547,
925,
5438,
2318,
8262,
11,
3297,
575,
287,
41988,
1502,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
22092,
62,
19197,
902,
44441,
11050,
6074,
62,
24396,
62,
... |
Please show different denominations and the corresponding number of schools in descending order. | SELECT denomination, COUNT(*) FROM school GROUP BY denomination ORDER BY COUNT(*) DESC | [
5492,
905,
1180,
49735,
290,
262,
11188,
1271,
286,
4266,
287,
31491,
1502,
13,
46506,
47491,
11,
327,
28270,
7,
28104,
16034,
1524,
44441,
11050,
47491,
38678,
11050,
327,
28270,
7,
28104,
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
] | [
5492,
905,
1180,
49735,
290,
262,
11188,
1271,
286,
4266,
287,
31491,
1502,
13,
46506,
47491,
11,
327,
28270,
7,
28104,
16034,
1524,
44441,
11050,
47491,
38678,
11050,
327,
28270,
7,
28104,
22196,
34
] |
What is the total number of cuts made of tournaments with 2 Events? | SELECT COUNT(cuts_made) FROM table_name_81 WHERE events = 2 | [
2061,
318,
262,
2472,
1271,
286,
6630,
925,
286,
18130,
351,
362,
18715,
30,
46506,
327,
28270,
7,
23779,
62,
9727,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
2995,
796,
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
] | [
2061,
318,
262,
2472,
1271,
286,
6630,
925,
286,
18130,
351,
362,
18715,
30,
46506,
327,
28270,
7,
23779,
62,
9727,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
2995,
796,
362
] |
had patient 022-89058 been prescribed 50 ml vial : dextrose 50 % iv soln, acetaminophen, or acetaminophen (tylenol) tablet 650 mg during their first hospital encounter? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-89058' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.... | [
18108,
5827,
657,
1828,
12,
4531,
2713,
23,
587,
14798,
2026,
25962,
410,
498,
1058,
390,
742,
13698,
2026,
4064,
21628,
1540,
77,
11,
25174,
5669,
47806,
11,
393,
25174,
5669,
47806,
357,
774,
11925,
349,
8,
14147,
22626,
10527,
1141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
5827,
657,
1828,
12,
4531,
2713,
23,
587,
14798,
2026,
25962,
410,
498,
1058,
390,
742,
13698,
2026,
4064,
21628,
1540,
77,
11,
25174,
5669,
47806,
11,
393,
25174,
5669,
47806,
357,
774,
11925,
349,
8,
14147,
22626,
10527,
1141,
... |
find the program owners that have some programs in both morning and night time. | SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.time_of_day = "Night" | [
19796,
262,
1430,
4393,
326,
423,
617,
4056,
287,
1111,
3329,
290,
1755,
640,
13,
46506,
256,
16,
13,
18403,
16034,
1430,
7054,
256,
16,
32357,
1268,
7025,
7054,
256,
17,
6177,
256,
16,
13,
23065,
62,
312,
796,
256,
17,
13,
23065,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1430,
4393,
326,
423,
617,
4056,
287,
1111,
3329,
290,
1755,
640,
13,
46506,
256,
16,
13,
18403,
16034,
1430,
7054,
256,
16,
32357,
1268,
7025,
7054,
256,
17,
6177,
256,
16,
13,
23065,
62,
312,
796,
256,
17,
13,
23065,
... |
INSTHUM 411 , how many times has it been offered ? | SELECT COUNT(DISTINCT course_offering.offering_id) FROM course, course_offering WHERE course.course_id = course_offering.course_id AND course.department = 'INSTHUM' AND course.number = 411 | [
38604,
39,
5883,
43184,
837,
703,
867,
1661,
468,
340,
587,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
2364,
1586,
62,
312,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,
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... | [
38604,
39,
5883,
43184,
837,
703,
867,
1661,
468,
340,
587,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
2364,
1586,
62,
312,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,
33411,
1781,
13,
17319,
62,... |
I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time | SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected" | [
40,
765,
262,
4006,
326,
468,
257,
13027,
294,
398,
65,
404,
12957,
259,
640,
286,
20573,
290,
35290,
16832,
640,
46506,
4006,
16034,
3084,
62,
3672,
62,
3901,
33411,
13027,
62,
400,
398,
65,
404,
12957,
259,
62,
2435,
796,
366,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
4006,
326,
468,
257,
13027,
294,
398,
65,
404,
12957,
259,
640,
286,
20573,
290,
35290,
16832,
640,
46506,
4006,
16034,
3084,
62,
3672,
62,
3901,
33411,
13027,
62,
400,
398,
65,
404,
12957,
259,
62,
2435,
796,
366,
167... |
Which Venue has Attendances of 11,045? | SELECT venue FROM table_name_97 WHERE attendance = "11,045" | [
13828,
9932,
518,
468,
46502,
1817,
286,
1367,
11,
40350,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
5607,
33411,
14858,
796,
366,
1157,
11,
40350,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9932,
518,
468,
46502,
1817,
286,
1367,
11,
40350,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
5607,
33411,
14858,
796,
366,
1157,
11,
40350,
1
] |
What location has 51,212 as the attendance? | SELECT location FROM table_name_60 WHERE attendance = "51,212" | [
2061,
4067,
468,
6885,
11,
21777,
355,
262,
14858,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
1899,
33411,
14858,
796,
366,
4349,
11,
21777,
1
] | [
1,
1,
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,
4067,
468,
6885,
11,
21777,
355,
262,
14858,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
1899,
33411,
14858,
796,
366,
4349,
11,
21777,
1
] |
What is the 2003 value with a 1r in 1998, a 14 in 1994, and a 7-12 career? | SELECT "2003" FROM table_61626 WHERE "1998" = '1r' AND "1994" = '1r' AND "Career" = '7-12' | [
2061,
318,
262,
5816,
1988,
351,
257,
352,
81,
287,
7795,
11,
257,
1478,
287,
9162,
11,
290,
257,
767,
12,
1065,
3451,
30,
46506,
366,
16088,
1,
16034,
3084,
62,
44214,
2075,
33411,
366,
21113,
1,
796,
705,
16,
81,
6,
5357,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5816,
1988,
351,
257,
352,
81,
287,
7795,
11,
257,
1478,
287,
9162,
11,
290,
257,
767,
12,
1065,
3451,
30,
46506,
366,
16088,
1,
16034,
3084,
62,
44214,
2075,
33411,
366,
21113,
1,
796,
705,
16,
81,
6,
5357,
366,
... |
indicate the daily average amount of sao2 for patient 594 on the last hospital visit. | SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 594 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)) AND chartev... | [
521,
5344,
262,
4445,
2811,
2033,
286,
473,
78,
17,
329,
5827,
642,
5824,
319,
262,
938,
4436,
3187,
13,
46506,
35224,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
521,
5344,
262,
4445,
2811,
2033,
286,
473,
78,
17,
329,
5827,
642,
5824,
319,
262,
938,
4436,
3187,
13,
46506,
35224,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268... |
in 2102 what were the top five most common specimen tests? | SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE STRFTIME('%y', microbiologyevents.charttime) = '2102' GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 5 | [
259,
362,
15377,
644,
547,
262,
1353,
1936,
749,
2219,
31674,
5254,
30,
46506,
256,
16,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
15154,
3419,
28729,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
362,
15377,
644,
547,
262,
1353,
1936,
749,
2219,
31674,
5254,
30,
46506,
256,
16,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
15154,
3419,
28729,... |
how many patients who had spinal tap were admitted before 2158? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2158" AND procedures.long_title = "Spinal tap" | [
4919,
867,
3871,
508,
550,
26234,
9814,
547,
6848,
878,
362,
21273,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
508,
550,
26234,
9814,
547,
6848,
878,
362,
21273,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... |
how many consecutive years did ernest george jansen serve as governor general of the union of south africa ? | SELECT "left office" - "took office" FROM table_203_89 WHERE "name\n(birth-death)" = 'ernest george jansen' | [
4919,
867,
12785,
812,
750,
220,
1142,
395,
4903,
3643,
474,
33807,
4691,
355,
8153,
2276,
286,
262,
6441,
286,
5366,
6580,
30997,
5633,
46506,
366,
9464,
2607,
1,
532,
366,
83,
566,
2607,
1,
16034,
3084,
62,
22416,
62,
4531,
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
] | [
4919,
867,
12785,
812,
750,
220,
1142,
395,
4903,
3643,
474,
33807,
4691,
355,
8153,
2276,
286,
262,
6441,
286,
5366,
6580,
30997,
5633,
46506,
366,
9464,
2607,
1,
532,
366,
83,
566,
2607,
1,
16034,
3084,
62,
22416,
62,
4531,
33411,
... |
what is the COACH economy class night service from BOSTON to SAN FRANCISCO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND fare_basis.class_type = 'COACH' AND fa... | [
10919,
318,
262,
7375,
16219,
3773,
1398,
1755,
2139,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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,
7375,
16219,
3773,
1398,
1755,
2139,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
... |
Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14? | SELECT MIN(bronze) FROM table_name_38 WHERE nation = "total" AND gold < 14 | [
13828,
19461,
318,
262,
9016,
530,
326,
468,
257,
8741,
286,
2472,
11,
290,
257,
3561,
4833,
621,
1478,
30,
46506,
20625,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
3277,
796,
366,
23350,
1,
5357,
3869,
1279,
1478... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
19461,
318,
262,
9016,
530,
326,
468,
257,
8741,
286,
2472,
11,
290,
257,
3561,
4833,
621,
1478,
30,
46506,
20625,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
3277,
796,
366,
23350,
1,
5357,
3869,
1279,
1478... |
What is the score on February 23, 2005? | SELECT score FROM table_name_81 WHERE date = "february 23, 2005" | [
2061,
318,
262,
4776,
319,
3945,
2242,
11,
5075,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6659,
33411,
3128,
796,
366,
69,
1765,
3728,
2242,
11,
5075,
1
] | [
1,
1,
1,
1,
1,
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,
319,
3945,
2242,
11,
5075,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6659,
33411,
3128,
796,
366,
69,
1765,
3728,
2242,
11,
5075,
1
] |
Riggs of e, and a Buechel & Manhart spelling (pronunciation) of e had what ullrich? | SELECT ullrich FROM table_name_92 WHERE riggs = "e" AND buechel_ & _manhart_spelling__pronunciation_ = "e" | [
49,
20340,
286,
304,
11,
290,
257,
347,
518,
29232,
1222,
1869,
18647,
24993,
357,
31186,
24978,
8,
286,
304,
550,
644,
334,
297,
7527,
30,
46506,
334,
297,
7527,
16034,
3084,
62,
3672,
62,
5892,
33411,
374,
20340,
796,
366,
68,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
49,
20340,
286,
304,
11,
290,
257,
347,
518,
29232,
1222,
1869,
18647,
24993,
357,
31186,
24978,
8,
286,
304,
550,
644,
334,
297,
7527,
30,
46506,
334,
297,
7527,
16034,
3084,
62,
3672,
62,
5892,
33411,
374,
20340,
796,
366,
68,
1,
... |
I want to see trend of the number of yearid by yearid, and display x-axis in ascending order. | SELECT yearid, COUNT(yearid) FROM hall_of_fame ORDER BY yearid | [
40,
765,
284,
766,
5182,
286,
262,
1271,
286,
614,
312,
416,
614,
312,
11,
290,
3359,
2124,
12,
22704,
287,
41988,
1502,
13,
46506,
614,
312,
11,
327,
28270,
7,
1941,
312,
8,
16034,
6899,
62,
1659,
62,
69,
480,
38678,
11050,
614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
284,
766,
5182,
286,
262,
1271,
286,
614,
312,
416,
614,
312,
11,
290,
3359,
2124,
12,
22704,
287,
41988,
1502,
13,
46506,
614,
312,
11,
327,
28270,
7,
1941,
312,
8,
16034,
6899,
62,
1659,
62,
69,
480,
38678,
11050,
614,
... |
Latest activity across all sites.. | SELECT DisplayName, ProfileImageUrl FROM Users WHERE DisplayName LIKE '%M%' AND ProfileImageUrl != '' | [
39478,
3842,
1973,
477,
5043,
492,
46506,
16531,
5376,
11,
13118,
5159,
28165,
16034,
18987,
33411,
16531,
5376,
34178,
705,
4,
44,
4,
6,
5357,
13118,
5159,
28165,
14512,
10148
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
39478,
3842,
1973,
477,
5043,
492,
46506,
16531,
5376,
11,
13118,
5159,
28165,
16034,
18987,
33411,
16531,
5376,
34178,
705,
4,
44,
4,
6,
5357,
13118,
5159,
28165,
14512,
10148
] |
please show me round trip tickets from DENVER to OAKLAND | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND NOT fare.round_trip_cost IS NULL AND flight_fare.fare_id ... | [
29688,
905,
502,
2835,
5296,
8587,
422,
37692,
5959,
284,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
29688,
905,
502,
2835,
5296,
8587,
422,
37692,
5959,
284,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,... |
Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox? | SELECT "College" FROM table_39372 WHERE "Round" < '7' AND "Pick #" < '27' AND "Name" = 'anthony maddox' | [
13828,
5535,
468,
257,
10485,
4833,
621,
767,
11,
290,
257,
12346,
1303,
4833,
621,
2681,
11,
290,
257,
6530,
286,
26794,
1647,
285,
2860,
1140,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
2670,
36720,
33411,
366,
22685,
1,
1279,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
5535,
468,
257,
10485,
4833,
621,
767,
11,
290,
257,
12346,
1303,
4833,
621,
2681,
11,
290,
257,
6530,
286,
26794,
1647,
285,
2860,
1140,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
2670,
36720,
33411,
366,
22685,
1,
1279,
705,
... |
How big (in km2) is Persarmenia? | SELECT area__km²_ FROM table_23887174_1 WHERE province__ashkharh_ = "Persarmenia" | [
2437,
1263,
357,
259,
10571,
17,
8,
318,
9467,
1670,
268,
544,
30,
46506,
1989,
834,
13276,
31185,
62,
16034,
3084,
62,
1954,
46660,
22985,
62,
16,
33411,
8473,
834,
1077,
74,
9869,
71,
62,
796,
366,
30946,
1670,
268,
544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1263,
357,
259,
10571,
17,
8,
318,
9467,
1670,
268,
544,
30,
46506,
1989,
834,
13276,
31185,
62,
16034,
3084,
62,
1954,
46660,
22985,
62,
16,
33411,
8473,
834,
1077,
74,
9869,
71,
62,
796,
366,
30946,
1670,
268,
544,
1
] |
What is the crowd size for st kilda as the home team? | SELECT "Crowd" FROM table_56079 WHERE "Home team" = 'st kilda' | [
2061,
318,
262,
4315,
2546,
329,
336,
479,
27281,
355,
262,
1363,
1074,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
34135,
3720,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
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,
4315,
2546,
329,
336,
479,
27281,
355,
262,
1363,
1074,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
34135,
3720,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
6
] |
Who is the leading lady in a yank in the r.a.f.? | SELECT "Leading Lady" FROM table_10840 WHERE "Title" = 'a yank in the r.a.f.' | [
8241,
318,
262,
3756,
10846,
287,
257,
331,
962,
287,
262,
374,
13,
64,
13,
69,
40791,
46506,
366,
20451,
278,
11182,
1,
16034,
3084,
62,
15711,
1821,
33411,
366,
19160,
1,
796,
705,
64,
331,
962,
287,
262,
374,
13,
64,
13,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
3756,
10846,
287,
257,
331,
962,
287,
262,
374,
13,
64,
13,
69,
40791,
46506,
366,
20451,
278,
11182,
1,
16034,
3084,
62,
15711,
1821,
33411,
366,
19160,
1,
796,
705,
64,
331,
962,
287,
262,
374,
13,
64,
13,
69,
... |
find out the short title of both diagnoses and procedure for patient with patient id 23602. | SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "23602" | [
19796,
503,
262,
1790,
3670,
286,
1111,
40567,
290,
8771,
329,
5827,
351,
5827,
4686,
2242,
31418,
13,
46506,
40567,
13,
19509,
62,
7839,
11,
9021,
13,
19509,
62,
7839,
16034,
40567,
3268,
21479,
32357,
1268,
9021,
6177,
40567,
13,
1810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
503,
262,
1790,
3670,
286,
1111,
40567,
290,
8771,
329,
5827,
351,
5827,
4686,
2242,
31418,
13,
46506,
40567,
13,
19509,
62,
7839,
11,
9021,
13,
19509,
62,
7839,
16034,
40567,
3268,
21479,
32357,
1268,
9021,
6177,
40567,
13,
1810... |
when does patient 025-28600 have received a abscess microbiology test for the last time in 09/this year? | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-28600')) AND microlab.culturesite = 'abscess' AND DATETIME(mi... | [
12518,
857,
5827,
657,
1495,
12,
2078,
8054,
423,
2722,
257,
2352,
919,
24559,
1435,
1332,
329,
262,
938,
640,
287,
7769,
14,
5661,
614,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
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... | [
12518,
857,
5827,
657,
1495,
12,
2078,
8054,
423,
2722,
257,
2352,
919,
24559,
1435,
1332,
329,
262,
938,
640,
287,
7769,
14,
5661,
614,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
13,... |
What is the average age for each city and what are those cities Show bar chart, order Y from low to high order. | SELECT city_code, AVG(Age) FROM Student GROUP BY city_code ORDER BY AVG(Age) | [
2061,
318,
262,
2811,
2479,
329,
1123,
1748,
290,
644,
389,
883,
4736,
5438,
2318,
8262,
11,
1502,
575,
422,
1877,
284,
1029,
1502,
13,
46506,
1748,
62,
8189,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
1748,
62,
8189,
38678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
2479,
329,
1123,
1748,
290,
644,
389,
883,
4736,
5438,
2318,
8262,
11,
1502,
575,
422,
1877,
284,
1029,
1502,
13,
46506,
1748,
62,
8189,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
1748,
62,
8189,
38678,
... |
Which platforms can you play Portal 2 on? | SELECT "Platform(s)" FROM table_64868 WHERE "Game" = 'portal 2' | [
13828,
9554,
460,
345,
711,
25663,
362,
319,
30,
46506,
366,
37148,
7,
82,
16725,
16034,
3084,
62,
34287,
3104,
33411,
366,
8777,
1,
796,
705,
634,
282,
362,
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
] | [
13828,
9554,
460,
345,
711,
25663,
362,
319,
30,
46506,
366,
37148,
7,
82,
16725,
16034,
3084,
62,
34287,
3104,
33411,
366,
8777,
1,
796,
705,
634,
282,
362,
6
] |
What country scored 71-66-66-71=274? | SELECT country FROM table_name_32 WHERE score = 71 - 66 - 66 - 71 = 274 | [
2061,
1499,
7781,
9166,
12,
2791,
12,
2791,
12,
4869,
28,
28857,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2624,
33411,
4776,
796,
9166,
532,
7930,
532,
7930,
532,
9166,
796,
39768
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
7781,
9166,
12,
2791,
12,
2791,
12,
4869,
28,
28857,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2624,
33411,
4776,
796,
9166,
532,
7930,
532,
7930,
532,
9166,
796,
39768
] |
What papers does Mirella Lapata have in ACL ? | SELECT DISTINCT paper.paperid FROM author, paper, venue, writes WHERE author.authorname = 'Mirella Lapata' AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
2061,
9473,
857,
337,
557,
8466,
26944,
1045,
423,
287,
17382,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
14359,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
44,
557,
8466,
26944,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
9473,
857,
337,
557,
8466,
26944,
1045,
423,
287,
17382,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
14359,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
44,
557,
8466,
26944,
10... |
Which units are commanded by Lieutenant Colonel Francis Hepburn? | SELECT unit FROM table_11793221_2 WHERE commander = "Lieutenant Colonel Francis Hepburn" | [
13828,
4991,
389,
22419,
416,
21586,
21636,
12155,
32308,
10899,
30,
46506,
4326,
16034,
3084,
62,
1157,
44750,
26115,
62,
17,
33411,
11561,
796,
366,
47918,
15340,
21636,
12155,
32308,
10899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
4991,
389,
22419,
416,
21586,
21636,
12155,
32308,
10899,
30,
46506,
4326,
16034,
3084,
62,
1157,
44750,
26115,
62,
17,
33411,
11561,
796,
366,
47918,
15340,
21636,
12155,
32308,
10899,
1
] |
how long did colin clarke coach the puerto rico islanders ? | SELECT "until" - "from" FROM table_204_832 WHERE "name" = 'colin clarke' AND "club" = 'puerto rico islanders' | [
4919,
890,
750,
951,
259,
10212,
365,
3985,
262,
47574,
13806,
374,
3713,
7022,
364,
5633,
46506,
366,
28446,
1,
532,
366,
6738,
1,
16034,
3084,
62,
18638,
62,
23,
2624,
33411,
366,
3672,
1,
796,
705,
4033,
259,
10212,
365,
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
] | [
4919,
890,
750,
951,
259,
10212,
365,
3985,
262,
47574,
13806,
374,
3713,
7022,
364,
5633,
46506,
366,
28446,
1,
532,
366,
6738,
1,
16034,
3084,
62,
18638,
62,
23,
2624,
33411,
366,
3672,
1,
796,
705,
4033,
259,
10212,
365,
6,
5357,... |
How much Silver has a Nation of total, and a Total smaller than 54? | SELECT COUNT("Silver") FROM table_63092 WHERE "Nation" = 'total' AND "Total" < '54' | [
2437,
881,
7698,
468,
257,
8741,
286,
2472,
11,
290,
257,
7472,
4833,
621,
7175,
30,
46506,
327,
28270,
7203,
26766,
4943,
16034,
3084,
62,
30005,
5892,
33411,
366,
46108,
1,
796,
705,
23350,
6,
5357,
366,
14957,
1,
1279,
705,
4051,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
881,
7698,
468,
257,
8741,
286,
2472,
11,
290,
257,
7472,
4833,
621,
7175,
30,
46506,
327,
28270,
7203,
26766,
4943,
16034,
3084,
62,
30005,
5892,
33411,
366,
46108,
1,
796,
705,
23350,
6,
5357,
366,
14957,
1,
1279,
705,
4051,
... |
In what stadium were the New England Patriots the visiting team? | SELECT stadium FROM table_name_13 WHERE visiting_team = "new england patriots" | [
818,
644,
10308,
547,
262,
968,
4492,
13104,
262,
10013,
1074,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
1485,
33411,
10013,
62,
15097,
796,
366,
3605,
1786,
1044,
12650,
1747,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
10308,
547,
262,
968,
4492,
13104,
262,
10013,
1074,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
1485,
33411,
10013,
62,
15097,
796,
366,
3605,
1786,
1044,
12650,
1747,
1
] |
What was the partner count when the opponents in the final was forget leconte? | SELECT COUNT("Partner") FROM table_25155 WHERE "Opponents in the final" = 'Forget Leconte' | [
2061,
373,
262,
5212,
954,
618,
262,
7691,
287,
262,
2457,
373,
6044,
443,
1102,
660,
30,
46506,
327,
28270,
7203,
7841,
1008,
4943,
16034,
3084,
62,
1495,
18742,
33411,
366,
27524,
3906,
287,
262,
2457,
1,
796,
705,
1890,
1136,
406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5212,
954,
618,
262,
7691,
287,
262,
2457,
373,
6044,
443,
1102,
660,
30,
46506,
327,
28270,
7203,
7841,
1008,
4943,
16034,
3084,
62,
1495,
18742,
33411,
366,
27524,
3906,
287,
262,
2457,
1,
796,
705,
1890,
1136,
406,
... |
what's the health score with justice being 80.7 | SELECT "Health" FROM table_72567 WHERE "Justice" = '80.7' | [
10919,
338,
262,
1535,
4776,
351,
5316,
852,
4019,
13,
22,
46506,
366,
18081,
1,
16034,
3084,
62,
45151,
3134,
33411,
366,
28447,
1,
796,
705,
1795,
13,
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
] | [
10919,
338,
262,
1535,
4776,
351,
5316,
852,
4019,
13,
22,
46506,
366,
18081,
1,
16034,
3084,
62,
45151,
3134,
33411,
366,
28447,
1,
796,
705,
1795,
13,
22,
6
] |
what were the four most common drugs prescribed to patients aged 20s during the same hospital visit after they had been diagnosed with fx lumbar vertebra-close this year? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | [
10919,
547,
262,
1440,
749,
2219,
5010,
14798,
284,
3871,
9722,
1160,
82,
1141,
262,
976,
4436,
3187,
706,
484,
550,
587,
14641,
351,
277,
87,
300,
2178,
283,
30362,
16057,
12,
19836,
428,
614,
30,
46506,
256,
18,
13,
30349,
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... | [
10919,
547,
262,
1440,
749,
2219,
5010,
14798,
284,
3871,
9722,
1160,
82,
1141,
262,
976,
4436,
3187,
706,
484,
550,
587,
14641,
351,
277,
87,
300,
2178,
283,
30362,
16057,
12,
19836,
428,
614,
30,
46506,
256,
18,
13,
30349,
16034,
... |
The order # is what for the week # Top 10? | SELECT "Order #" FROM table_28506 WHERE "Week #" = 'Top 10' | [
464,
1502,
1303,
318,
644,
329,
262,
1285,
1303,
5849,
838,
30,
46506,
366,
18743,
1303,
1,
16034,
3084,
62,
2078,
35638,
33411,
366,
20916,
1303,
1,
796,
705,
9126,
838,
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
] | [
464,
1502,
1303,
318,
644,
329,
262,
1285,
1303,
5849,
838,
30,
46506,
366,
18743,
1303,
1,
16034,
3084,
62,
2078,
35638,
33411,
366,
20916,
1303,
1,
796,
705,
9126,
838,
6
] |
Who led with the highest points during the game against Indiana? | SELECT high_points FROM table_23286158_9 WHERE team = "Indiana" | [
8241,
2957,
351,
262,
4511,
2173,
1141,
262,
983,
1028,
10278,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
1954,
27033,
21273,
62,
24,
33411,
1074,
796,
366,
49153,
1
] | [
1,
1,
1,
1,
1,
1,
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,
2957,
351,
262,
4511,
2173,
1141,
262,
983,
1028,
10278,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
1954,
27033,
21273,
62,
24,
33411,
1074,
796,
366,
49153,
1
] |
Which titles have 18.73 u.s. viewers. | SELECT "Title" FROM table_16619 WHERE "U.S. viewers (million)" = '18.73' | [
13828,
8714,
423,
1248,
13,
4790,
334,
13,
82,
13,
10209,
13,
46506,
366,
19160,
1,
16034,
3084,
62,
23055,
1129,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
1507,
13,
4790,
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
] | [
13828,
8714,
423,
1248,
13,
4790,
334,
13,
82,
13,
10209,
13,
46506,
366,
19160,
1,
16034,
3084,
62,
23055,
1129,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
1507,
13,
4790,
6
] |
What is the yeast ortholog that has a subpathway of GGR and GeneCards entry CETN2? | SELECT "Yeast Ortholog" FROM table_65300 WHERE "Subpathway" = 'ggr' AND "GeneCards Entry" = 'cetn2' | [
2061,
318,
262,
20146,
29617,
928,
326,
468,
257,
850,
6978,
1014,
286,
402,
10761,
290,
13005,
34,
1371,
5726,
46632,
45,
17,
30,
46506,
366,
56,
23316,
47664,
928,
1,
16034,
3084,
62,
2996,
6200,
33411,
366,
7004,
6978,
1014,
1,
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
] | [
2061,
318,
262,
20146,
29617,
928,
326,
468,
257,
850,
6978,
1014,
286,
402,
10761,
290,
13005,
34,
1371,
5726,
46632,
45,
17,
30,
46506,
366,
56,
23316,
47664,
928,
1,
16034,
3084,
62,
2996,
6200,
33411,
366,
7004,
6978,
1014,
1,
7... |
What actor made a film in 1957? | SELECT "Name" FROM table_51241 WHERE "Year" = '1957' | [
2061,
8674,
925,
257,
2646,
287,
25177,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
25836,
3901,
33411,
366,
17688,
1,
796,
705,
1129,
3553,
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,
8674,
925,
257,
2646,
287,
25177,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
25836,
3901,
33411,
366,
17688,
1,
796,
705,
1129,
3553,
6
] |
count the number of times patient 81840 had undergone other pleural incision until 2103. | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'other pleural incision') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 81840) AND STRFTIME('%y', pr... | [
9127,
262,
1271,
286,
1661,
5827,
807,
1507,
1821,
550,
29900,
584,
3339,
1523,
753,
1166,
1566,
362,
15197,
13,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
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... | [
9127,
262,
1271,
286,
1661,
5827,
807,
1507,
1821,
550,
29900,
584,
3339,
1523,
753,
1166,
1566,
362,
15197,
13,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
... |
What Song has a Group Song of Ring Ring Ring and a Score of 6.0 + 6.5 + 5.0 + 6.5 = 24.0? | SELECT "Song" FROM table_43465 WHERE "Group Song" = 'ring ring ring' AND "Score" = '6.0 + 6.5 + 5.0 + 6.5 = 24.0' | [
2061,
10940,
468,
257,
4912,
10940,
286,
12569,
12569,
12569,
290,
257,
15178,
286,
718,
13,
15,
1343,
718,
13,
20,
1343,
642,
13,
15,
1343,
718,
13,
20,
796,
1987,
13,
15,
30,
46506,
366,
44241,
1,
16034,
3084,
62,
47101,
2996,
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,
10940,
468,
257,
4912,
10940,
286,
12569,
12569,
12569,
290,
257,
15178,
286,
718,
13,
15,
1343,
718,
13,
20,
1343,
642,
13,
15,
1343,
718,
13,
20,
796,
1987,
13,
15,
30,
46506,
366,
44241,
1,
16034,
3084,
62,
47101,
2996,
3... |
What is the lowest First Elected, when Party is 'Republican', and when District is 'Minnesota 1'? | SELECT MIN(first_elected) FROM table_name_19 WHERE party = "republican" AND district = "minnesota 1" | [
2061,
318,
262,
9016,
3274,
5903,
276,
11,
618,
3615,
318,
705,
25777,
3256,
290,
618,
5665,
318,
705,
45670,
352,
30960,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
2151,
796,
366,
7856,
841,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
3274,
5903,
276,
11,
618,
3615,
318,
705,
25777,
3256,
290,
618,
5665,
318,
705,
45670,
352,
30960,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
2151,
796,
366,
7856,
841,
272,
... |
Count different addresses of each school. | SELECT COUNT(DISTINCT dept_address), school_code FROM department GROUP BY school_code | [
12332,
1180,
9405,
286,
1123,
1524,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
390,
457,
62,
21975,
828,
1524,
62,
8189,
16034,
5011,
44441,
11050,
1524,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
1180,
9405,
286,
1123,
1524,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
390,
457,
62,
21975,
828,
1524,
62,
8189,
16034,
5011,
44441,
11050,
1524,
62,
8189
] |
Which artist has the Spoofed title Miscue 911? | SELECT "Artist" FROM table_40253 WHERE "Spoofed Title" = 'miscue 911' | [
13828,
6802,
468,
262,
1338,
37711,
276,
3670,
29882,
518,
16679,
30,
46506,
366,
43020,
1,
16034,
3084,
62,
1821,
28592,
33411,
366,
4561,
37711,
276,
11851,
1,
796,
705,
44374,
518,
16679,
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,
6802,
468,
262,
1338,
37711,
276,
3670,
29882,
518,
16679,
30,
46506,
366,
43020,
1,
16034,
3084,
62,
1821,
28592,
33411,
366,
4561,
37711,
276,
11851,
1,
796,
705,
44374,
518,
16679,
6
] |
Who was the player with a transfer window of summer and was moving to Kortrijk? | SELECT "Name" FROM table_8428 WHERE "Transfer window" = 'summer' AND "Moving to" = 'kortrijk' | [
8241,
373,
262,
2137,
351,
257,
4351,
4324,
286,
3931,
290,
373,
3867,
284,
509,
419,
380,
73,
74,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
5705,
2078,
33411,
366,
43260,
4324,
1,
796,
705,
16345,
647,
6,
5357,
366,
33622,
284,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2137,
351,
257,
4351,
4324,
286,
3931,
290,
373,
3867,
284,
509,
419,
380,
73,
74,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
5705,
2078,
33411,
366,
43260,
4324,
1,
796,
705,
16345,
647,
6,
5357,
366,
33622,
284,
1... |
Pie. what are the average ages for male and female students? | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex | [
48223,
13,
644,
389,
262,
2811,
9337,
329,
4257,
290,
4048,
2444,
30,
46506,
14419,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
48223,
13,
644,
389,
262,
2811,
9337,
329,
4257,
290,
4048,
2444,
30,
46506,
14419,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419
] |
What is the average number of hosts for parties? | SELECT AVG(Number_of_hosts) FROM party | [
2061,
318,
262,
2811,
1271,
286,
11453,
329,
4671,
30,
46506,
35224,
7,
15057,
62,
1659,
62,
4774,
82,
8,
16034,
2151
] | [
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,
1271,
286,
11453,
329,
4671,
30,
46506,
35224,
7,
15057,
62,
1659,
62,
4774,
82,
8,
16034,
2151
] |
Which Runner(s)-up has a Tournament of general foods pga seniors' championship? | SELECT runner_s__up FROM table_name_65 WHERE tournament = "general foods pga seniors' championship" | [
13828,
21529,
7,
82,
13219,
929,
468,
257,
9595,
286,
2276,
9013,
279,
4908,
23481,
6,
12184,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2996,
33411,
7756,
796,
366,
24622,
9013,
279,
4908,
23481,
6,
12184,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21529,
7,
82,
13219,
929,
468,
257,
9595,
286,
2276,
9013,
279,
4908,
23481,
6,
12184,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2996,
33411,
7756,
796,
366,
24622,
9013,
279,
4908,
23481,
6,
12184,
1
] |
What courses provide one / you with 2 credits ? | SELECT DISTINCT name, number FROM course WHERE credits = 2 AND department = 'EECS' | [
2061,
10902,
2148,
530,
1220,
345,
351,
362,
10824,
5633,
46506,
360,
8808,
1268,
4177,
1438,
11,
1271,
16034,
1781,
33411,
10824,
796,
362,
5357,
5011,
796,
705,
36,
2943,
50,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
10902,
2148,
530,
1220,
345,
351,
362,
10824,
5633,
46506,
360,
8808,
1268,
4177,
1438,
11,
1271,
16034,
1781,
33411,
10824,
796,
362,
5357,
5011,
796,
705,
36,
2943,
50,
6
] |
What was the language of 'Mein Name Ist Bach'? | SELECT "Language(s)" FROM table_24740 WHERE "Film title used in nomination" = 'Mein Name Ist Bach' | [
2061,
373,
262,
3303,
286,
705,
5308,
259,
6530,
314,
301,
25332,
30960,
46506,
366,
32065,
7,
82,
16725,
16034,
3084,
62,
23753,
1821,
33411,
366,
39750,
3670,
973,
287,
11872,
1,
796,
705,
5308,
259,
6530,
314,
301,
25332,
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,
373,
262,
3303,
286,
705,
5308,
259,
6530,
314,
301,
25332,
30960,
46506,
366,
32065,
7,
82,
16725,
16034,
3084,
62,
23753,
1821,
33411,
366,
39750,
3670,
973,
287,
11872,
1,
796,
705,
5308,
259,
6530,
314,
301,
25332,
6
] |
when for the last time until 14 months ago was patient 7165 prescribed potassium phosphate and furosemide at the same time? | SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'potassium phosphate' AND admissions.subject_id = 7165 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-14 month'... | [
12518,
329,
262,
938,
640,
1566,
1478,
1933,
2084,
373,
5827,
767,
20986,
14798,
33156,
46926,
290,
277,
1434,
43616,
485,
379,
262,
976,
640,
30,
46506,
256,
16,
13,
9688,
4475,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
262,
938,
640,
1566,
1478,
1933,
2084,
373,
5827,
767,
20986,
14798,
33156,
46926,
290,
277,
1434,
43616,
485,
379,
262,
976,
640,
30,
46506,
256,
16,
13,
9688,
4475,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092... |
Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8? | SELECT poll FROM table_name_10 WHERE wk_10 > 2 AND wk_2 = "12" AND wk_13 = 8 | [
13828,
3278,
550,
257,
1285,
838,
4025,
621,
362,
11,
257,
1285,
362,
286,
3446,
1105,
11,
290,
257,
1285,
1511,
286,
807,
30,
46506,
3278,
16034,
3084,
62,
3672,
62,
940,
33411,
266,
74,
62,
940,
1875,
362,
5357,
266,
74,
62,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3278,
550,
257,
1285,
838,
4025,
621,
362,
11,
257,
1285,
362,
286,
3446,
1105,
11,
290,
257,
1285,
1511,
286,
807,
30,
46506,
3278,
16034,
3084,
62,
3672,
62,
940,
33411,
266,
74,
62,
940,
1875,
362,
5357,
266,
74,
62,
17,... |
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9? | SELECT MAX("Attendance") FROM table_35913 WHERE "Opponent" = 'oakland raiders' AND "Week" > '9' | [
2061,
318,
262,
4511,
14858,
326,
468,
26210,
1044,
9513,
364,
355,
262,
6125,
11,
351,
257,
1285,
3744,
621,
860,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
30743,
1485,
33411,
366,
27524,
3471,
1,
796,
705,
15877... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
14858,
326,
468,
26210,
1044,
9513,
364,
355,
262,
6125,
11,
351,
257,
1285,
3744,
621,
860,
30,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
30743,
1485,
33411,
366,
27524,
3471,
1,
796,
705,
15877... |
how many male patients were born after the year 2076? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.dob_year > "2076" | [
4919,
867,
4257,
3871,
547,
4642,
706,
262,
614,
1160,
4304,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
67,
672,
62,
1941,
1875,
366,
1238,
4304,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
4257,
3871,
547,
4642,
706,
262,
614,
1160,
4304,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
67,
672,
62,
1941,
1875,
366,
1238,
4304,
1
] |
provide the drug code and drug dose for anna johnson. | SELECT prescriptions.formulary_drug_cd, prescriptions.drug_dose FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Anna Johnson" | [
15234,
485,
262,
2563,
2438,
290,
2563,
10742,
329,
1529,
64,
45610,
1559,
13,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
11,
34092,
13,
30349,
62,
34436,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
2563,
2438,
290,
2563,
10742,
329,
1529,
64,
45610,
1559,
13,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
11,
34092,
13,
30349,
62,
34436,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108... |
What course name does LACS 483 have ? | SELECT DISTINCT name FROM course WHERE department = 'LACS' AND number = 483 | [
2061,
1781,
1438,
857,
406,
2246,
50,
4764,
18,
423,
5633,
46506,
360,
8808,
1268,
4177,
1438,
16034,
1781,
33411,
5011,
796,
705,
43,
2246,
50,
6,
5357,
1271,
796,
4764,
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,
1781,
1438,
857,
406,
2246,
50,
4764,
18,
423,
5633,
46506,
360,
8808,
1268,
4177,
1438,
16034,
1781,
33411,
5011,
796,
705,
43,
2246,
50,
6,
5357,
1271,
796,
4764,
18
] |
What's the subject of 20 questions in those issues where Jillian Grace is the centerfold model? | SELECT "20 Questions" FROM table_20238 WHERE "Centerfold model" = 'Jillian Grace' | [
2061,
338,
262,
2426,
286,
1160,
2683,
287,
883,
2428,
810,
22772,
666,
16156,
318,
262,
3641,
11379,
2746,
30,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
1238,
23721,
33411,
366,
23656,
11379,
2746,
1,
796,
705,
41,
37896,
16156,
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,
338,
262,
2426,
286,
1160,
2683,
287,
883,
2428,
810,
22772,
666,
16156,
318,
262,
3641,
11379,
2746,
30,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
1238,
23721,
33411,
366,
23656,
11379,
2746,
1,
796,
705,
41,
37896,
16156,
6... |
Bar chart x axis policy type code y axis the total number | SELECT Policy_Type_Code, COUNT(*) FROM Policies GROUP BY Policy_Type_Code | [
10374,
8262,
2124,
16488,
2450,
2099,
2438,
331,
16488,
262,
2472,
1271,
46506,
7820,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
42283,
44441,
11050,
7820,
62,
6030,
62,
10669
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
2450,
2099,
2438,
331,
16488,
262,
2472,
1271,
46506,
7820,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
42283,
44441,
11050,
7820,
62,
6030,
62,
10669
] |
What is the release Date of Catalog RR 8655-2? | SELECT "Date" FROM table_40377 WHERE "Catalog" = 'rr 8655-2' | [
2061,
318,
262,
2650,
7536,
286,
44515,
26067,
9849,
2816,
12,
17,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1821,
26514,
33411,
366,
49015,
1,
796,
705,
21062,
9849,
2816,
12,
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
] | [
2061,
318,
262,
2650,
7536,
286,
44515,
26067,
9849,
2816,
12,
17,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1821,
26514,
33411,
366,
49015,
1,
796,
705,
21062,
9849,
2816,
12,
17,
6
] |
Number of people of each age. | SELECT Age, COUNT(*) AS UserCount FROM Users WHERE NOT Age IS NULL AND Age > 0 GROUP BY Age ORDER BY Age | [
15057,
286,
661,
286,
1123,
2479,
13,
46506,
7129,
11,
327,
28270,
7,
28104,
7054,
11787,
12332,
16034,
18987,
33411,
5626,
7129,
3180,
15697,
5357,
7129,
1875,
657,
44441,
11050,
7129,
38678,
11050,
7129
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15057,
286,
661,
286,
1123,
2479,
13,
46506,
7129,
11,
327,
28270,
7,
28104,
7054,
11787,
12332,
16034,
18987,
33411,
5626,
7129,
3180,
15697,
5357,
7129,
1875,
657,
44441,
11050,
7129,
38678,
11050,
7129
] |
which team has the most games behind -lrb- gb -rrb- ? | SELECT "central division\nv\nt\ne" FROM table_202_59 ORDER BY "gb" DESC LIMIT 1 | [
4758,
1074,
468,
262,
749,
1830,
2157,
532,
14050,
65,
12,
308,
65,
532,
21062,
65,
12,
5633,
46506,
366,
31463,
7297,
59,
48005,
59,
429,
59,
710,
1,
16034,
3084,
62,
19004,
62,
3270,
38678,
11050,
366,
22296,
1,
22196,
34,
27564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
468,
262,
749,
1830,
2157,
532,
14050,
65,
12,
308,
65,
532,
21062,
65,
12,
5633,
46506,
366,
31463,
7297,
59,
48005,
59,
429,
59,
710,
1,
16034,
3084,
62,
19004,
62,
3270,
38678,
11050,
366,
22296,
1,
22196,
34,
27564,
... |
has there been any surgery on patient 022-67644 since 3 years ago? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-67644')) AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(... | [
10134,
612,
587,
597,
8185,
319,
5827,
657,
1828,
12,
3134,
29173,
1201,
513,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
612,
587,
597,
8185,
319,
5827,
657,
1828,
12,
3134,
29173,
1201,
513,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712... |
Questions Likely to be of poor quality. | SELECT * FROM Posts WHERE Body LIKE '% i %' COLLATE Latin1_General_BIN ORDER BY Id | [
35741,
45974,
284,
307,
286,
3595,
3081,
13,
46506,
1635,
16034,
12043,
33411,
12290,
34178,
705,
4,
1312,
4064,
6,
7375,
3069,
6158,
9133,
16,
62,
12218,
62,
33,
1268,
38678,
11050,
5121
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35741,
45974,
284,
307,
286,
3595,
3081,
13,
46506,
1635,
16034,
12043,
33411,
12290,
34178,
705,
4,
1312,
4064,
6,
7375,
3069,
6158,
9133,
16,
62,
12218,
62,
33,
1268,
38678,
11050,
5121
] |
what is the average hospital cost involving a drug that is called cefazolin 2 gm in ns 100 ml ivpb until 2103? | SELECT AVG(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 medication.patientunitstayid FROM medication WHERE medication.drugname = 'cefazolin 2 gm in ns 100 ml ivpb')) AND STRFTI... | [
10919,
318,
262,
2811,
4436,
1575,
7411,
257,
2563,
326,
318,
1444,
269,
891,
1031,
24910,
362,
308,
76,
287,
36545,
1802,
25962,
21628,
40842,
1566,
362,
15197,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7411,
257,
2563,
326,
318,
1444,
269,
891,
1031,
24910,
362,
308,
76,
287,
36545,
1802,
25962,
21628,
40842,
1566,
362,
15197,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
... |
Who scored the most point on December 13? | SELECT "High points" FROM table_38307 WHERE "Date" = 'december 13' | [
8241,
7781,
262,
749,
966,
319,
3426,
1511,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
2548,
22996,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
1511,
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
] | [
8241,
7781,
262,
749,
966,
319,
3426,
1511,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
2548,
22996,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
1511,
6
] |
Which airport has an IATA of TYN? | SELECT airport FROM table_name_52 WHERE iata = "tyn" | [
13828,
9003,
468,
281,
314,
13563,
286,
24412,
45,
30,
46506,
9003,
16034,
3084,
62,
3672,
62,
4309,
33411,
1312,
1045,
796,
366,
774,
77,
1
] | [
1,
1,
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,
9003,
468,
281,
314,
13563,
286,
24412,
45,
30,
46506,
9003,
16034,
3084,
62,
3672,
62,
4309,
33411,
1312,
1045,
796,
366,
774,
77,
1
] |
What was the result for round r3? | SELECT result FROM table_name_10 WHERE round = "r3" | [
2061,
373,
262,
1255,
329,
2835,
374,
18,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
940,
33411,
2835,
796,
366,
81,
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
] | [
2061,
373,
262,
1255,
329,
2835,
374,
18,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
940,
33411,
2835,
796,
366,
81,
18,
1
] |
Return a bar chart showing the number of documents stored in each weekday, and list in asc by the Y please. | SELECT Date_Stored, COUNT(Date_Stored) FROM All_Documents AS T1 JOIN Ref_Calendar AS T2 ON T1.Date_Stored = T2.Calendar_Date ORDER BY COUNT(Date_Stored) | [
13615,
257,
2318,
8262,
4478,
262,
1271,
286,
4963,
8574,
287,
1123,
28269,
11,
290,
1351,
287,
10570,
416,
262,
575,
3387,
13,
46506,
7536,
62,
1273,
1850,
11,
327,
28270,
7,
10430,
62,
1273,
1850,
8,
16034,
1439,
62,
38354,
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... | [
13615,
257,
2318,
8262,
4478,
262,
1271,
286,
4963,
8574,
287,
1123,
28269,
11,
290,
1351,
287,
10570,
416,
262,
575,
3387,
13,
46506,
7536,
62,
1273,
1850,
11,
327,
28270,
7,
10430,
62,
1273,
1850,
8,
16034,
1439,
62,
38354,
7054,
... |
Loses of 2, and a Pos. smaller than 2 had how many highest matches? | SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2 | [
43,
4629,
286,
362,
11,
290,
257,
18574,
13,
4833,
621,
362,
550,
703,
867,
4511,
7466,
30,
46506,
25882,
7,
6759,
2052,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
14754,
796,
362,
5357,
1426,
1279,
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
] | [
43,
4629,
286,
362,
11,
290,
257,
18574,
13,
4833,
621,
362,
550,
703,
867,
4511,
7466,
30,
46506,
25882,
7,
6759,
2052,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
14754,
796,
362,
5357,
1426,
1279,
362
] |
Who is the player who has had 7 first team appearances? | SELECT "Player" FROM table_51189 WHERE "First-Team Appearances" = '7' | [
8241,
318,
262,
2137,
508,
468,
550,
767,
717,
1074,
11057,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
41647,
4531,
33411,
366,
5962,
12,
15592,
2034,
35630,
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
] | [
8241,
318,
262,
2137,
508,
468,
550,
767,
717,
1074,
11057,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
41647,
4531,
33411,
366,
5962,
12,
15592,
2034,
35630,
1,
796,
705,
22,
6
] |
What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg | SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = "6.0" | [
2061,
318,
262,
781,
858,
20735,
357,
3020,
8,
329,
262,
3463,
357,
10025,
14,
76,
8,
718,
13,
15,
30,
54,
70,
46506,
781,
858,
62,
400,
624,
1108,
834,
3020,
62,
16034,
3084,
62,
22745,
1433,
2598,
62,
16,
33411,
3463,
834,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
781,
858,
20735,
357,
3020,
8,
329,
262,
3463,
357,
10025,
14,
76,
8,
718,
13,
15,
30,
54,
70,
46506,
781,
858,
62,
400,
624,
1108,
834,
3020,
62,
16034,
3084,
62,
22745,
1433,
2598,
62,
16,
33411,
3463,
834,
100... |
Name the least episode for november 29, 1985 | SELECT MIN("Ep.") FROM table_24031 WHERE "Original air date" = 'November 29, 1985' | [
5376,
262,
1551,
4471,
329,
645,
303,
1916,
2808,
11,
12863,
46506,
20625,
7203,
13807,
19570,
16034,
3084,
62,
1731,
43637,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
21159,
2808,
11,
12863,
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
] | [
5376,
262,
1551,
4471,
329,
645,
303,
1916,
2808,
11,
12863,
46506,
20625,
7203,
13807,
19570,
16034,
3084,
62,
1731,
43637,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
21159,
2808,
11,
12863,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.