instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|
Which time/retired had 75 laps and Pedro de la Rosa as a driver? | SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = "pedro de la rosa" | [
13828,
640,
14,
1186,
1202,
550,
5441,
24590,
290,
28855,
390,
8591,
27994,
355,
257,
4639,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
4521,
33411,
24590,
796,
5441,
5357,
4639,
796,
366,
9124,
305,
390,
8591,
686,
11400,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
14,
1186,
1202,
550,
5441,
24590,
290,
28855,
390,
8591,
27994,
355,
257,
4639,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
4521,
33411,
24590,
796,
5441,
5357,
4639,
796,
366,
9124,
305,
390,
8591,
686,
11400,
1
]
|
give me the number of patients whose admission location is clinic referral/premature and item id is 50863? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND lab.itemid = "50863" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
15760,
31413,
14,
31605,
1300,
290,
2378,
4686,
318,
2026,
4521,
18,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
5097,
1268,
2149,
4526,
24302,
35296,
14,
47,
40726,
40086,
1,
5357,
2248,
13,
9186,
312,
796,
366,
1120,
4521,
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,
1,
1,
1,
1,
1,
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,
502,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
15760,
31413,
14,
31605,
1300,
290,
2378,
4686,
318,
2026,
4521,
18,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
5097,
1268,
2149,
4526,
24302,
35296,
14,
47,
40726,
40086,
1,
5357,
2248,
13,
9186,
312,
796,
366,
1120,
4521,
18,
1
]
|
What country is Relax-Gam from? | SELECT "Country" FROM table_32236 WHERE "Team" = 'relax-gam' | [
2061,
1499,
318,
46883,
12,
34777,
422,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
37283,
2623,
33411,
366,
15592,
1,
796,
705,
2411,
897,
12,
28483,
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,
1499,
318,
46883,
12,
34777,
422,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
37283,
2623,
33411,
366,
15592,
1,
796,
705,
2411,
897,
12,
28483,
6
]
|
How many fatalities are there for the airline of spantax, with a registration of ec-arz? | SELECT AVG(fatalities) FROM table_name_67 WHERE airline = "spantax" AND registration = "ec-arz" | [
2437,
867,
30091,
389,
612,
329,
262,
18091,
286,
599,
415,
897,
11,
351,
257,
9352,
286,
9940,
12,
283,
89,
30,
46506,
35224,
7,
69,
10254,
871,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
18091,
796,
366,
2777,
415,
897,
1,
5357,
9352,
796,
366,
721,
12,
283,
89,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30091,
389,
612,
329,
262,
18091,
286,
599,
415,
897,
11,
351,
257,
9352,
286,
9940,
12,
283,
89,
30,
46506,
35224,
7,
69,
10254,
871,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
18091,
796,
366,
2777,
415,
897,
1,
5357,
9352,
796,
366,
721,
12,
283,
89,
1
]
|
What is every value for TDP if model is x53xx? | SELECT tdp FROM table_2467150_2 WHERE model__list_ = "X53xx" | [
2061,
318,
790,
1988,
329,
309,
6322,
611,
2746,
318,
2124,
4310,
5324,
30,
46506,
256,
26059,
16034,
3084,
62,
1731,
3134,
8628,
62,
17,
33411,
2746,
834,
4868,
62,
796,
366,
55,
4310,
5324,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1988,
329,
309,
6322,
611,
2746,
318,
2124,
4310,
5324,
30,
46506,
256,
26059,
16034,
3084,
62,
1731,
3134,
8628,
62,
17,
33411,
2746,
834,
4868,
62,
796,
366,
55,
4310,
5324,
1
]
|
Which advisors are advising more than 2 students? | SELECT advisor FROM student GROUP BY advisor HAVING COUNT(*) > 2 | [
13828,
32456,
389,
30341,
517,
621,
362,
2444,
30,
46506,
20685,
16034,
3710,
44441,
11050,
20685,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,
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
]
| [
13828,
32456,
389,
30341,
517,
621,
362,
2444,
30,
46506,
20685,
16034,
3710,
44441,
11050,
20685,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,
362
]
|
What Team has a Class of 350cc, with less than 13 points in 1959? | SELECT "Team" FROM table_40689 WHERE "Class" = '350cc' AND "Points" < '13' AND "Year" = '1959' | [
2061,
4816,
468,
257,
5016,
286,
13803,
535,
11,
351,
1342,
621,
1511,
2173,
287,
23859,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1821,
40523,
33411,
366,
9487,
1,
796,
705,
14877,
535,
6,
5357,
366,
40710,
1,
1279,
705,
1485,
6,
5357,
366,
17688,
1,
796,
705,
45403,
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
]
| [
2061,
4816,
468,
257,
5016,
286,
13803,
535,
11,
351,
1342,
621,
1511,
2173,
287,
23859,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1821,
40523,
33411,
366,
9487,
1,
796,
705,
14877,
535,
6,
5357,
366,
40710,
1,
1279,
705,
1485,
6,
5357,
366,
17688,
1,
796,
705,
45403,
6
]
|
What is the total number of electorates in 2009 with a constituency of 193? | SELECT COUNT("Number of electorates (2009)") FROM table_66372 WHERE "Constituency number" = '193' | [
2061,
318,
262,
2472,
1271,
286,
43191,
689,
287,
3717,
351,
257,
28280,
286,
29691,
30,
46506,
327,
28270,
7203,
15057,
286,
43191,
689,
357,
10531,
8,
4943,
16034,
3084,
62,
2791,
36720,
33411,
366,
34184,
34272,
1387,
1271,
1,
796,
705,
24943,
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,
318,
262,
2472,
1271,
286,
43191,
689,
287,
3717,
351,
257,
28280,
286,
29691,
30,
46506,
327,
28270,
7203,
15057,
286,
43191,
689,
357,
10531,
8,
4943,
16034,
3084,
62,
2791,
36720,
33411,
366,
34184,
34272,
1387,
1271,
1,
796,
705,
24943,
6
]
|
Which Bronze has a Total larger than 7 and a Silver of 3, and a Games of summer, and a Gold of 5? | SELECT "Bronze" FROM table_13889 WHERE "Total" > '7' AND "Silver" = '3' AND "Games" = 'summer' AND "Gold" = '5' | [
13828,
19461,
468,
257,
7472,
4025,
621,
767,
290,
257,
7698,
286,
513,
11,
290,
257,
5776,
286,
3931,
11,
290,
257,
3561,
286,
642,
30,
46506,
366,
18760,
2736,
1,
16034,
3084,
62,
1485,
39121,
33411,
366,
14957,
1,
1875,
705,
22,
6,
5357,
366,
26766,
1,
796,
705,
18,
6,
5357,
366,
24474,
1,
796,
705,
16345,
647,
6,
5357,
366,
13306,
1,
796,
705,
20,
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,
1,
1,
1,
1,
1
]
| [
13828,
19461,
468,
257,
7472,
4025,
621,
767,
290,
257,
7698,
286,
513,
11,
290,
257,
5776,
286,
3931,
11,
290,
257,
3561,
286,
642,
30,
46506,
366,
18760,
2736,
1,
16034,
3084,
62,
1485,
39121,
33411,
366,
14957,
1,
1875,
705,
22,
6,
5357,
366,
26766,
1,
796,
705,
18,
6,
5357,
366,
24474,
1,
796,
705,
16345,
647,
6,
5357,
366,
13306,
1,
796,
705,
20,
6
]
|
What is the Time/Retired for emerson fittipaldi? | SELECT time_retired FROM table_name_14 WHERE driver = "emerson fittipaldi" | [
2061,
318,
262,
3862,
14,
9781,
1202,
329,
795,
882,
43500,
541,
37566,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
1415,
33411,
4639,
796,
366,
368,
882,
43500,
541,
37566,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3862,
14,
9781,
1202,
329,
795,
882,
43500,
541,
37566,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
1415,
33411,
4639,
796,
366,
368,
882,
43500,
541,
37566,
1
]
|
what's the bubbles with attribute being onpopuphidden | SELECT bubbles FROM table_1507852_5 WHERE attribute = "onpopuphidden" | [
10919,
338,
262,
25037,
351,
11688,
852,
319,
12924,
25689,
4651,
46506,
25037,
16034,
3084,
62,
8628,
3695,
4309,
62,
20,
33411,
11688,
796,
366,
261,
12924,
25689,
4651,
1
]
| [
1,
1,
1,
1,
1,
1,
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,
25037,
351,
11688,
852,
319,
12924,
25689,
4651,
46506,
25037,
16034,
3084,
62,
8628,
3695,
4309,
62,
20,
33411,
11688,
796,
366,
261,
12924,
25689,
4651,
1
]
|
Find the famous titles of artists that do not have any volume. | SELECT Famous_Title FROM artist WHERE NOT Artist_ID IN (SELECT Artist_ID FROM volume) | [
16742,
262,
5863,
8714,
286,
7912,
326,
466,
407,
423,
597,
6115,
13,
46506,
43261,
62,
19160,
16034,
6802,
33411,
5626,
18902,
62,
2389,
3268,
357,
46506,
18902,
62,
2389,
16034,
6115,
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
]
| [
16742,
262,
5863,
8714,
286,
7912,
326,
466,
407,
423,
597,
6115,
13,
46506,
43261,
62,
19160,
16034,
6802,
33411,
5626,
18902,
62,
2389,
3268,
357,
46506,
18902,
62,
2389,
16034,
6115,
8
]
|
Which width had an entered service year of 2010? | SELECT width FROM table_name_3 WHERE entered_service = 2010 | [
13828,
9647,
550,
281,
5982,
2139,
614,
286,
3050,
30,
46506,
9647,
16034,
3084,
62,
3672,
62,
18,
33411,
5982,
62,
15271,
796,
3050
]
| [
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,
9647,
550,
281,
5982,
2139,
614,
286,
3050,
30,
46506,
9647,
16034,
3084,
62,
3672,
62,
18,
33411,
5982,
62,
15271,
796,
3050
]
|
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the amount of job_id over the job_id , and group by attribute job_id, and I want to sort y axis in ascending order. | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1577,
502,
262,
7208,
546,
262,
2033,
286,
1693,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
314,
765,
284,
3297,
331,
16488,
287,
41988,
1502,
13,
46506,
449,
9864,
62,
2389,
11,
327,
28270,
7,
41,
9864,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29,
366,
8423
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1577,
502,
262,
7208,
546,
262,
2033,
286,
1693,
62,
312,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
314,
765,
284,
3297,
331,
16488,
287,
41988,
1502,
13,
46506,
449,
9864,
62,
2389,
11,
327,
28270,
7,
41,
9864,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29,
366,
8423
]
|
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id. | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29,
366,
8423,
1,
6375,
5550,
30709,
10979,
62,
2389,
1279
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
3620,
6489,
21414,
6500,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29,
366,
8423,
1,
6375,
5550,
30709,
10979,
62,
2389,
1279
]
|
what is the number of patients on pb route of drug administration who are diagnosed with hypothyroidism nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Hypothyroidism NOS" AND prescriptions.route = "PB" | [
10919,
318,
262,
1271,
286,
3871,
319,
279,
65,
6339,
286,
2563,
3662,
508,
389,
14641,
351,
5328,
14863,
3882,
1042,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
49926,
14863,
3882,
1042,
399,
2640,
1,
5357,
34092,
13,
38629,
796,
366,
49079,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
10919,
318,
262,
1271,
286,
3871,
319,
279,
65,
6339,
286,
2563,
3662,
508,
389,
14641,
351,
5328,
14863,
3882,
1042,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
49926,
14863,
3882,
1042,
399,
2640,
1,
5357,
34092,
13,
38629,
796,
366,
49079,
1
]
|
in the ft pct .667 what is the number of gp-gs | SELECT COUNT("GP-GS") FROM table_26337 WHERE "FT Pct" = '.667' | [
259,
262,
10117,
279,
310,
764,
28933,
644,
318,
262,
1271,
286,
27809,
12,
14542,
46506,
327,
28270,
7203,
16960,
12,
14313,
4943,
16034,
3084,
62,
2075,
31496,
33411,
366,
9792,
350,
310,
1,
796,
45302,
28933,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
259,
262,
10117,
279,
310,
764,
28933,
644,
318,
262,
1271,
286,
27809,
12,
14542,
46506,
327,
28270,
7203,
16960,
12,
14313,
4943,
16034,
3084,
62,
2075,
31496,
33411,
366,
9792,
350,
310,
1,
796,
45302,
28933,
6
]
|
Return a bar chart about the distribution of ACC_Road and Team_ID , and group by attribute All_Home, and list in ascending by the Y-axis. | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY Team_ID | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
290,
1351,
287,
41988,
416,
262,
575,
12,
22704,
13,
46506,
15859,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
11,
15859,
62,
29197,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
290,
1351,
287,
41988,
416,
262,
575,
12,
22704,
13,
46506,
15859,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
11,
15859,
62,
29197,
38678,
11050,
4816,
62,
2389
]
|
Compare the distribution of the players' gender using a bar chart. | SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender | [
41488,
262,
6082,
286,
262,
1938,
6,
5279,
1262,
257,
2318,
8262,
13,
46506,
20247,
11,
327,
28270,
7,
41394,
8,
16034,
2137,
44441,
11050,
20247
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
41488,
262,
6082,
286,
262,
1938,
6,
5279,
1262,
257,
2318,
8262,
13,
46506,
20247,
11,
327,
28270,
7,
41394,
8,
16034,
2137,
44441,
11050,
20247
]
|
How many losses did the club with 47 points have ? | SELECT "Lost" FROM table_71636 WHERE "Points" = '47' | [
2437,
867,
9089,
750,
262,
3430,
351,
6298,
2173,
423,
5633,
46506,
366,
31042,
1,
16034,
3084,
62,
22,
1433,
2623,
33411,
366,
40710,
1,
796,
705,
2857,
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
]
| [
2437,
867,
9089,
750,
262,
3430,
351,
6298,
2173,
423,
5633,
46506,
366,
31042,
1,
16034,
3084,
62,
22,
1433,
2623,
33411,
366,
40710,
1,
796,
705,
2857,
6
]
|
If the director is Yannick Bisson, what was the Canadian amount of viewers? | SELECT COUNT("Canadian Viewers (millions)") FROM table_3359 WHERE "Directed by" = 'Yannick Bisson' | [
1532,
262,
3437,
318,
575,
1236,
624,
347,
30927,
11,
644,
373,
262,
5398,
2033,
286,
10209,
30,
46506,
327,
28270,
7203,
28203,
3582,
364,
357,
17805,
507,
8,
4943,
16034,
3084,
62,
2091,
3270,
33411,
366,
13470,
276,
416,
1,
796,
705,
56,
1236,
624,
347,
30927,
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
]
| [
1532,
262,
3437,
318,
575,
1236,
624,
347,
30927,
11,
644,
373,
262,
5398,
2033,
286,
10209,
30,
46506,
327,
28270,
7203,
28203,
3582,
364,
357,
17805,
507,
8,
4943,
16034,
3084,
62,
2091,
3270,
33411,
366,
13470,
276,
416,
1,
796,
705,
56,
1236,
624,
347,
30927,
6
]
|
What Chassis has g Tyres before 1987? | SELECT chassis FROM table_name_26 WHERE tyres = "g" AND year < 1987 | [
2061,
609,
20297,
468,
308,
7039,
411,
878,
12923,
30,
46506,
24587,
16034,
3084,
62,
3672,
62,
2075,
33411,
40498,
796,
366,
70,
1,
5357,
614,
1279,
12923
]
| [
1,
1,
1,
1,
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,
609,
20297,
468,
308,
7039,
411,
878,
12923,
30,
46506,
24587,
16034,
3084,
62,
3672,
62,
2075,
33411,
40498,
796,
366,
70,
1,
5357,
614,
1279,
12923
]
|
How many people are under 40 for each gender Plot them as bar chart, and display Y in desc order. | SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender ORDER BY COUNT(*) DESC | [
2437,
867,
661,
389,
739,
2319,
329,
1123,
5279,
28114,
606,
355,
2318,
8262,
11,
290,
3359,
575,
287,
1715,
1502,
13,
46506,
5279,
11,
327,
28270,
7,
28104,
16034,
7755,
33411,
2479,
1279,
2319,
44441,
11050,
5279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
2437,
867,
661,
389,
739,
2319,
329,
1123,
5279,
28114,
606,
355,
2318,
8262,
11,
290,
3359,
575,
287,
1715,
1502,
13,
46506,
5279,
11,
327,
28270,
7,
28104,
16034,
7755,
33411,
2479,
1279,
2319,
44441,
11050,
5279,
38678,
11050,
327,
28270,
7,
28104,
22196,
34
]
|
Who Eliminated Kane? | SELECT "Eliminated by" FROM table_35004 WHERE "Wrestler" = 'kane' | [
8241,
27405,
3898,
20055,
30,
46506,
366,
36,
2475,
3898,
416,
1,
16034,
3084,
62,
2327,
22914,
33411,
366,
54,
2118,
1754,
1,
796,
705,
74,
1531,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
8241,
27405,
3898,
20055,
30,
46506,
366,
36,
2475,
3898,
416,
1,
16034,
3084,
62,
2327,
22914,
33411,
366,
54,
2118,
1754,
1,
796,
705,
74,
1531,
6
]
|
How many students taking a course who received an A or C? Group by students' first name with a pie chart. | SELECT STU_FNAME, COUNT(STU_FNAME) FROM STUDENT AS T1 JOIN ENROLL AS T2 ON T1.STU_NUM = T2.STU_NUM WHERE T2.ENROLL_GRADE = 'C' OR T2.ENROLL_GRADE = 'A' GROUP BY STU_FNAME | [
2437,
867,
2444,
2263,
257,
1781,
508,
2722,
281,
317,
393,
327,
30,
4912,
416,
2444,
6,
717,
1438,
351,
257,
2508,
8262,
13,
46506,
3563,
52,
62,
37,
20608,
11,
327,
28270,
7,
2257,
52,
62,
37,
20608,
8,
16034,
49348,
3525,
7054,
309,
16,
32357,
1268,
12964,
13252,
3069,
7054,
309,
17,
6177,
309,
16,
13,
2257,
52,
62,
41359,
796,
309,
17,
13,
2257,
52,
62,
41359,
33411,
309,
17,
13,
1677,
13252,
3069,
62,
10761,
19266,
796,
705,
34,
6,
6375,
309,
17,
13,
1677,
13252,
3069,
62,
10761,
19266,
796,
705,
32,
6,
44441,
11050
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2444,
2263,
257,
1781,
508,
2722,
281,
317,
393,
327,
30,
4912,
416,
2444,
6,
717,
1438,
351,
257,
2508,
8262,
13,
46506,
3563,
52,
62,
37,
20608,
11,
327,
28270,
7,
2257,
52,
62,
37,
20608,
8,
16034,
49348,
3525,
7054,
309,
16,
32357,
1268,
12964,
13252,
3069,
7054,
309,
17,
6177,
309,
16,
13,
2257,
52,
62,
41359,
796,
309,
17,
13,
2257,
52,
62,
41359,
33411,
309,
17,
13,
1677,
13252,
3069,
62,
10761,
19266,
796,
705,
34,
6,
6375,
309,
17,
13,
1677,
13252,
3069,
62,
10761,
19266,
796,
705,
32,
6,
44441,
11050
]
|
What period(s) featured a left inside linebacker? | SELECT period FROM table_28606933_7 WHERE position = "Left inside linebacker" | [
2061,
2278,
7,
82,
8,
8096,
257,
1364,
2641,
18961,
30,
46506,
2278,
16034,
3084,
62,
2078,
1899,
3388,
2091,
62,
22,
33411,
2292,
796,
366,
18819,
2641,
18961,
1
]
| [
1,
1,
1,
1,
1,
1,
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,
2278,
7,
82,
8,
8096,
257,
1364,
2641,
18961,
30,
46506,
2278,
16034,
3084,
62,
2078,
1899,
3388,
2091,
62,
22,
33411,
2292,
796,
366,
18819,
2641,
18961,
1
]
|
How many wins happened when there were fewer than 2 draws? | SELECT SUM("Wins") FROM table_8680 WHERE "Draws" < '2' | [
2437,
867,
7864,
3022,
618,
612,
547,
7380,
621,
362,
14293,
30,
46506,
35683,
7203,
54,
1040,
4943,
16034,
3084,
62,
4521,
1795,
33411,
366,
25302,
82,
1,
1279,
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
]
| [
2437,
867,
7864,
3022,
618,
612,
547,
7380,
621,
362,
14293,
30,
46506,
35683,
7203,
54,
1040,
4943,
16034,
3084,
62,
4521,
1795,
33411,
366,
25302,
82,
1,
1279,
705,
17,
6
]
|
the school with the most students ? | SELECT "institution" FROM table_204_842 ORDER BY "enrollment" DESC LIMIT 1 | [
1169,
1524,
351,
262,
749,
2444,
5633,
46506,
366,
8625,
2738,
1,
16034,
3084,
62,
18638,
62,
23,
3682,
38678,
11050,
366,
268,
48108,
1,
22196,
34,
27564,
2043,
352
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
1169,
1524,
351,
262,
749,
2444,
5633,
46506,
366,
8625,
2738,
1,
16034,
3084,
62,
18638,
62,
23,
3682,
38678,
11050,
366,
268,
48108,
1,
22196,
34,
27564,
2043,
352
]
|
What is the smallest total number of medals for rank 11 and more than 0 silver medals? | SELECT MIN("Total") FROM table_42386 WHERE "Rank" = '11' AND "Silver" > '0' | [
2061,
318,
262,
18197,
2472,
1271,
286,
28057,
329,
4279,
1367,
290,
517,
621,
657,
8465,
28057,
30,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
43356,
4521,
33411,
366,
27520,
1,
796,
705,
1157,
6,
5357,
366,
26766,
1,
1875,
705,
15,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
2061,
318,
262,
18197,
2472,
1271,
286,
28057,
329,
4279,
1367,
290,
517,
621,
657,
8465,
28057,
30,
46506,
20625,
7203,
14957,
4943,
16034,
3084,
62,
43356,
4521,
33411,
366,
27520,
1,
796,
705,
1157,
6,
5357,
366,
26766,
1,
1875,
705,
15,
6
]
|
Provide the number of patients that survived with a drug named hydrocortisone cream 0.5%. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "0" AND prescriptions.drug = "Hydrocortisone Cream 0.5%" | [
15946,
485,
262,
1271,
286,
3871,
326,
11803,
351,
257,
2563,
3706,
7409,
12204,
419,
271,
505,
8566,
657,
13,
20,
7225,
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,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
1,
5357,
34092,
13,
30349,
796,
366,
40436,
12204,
419,
271,
505,
19979,
657,
13,
20,
39658
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
15946,
485,
262,
1271,
286,
3871,
326,
11803,
351,
257,
2563,
3706,
7409,
12204,
419,
271,
505,
8566,
657,
13,
20,
7225,
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,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
1,
5357,
34092,
13,
30349,
796,
366,
40436,
12204,
419,
271,
505,
19979,
657,
13,
20,
39658
]
|
Show all the ranks and the number of male and female faculty for each rank in a bar chart, rank by the Y in ascending. | SELECT Rank, COUNT(*) FROM Faculty GROUP BY Sex, Rank ORDER BY COUNT(*) | [
15307,
477,
262,
9803,
290,
262,
1271,
286,
4257,
290,
4048,
12829,
329,
1123,
4279,
287,
257,
2318,
8262,
11,
4279,
416,
262,
575,
287,
41988,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
35262,
44441,
11050,
14419,
11,
10916,
38678,
11050,
327,
28270,
7,
28104
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
15307,
477,
262,
9803,
290,
262,
1271,
286,
4257,
290,
4048,
12829,
329,
1123,
4279,
287,
257,
2318,
8262,
11,
4279,
416,
262,
575,
287,
41988,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
35262,
44441,
11050,
14419,
11,
10916,
38678,
11050,
327,
28270,
7,
28104
]
|
uncontrolled hypertension ( i.e., systolic blood pressure > 160 mm hg, or a diastolic blood pressure > 95 mmhg based on an average of 3 readings sitting ) | SELECT * FROM table_dev_51 WHERE hypertension = 1 OR systolic_blood_pressure_sbp > 160 OR diastolic_blood_pressure_dbp > 95 | [
403,
14401,
37454,
357,
1312,
13,
68,
1539,
827,
301,
4160,
2910,
3833,
1875,
13454,
8085,
289,
70,
11,
393,
257,
2566,
459,
4160,
2910,
3833,
1875,
6957,
8085,
71,
70,
1912,
319,
281,
2811,
286,
513,
24654,
5586,
1267,
46506,
1635,
16034,
3084,
62,
7959,
62,
4349,
33411,
37454,
796,
352,
6375,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
1875,
13454,
6375,
2566,
459,
4160,
62,
18041,
62,
36151,
62,
9945,
79,
1875,
6957
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
403,
14401,
37454,
357,
1312,
13,
68,
1539,
827,
301,
4160,
2910,
3833,
1875,
13454,
8085,
289,
70,
11,
393,
257,
2566,
459,
4160,
2910,
3833,
1875,
6957,
8085,
71,
70,
1912,
319,
281,
2811,
286,
513,
24654,
5586,
1267,
46506,
1635,
16034,
3084,
62,
7959,
62,
4349,
33411,
37454,
796,
352,
6375,
827,
301,
4160,
62,
18041,
62,
36151,
62,
36299,
79,
1875,
13454,
6375,
2566,
459,
4160,
62,
18041,
62,
36151,
62,
9945,
79,
1875,
6957
]
|
Name the 20 questions when centerfold model is cherie witter | SELECT 20 AS _questions FROM table_1566848_6 WHERE centerfold_model = "Cherie Witter" | [
5376,
262,
1160,
2683,
618,
3641,
11379,
2746,
318,
21382,
494,
266,
1967,
46506,
1160,
7054,
4808,
6138,
507,
16034,
3084,
62,
1314,
35809,
2780,
62,
21,
33411,
3641,
11379,
62,
19849,
796,
366,
34,
372,
494,
370,
1967,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
2683,
618,
3641,
11379,
2746,
318,
21382,
494,
266,
1967,
46506,
1160,
7054,
4808,
6138,
507,
16034,
3084,
62,
1314,
35809,
2780,
62,
21,
33411,
3641,
11379,
62,
19849,
796,
366,
34,
372,
494,
370,
1967,
1
]
|
Name the total number of list votes for 20.95% | SELECT COUNT("List Votes") FROM table_19594 WHERE "List Pct" = '20.95%' | [
5376,
262,
2472,
1271,
286,
1351,
5690,
329,
1160,
13,
3865,
4,
46506,
327,
28270,
7203,
8053,
39584,
4943,
16034,
3084,
62,
45403,
19,
33411,
366,
8053,
350,
310,
1,
796,
705,
1238,
13,
3865,
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
]
| [
5376,
262,
2472,
1271,
286,
1351,
5690,
329,
1160,
13,
3865,
4,
46506,
327,
28270,
7203,
8053,
39584,
4943,
16034,
3084,
62,
45403,
19,
33411,
366,
8053,
350,
310,
1,
796,
705,
1238,
13,
3865,
4,
6
]
|
What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)? | SELECT "Score" FROM table_57893 WHERE "Visitor" = 'bucks' AND "Leading scorer" = 'maurice williams (25)' | [
2061,
318,
262,
15178,
351,
257,
6911,
2072,
286,
24780,
11,
290,
257,
43225,
30664,
351,
285,
2899,
501,
481,
1789,
82,
357,
1495,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
3553,
49682,
33411,
366,
15854,
2072,
1,
796,
705,
18999,
6,
5357,
366,
20451,
278,
30664,
1,
796,
705,
2611,
333,
501,
481,
1789,
82,
357,
1495,
33047
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
351,
257,
6911,
2072,
286,
24780,
11,
290,
257,
43225,
30664,
351,
285,
2899,
501,
481,
1789,
82,
357,
1495,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
3553,
49682,
33411,
366,
15854,
2072,
1,
796,
705,
18999,
6,
5357,
366,
20451,
278,
30664,
1,
796,
705,
2611,
333,
501,
481,
1789,
82,
357,
1495,
33047
]
|
What is the name of the player that was Pick 15? | SELECT "Player" FROM table_34786 WHERE "Pick #" = '15' | [
2061,
318,
262,
1438,
286,
262,
2137,
326,
373,
12346,
1315,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2682,
46302,
33411,
366,
31686,
1303,
1,
796,
705,
1314,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
2061,
318,
262,
1438,
286,
262,
2137,
326,
373,
12346,
1315,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2682,
46302,
33411,
366,
31686,
1303,
1,
796,
705,
1314,
6
]
|
What is the candidate for south carolina 3? | SELECT "Candidates" FROM table_18610 WHERE "District" = 'South Carolina 3' | [
2061,
318,
262,
4540,
329,
5366,
1097,
47196,
513,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
25096,
940,
33411,
366,
44857,
1,
796,
705,
14942,
5913,
513,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
2061,
318,
262,
4540,
329,
5366,
1097,
47196,
513,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
25096,
940,
33411,
366,
44857,
1,
796,
705,
14942,
5913,
513,
6
]
|
What is the name of this constellation with an area of 245.375 sq. deg.? | SELECT constellation FROM table_177766_1 WHERE area__sqdeg_ = "245.375" | [
2061,
318,
262,
1438,
286,
428,
38712,
351,
281,
1989,
286,
29637,
13,
22318,
19862,
13,
3396,
40791,
46506,
38712,
16034,
3084,
62,
1558,
3324,
2791,
62,
16,
33411,
1989,
834,
31166,
13500,
62,
796,
366,
22995,
13,
22318,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
428,
38712,
351,
281,
1989,
286,
29637,
13,
22318,
19862,
13,
3396,
40791,
46506,
38712,
16034,
3084,
62,
1558,
3324,
2791,
62,
16,
33411,
1989,
834,
31166,
13500,
62,
796,
366,
22995,
13,
22318,
1
]
|
Who did they play on August 26? | SELECT opponent FROM table_name_44 WHERE date = "august 26" | [
8241,
750,
484,
711,
319,
2932,
2608,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2598,
33411,
3128,
796,
366,
7493,
436,
2608,
1
]
| [
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,
750,
484,
711,
319,
2932,
2608,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2598,
33411,
3128,
796,
366,
7493,
436,
2608,
1
]
|
estimated glomerular filtration rate ( egfr ) > 30 ml / min | SELECT * FROM table_train_235 WHERE estimated_glomerular_filtration_rate_egfr > 30 | [
395,
15655,
1278,
12057,
934,
1226,
83,
1358,
2494,
357,
29206,
8310,
1267,
1875,
1542,
25962,
1220,
949,
46506,
1635,
16034,
3084,
62,
27432,
62,
22370,
33411,
6108,
62,
37757,
934,
62,
69,
36055,
62,
4873,
62,
1533,
8310,
1875,
1542
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
395,
15655,
1278,
12057,
934,
1226,
83,
1358,
2494,
357,
29206,
8310,
1267,
1875,
1542,
25962,
1220,
949,
46506,
1635,
16034,
3084,
62,
27432,
62,
22370,
33411,
6108,
62,
37757,
934,
62,
69,
36055,
62,
4873,
62,
1533,
8310,
1875,
1542
]
|
what is drug code and drug dose of drug name ferrous sulfate? | SELECT prescriptions.formulary_drug_cd, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Ferrous Sulfate" | [
10919,
318,
2563,
2438,
290,
2563,
10742,
286,
2563,
1438,
11354,
7596,
22443,
378,
30,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
11,
34092,
13,
30349,
62,
34436,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
43362,
7596,
311,
4754,
378,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
2438,
290,
2563,
10742,
286,
2563,
1438,
11354,
7596,
22443,
378,
30,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
11,
34092,
13,
30349,
62,
34436,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
43362,
7596,
311,
4754,
378,
1
]
|
Which Player has a To par of e, and a Country of united states? | SELECT player FROM table_name_68 WHERE to_par = "e" AND country = "united states" | [
13828,
7853,
468,
257,
1675,
1582,
286,
304,
11,
290,
257,
12946,
286,
16503,
2585,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3104,
33411,
284,
62,
1845,
796,
366,
68,
1,
5357,
1499,
796,
366,
41187,
2585,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
468,
257,
1675,
1582,
286,
304,
11,
290,
257,
12946,
286,
16503,
2585,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3104,
33411,
284,
62,
1845,
796,
366,
68,
1,
5357,
1499,
796,
366,
41187,
2585,
1
]
|
What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue? | SELECT "Date" FROM table_75847 WHERE "Competition" = '2006 fifa world cup qualification' AND "Venue" = 'alamodome, san antonio, united states' | [
2061,
3128,
468,
4793,
5515,
64,
995,
6508,
28587,
355,
262,
5449,
11,
290,
435,
321,
375,
462,
11,
5336,
281,
1122,
952,
11,
16503,
1829,
355,
262,
14359,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38569,
2857,
33411,
366,
7293,
15620,
1,
796,
705,
13330,
5515,
64,
995,
6508,
28587,
6,
5357,
366,
37522,
518,
1,
796,
705,
44949,
375,
462,
11,
5336,
281,
1122,
952,
11,
16503,
2585,
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,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
2061,
3128,
468,
4793,
5515,
64,
995,
6508,
28587,
355,
262,
5449,
11,
290,
435,
321,
375,
462,
11,
5336,
281,
1122,
952,
11,
16503,
1829,
355,
262,
14359,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38569,
2857,
33411,
366,
7293,
15620,
1,
796,
705,
13330,
5515,
64,
995,
6508,
28587,
6,
5357,
366,
37522,
518,
1,
796,
705,
44949,
375,
462,
11,
5336,
281,
1122,
952,
11,
16503,
2585,
6
]
|
Show me minimal weight by sex in a histogram, and display in ascending by the y-axis. | SELECT Sex, MIN(Weight) FROM people GROUP BY Sex ORDER BY MIN(Weight) | [
15307,
502,
10926,
3463,
416,
1714,
287,
257,
1554,
21857,
11,
290,
3359,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
14419,
11,
20625,
7,
25844,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
20625,
7,
25844,
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
]
| [
15307,
502,
10926,
3463,
416,
1714,
287,
257,
1554,
21857,
11,
290,
3359,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
14419,
11,
20625,
7,
25844,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
20625,
7,
25844,
8
]
|
How many writers had an US air date of september 25, 1993? | SELECT COUNT("Writer") FROM table_16116 WHERE "US air date" = 'September 25, 1993' | [
2437,
867,
8786,
550,
281,
1294,
1633,
3128,
286,
384,
457,
1491,
1679,
11,
9656,
30,
46506,
327,
28270,
7203,
34379,
4943,
16034,
3084,
62,
1433,
18298,
33411,
366,
2937,
1633,
3128,
1,
796,
705,
17543,
1679,
11,
9656,
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
]
| [
2437,
867,
8786,
550,
281,
1294,
1633,
3128,
286,
384,
457,
1491,
1679,
11,
9656,
30,
46506,
327,
28270,
7203,
34379,
4943,
16034,
3084,
62,
1433,
18298,
33411,
366,
2937,
1633,
3128,
1,
796,
705,
17543,
1679,
11,
9656,
6
]
|
What episode had sumo ball for event 3 and the wall for event 4? | SELECT AVG("Episode Number") FROM table_8559 WHERE "Event 4" = 'the wall' AND "Event 3" = 'sumo ball' | [
2061,
4471,
550,
2160,
78,
2613,
329,
1785,
513,
290,
262,
3355,
329,
1785,
604,
30,
46506,
35224,
7203,
23758,
7913,
4943,
16034,
3084,
62,
23,
38605,
33411,
366,
9237,
604,
1,
796,
705,
1169,
3355,
6,
5357,
366,
9237,
513,
1,
796,
705,
16345,
78,
2613,
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
]
| [
2061,
4471,
550,
2160,
78,
2613,
329,
1785,
513,
290,
262,
3355,
329,
1785,
604,
30,
46506,
35224,
7203,
23758,
7913,
4943,
16034,
3084,
62,
23,
38605,
33411,
366,
9237,
604,
1,
796,
705,
1169,
3355,
6,
5357,
366,
9237,
513,
1,
796,
705,
16345,
78,
2613,
6
]
|
In what rounds was the featured team of Avanzza Rosso? | SELECT "Rounds" FROM table_50579 WHERE "Team" = 'avanzza rosso' | [
818,
644,
9196,
373,
262,
8096,
1074,
286,
5184,
272,
34443,
10018,
568,
30,
46506,
366,
49,
3733,
1,
16034,
3084,
62,
1120,
41734,
33411,
366,
15592,
1,
796,
705,
12421,
34443,
686,
82,
568,
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
]
| [
818,
644,
9196,
373,
262,
8096,
1074,
286,
5184,
272,
34443,
10018,
568,
30,
46506,
366,
49,
3733,
1,
16034,
3084,
62,
1120,
41734,
33411,
366,
15592,
1,
796,
705,
12421,
34443,
686,
82,
568,
6
]
|
on this hospital visit how many hours have passed since patient 006-76924's first diagnosis of atrial fibrillation - with rapid ventricular response? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-76924' AND patient.hospitaldischargetime IS NULL)) AND diagnosis.diagnosisname = 'atrial fibrillation - with rapid ventricular response' ORDER BY diagnosis.diagnosistime LIMIT 1 | [
261,
428,
4436,
3187,
703,
867,
2250,
423,
3804,
1201,
5827,
3571,
21,
12,
22,
3388,
1731,
338,
717,
13669,
286,
379,
4454,
277,
2889,
40903,
532,
351,
5801,
7435,
41001,
2882,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
13669,
13,
47356,
418,
396,
524,
4008,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
261,
428,
4436,
3187,
703,
867,
2250,
423,
3804,
1201,
5827,
3571,
21,
12,
22,
3388,
1731,
338,
717,
13669,
286,
379,
4454,
277,
2889,
40903,
532,
351,
5801,
7435,
41001,
2882,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
13669,
13,
47356,
418,
396,
524,
4008,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057
]
|
Name the number of last appearance where team is san francisco 49ers | SELECT COUNT("Last appearance") FROM table_1347 WHERE "Team" = 'San Francisco 49ers' | [
5376,
262,
1271,
286,
938,
5585,
810,
1074,
318,
5336,
46754,
4861,
5125,
364,
46506,
327,
28270,
7203,
5956,
5585,
4943,
16034,
3084,
62,
1485,
2857,
33411,
366,
15592,
1,
796,
705,
15017,
6033,
5125,
364,
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
]
| [
5376,
262,
1271,
286,
938,
5585,
810,
1074,
318,
5336,
46754,
4861,
5125,
364,
46506,
327,
28270,
7203,
5956,
5585,
4943,
16034,
3084,
62,
1485,
2857,
33411,
366,
15592,
1,
796,
705,
15017,
6033,
5125,
364,
6
]
|
What are the details for all projects that did not hire any staff in a research role? | SELECT project_details FROM projects WHERE NOT project_id IN (SELECT project_id FROM project_staff WHERE role_code = 'researcher') | [
2061,
389,
262,
3307,
329,
477,
4493,
326,
750,
407,
11078,
597,
3085,
287,
257,
2267,
2597,
30,
46506,
1628,
62,
36604,
16034,
4493,
33411,
5626,
1628,
62,
312,
3268,
357,
46506,
1628,
62,
312,
16034,
1628,
62,
28120,
33411,
2597,
62,
8189,
796,
705,
260,
325,
283,
2044,
11537
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3307,
329,
477,
4493,
326,
750,
407,
11078,
597,
3085,
287,
257,
2267,
2597,
30,
46506,
1628,
62,
36604,
16034,
4493,
33411,
5626,
1628,
62,
312,
3268,
357,
46506,
1628,
62,
312,
16034,
1628,
62,
28120,
33411,
2597,
62,
8189,
796,
705,
260,
325,
283,
2044,
11537
]
|
What is the location of the team nicknamed Broncos, which was founded after 1889? | SELECT "Location" FROM table_75731 WHERE "Founded" > '1889' AND "Team Nickname" = 'broncos' | [
2061,
318,
262,
4067,
286,
262,
1074,
35786,
16582,
11,
543,
373,
9393,
706,
49545,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
39251,
3132,
33411,
366,
37,
6302,
1,
1875,
705,
1507,
4531,
6,
5357,
366,
15592,
8047,
3672,
1,
796,
705,
65,
1313,
6966,
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
]
| [
2061,
318,
262,
4067,
286,
262,
1074,
35786,
16582,
11,
543,
373,
9393,
706,
49545,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
39251,
3132,
33411,
366,
37,
6302,
1,
1875,
705,
1507,
4531,
6,
5357,
366,
15592,
8047,
3672,
1,
796,
705,
65,
1313,
6966,
6
]
|
When spanish challenge is the team name what are the rr1 points? | SELECT "RR1 Pts." FROM table_24405 WHERE "Team name" = 'Spanish Challenge' | [
2215,
599,
7115,
4427,
318,
262,
1074,
1438,
644,
389,
262,
374,
81,
16,
2173,
30,
46506,
366,
21095,
16,
350,
912,
526,
16034,
3084,
62,
1731,
26598,
33411,
366,
15592,
1438,
1,
796,
705,
43584,
13879,
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
]
| [
2215,
599,
7115,
4427,
318,
262,
1074,
1438,
644,
389,
262,
374,
81,
16,
2173,
30,
46506,
366,
21095,
16,
350,
912,
526,
16034,
3084,
62,
1731,
26598,
33411,
366,
15592,
1438,
1,
796,
705,
43584,
13879,
6
]
|
For what week was the attendance 40,429? | SELECT SUM(week) FROM table_name_2 WHERE attendance = 40 OFFSET 429 | [
1890,
644,
1285,
373,
262,
14858,
2319,
11,
11785,
30,
46506,
35683,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
14858,
796,
2319,
3963,
10652,
2767,
42313
]
| [
1,
1,
1,
1,
1,
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,
644,
1285,
373,
262,
14858,
2319,
11,
11785,
30,
46506,
35683,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
14858,
796,
2319,
3963,
10652,
2767,
42313
]
|
What is the total number of birth/2012 for January December 2012 in Kurgan Oblast? | SELECT COUNT(birth_2012) FROM table_25703_2 WHERE january_december_2012 = "Kurgan Oblast" | [
2061,
318,
262,
2472,
1271,
286,
4082,
14,
6999,
329,
3269,
3426,
2321,
287,
18132,
1030,
1835,
12957,
30,
46506,
327,
28270,
7,
24280,
62,
6999,
8,
16034,
3084,
62,
1495,
36809,
62,
17,
33411,
42897,
2838,
62,
2934,
3273,
62,
6999,
796,
366,
42,
333,
1030,
1835,
12957,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4082,
14,
6999,
329,
3269,
3426,
2321,
287,
18132,
1030,
1835,
12957,
30,
46506,
327,
28270,
7,
24280,
62,
6999,
8,
16034,
3084,
62,
1495,
36809,
62,
17,
33411,
42897,
2838,
62,
2934,
3273,
62,
6999,
796,
366,
42,
333,
1030,
1835,
12957,
1
]
|
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of job_id and salary , order y-axis from high to low order. | SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
9588,
837,
1502,
331,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
449,
9864,
62,
2389,
11,
42475,
13153,
16034,
4409,
33411,
5626,
5550,
30709,
10979,
62,
2389,
3268,
357,
46506,
5550,
30709,
10979,
62,
2389,
16034,
13346,
33411,
17254,
4760,
1137,
62,
2389,
38651,
8845,
1677,
1802,
5357,
939,
8,
38678,
11050,
42475,
13153,
22196,
34
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
9588,
837,
1502,
331,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
449,
9864,
62,
2389,
11,
42475,
13153,
16034,
4409,
33411,
5626,
5550,
30709,
10979,
62,
2389,
3268,
357,
46506,
5550,
30709,
10979,
62,
2389,
16034,
13346,
33411,
17254,
4760,
1137,
62,
2389,
38651,
8845,
1677,
1802,
5357,
939,
8,
38678,
11050,
42475,
13153,
22196,
34
]
|
Who on my site can 1-click close/reopen duplicate posts using a gold badge tag privilege?. If the UpVotes column is greater than 1000, that person identified by DisplayName has earned the gold badge for that TagName, and subsequently, this person has also earned the privilege of one-click closing and reopening of duplicate posts. | SELECT Users.DisplayName, TagName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId AND Posts.PostTypeId = 2 AND CommunityOwnedDate IS NULL INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 AND Posts.PostTypeId = 2 INNER JOIN Users ON Users.Id = Posts.OwnerUserId WHERE Users.Reputation > 9900 AND Posts.CommunityOwnedDate IS NULL AND Posts.PostTypeId = 2 GROUP BY TagName, OwnerUserId, DisplayName ORDER BY UpVotes DESC | [
8241,
319,
616,
2524,
460,
352,
12,
12976,
1969,
14,
260,
9654,
23418,
6851,
1262,
257,
3869,
23009,
7621,
11941,
30,
13,
1002,
262,
3205,
53,
6421,
5721,
318,
3744,
621,
8576,
11,
326,
1048,
5174,
416,
16531,
5376,
468,
7366,
262,
3869,
23009,
329,
326,
17467,
5376,
11,
290,
12412,
11,
428,
1048,
468,
635,
7366,
262,
11941,
286,
530,
12,
12976,
9605,
290,
302,
29443,
286,
23418,
6851,
13,
46506,
18987,
13,
23114,
5376,
11,
17467,
5376,
11,
327,
28270,
7,
28104,
7054,
3205,
53,
6421,
16034,
44789,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
319,
616,
2524,
460,
352,
12,
12976,
1969,
14,
260,
9654,
23418,
6851,
1262,
257,
3869,
23009,
7621,
11941,
30,
13,
1002,
262,
3205,
53,
6421,
5721,
318,
3744,
621,
8576,
11,
326,
1048,
5174,
416,
16531,
5376,
468,
7366,
262,
3869,
23009,
329,
326,
17467,
5376,
11,
290,
12412,
11,
428,
1048,
468,
635,
7366,
262,
11941,
286,
530,
12,
12976,
9605,
290,
302,
29443,
286,
23418,
6851,
13,
46506,
18987,
13,
23114,
5376,
11,
17467,
5376,
11,
327,
28270,
7,
28104,
7054,
3205,
53,
6421,
16034,
44789,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
13
]
|
What is the score for 04 september 2006? | SELECT "Score" FROM table_68554 WHERE "Date" = '04 september 2006' | [
2061,
318,
262,
4776,
329,
8702,
384,
457,
1491,
4793,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3104,
44218,
33411,
366,
10430,
1,
796,
705,
3023,
384,
457,
1491,
4793,
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,
4776,
329,
8702,
384,
457,
1491,
4793,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3104,
44218,
33411,
366,
10430,
1,
796,
705,
3023,
384,
457,
1491,
4793,
6
]
|
give me the flights from NEW YORK to LAS VEGAS on sunday and the flights from MEMPHIS to LAS VEGAS on sunday | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, date_day, days, flight WHERE (CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'LAS VEGAS' AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_2.airport_code) AND ((flight.from_airport = AIRPORT_SERVICE_0.airport_code AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK') OR (flight.from_airport = AIRPORT_SERVICE_1.airport_code AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MEMPHIS')) | [
26535,
502,
262,
13956,
422,
12682,
28154,
284,
406,
1921,
569,
7156,
1921,
319,
37437,
323,
290,
262,
13956,
422,
35153,
11909,
1797,
284,
406,
1921,
569,
7156,
1921,
319,
37437,
323,
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,
15490,
62,
35009,
27389,
62,
16,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
17,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
1748,
7054,
27993,
62,
17,
11,
3128,
62,
820
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
502,
262,
13956,
422,
12682,
28154,
284,
406,
1921,
569,
7156,
1921,
319,
37437,
323,
290,
262,
13956,
422,
35153,
11909,
1797,
284,
406,
1921,
569,
7156,
1921,
319,
37437,
323,
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,
15490,
62,
35009,
27389,
62,
16,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
17,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
1748,
7054,
27993,
62,
17,
11,
3128,
62,
820
]
|
Name the total episode for runtime of 24:11 | SELECT COUNT("Episode") FROM table_24094 WHERE "Run time" = '24:11' | [
5376,
262,
2472,
4471,
329,
19124,
286,
1987,
25,
1157,
46506,
327,
28270,
7203,
23758,
4943,
16034,
3084,
62,
1731,
2931,
19,
33411,
366,
10987,
640,
1,
796,
705,
1731,
25,
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
]
| [
5376,
262,
2472,
4471,
329,
19124,
286,
1987,
25,
1157,
46506,
327,
28270,
7203,
23758,
4943,
16034,
3084,
62,
1731,
2931,
19,
33411,
366,
10987,
640,
1,
796,
705,
1731,
25,
1157,
6
]
|
calculate the number of patients with emergency hospital admission categorized under blood gas lab test. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab."CATEGORY" = "Blood Gas" | [
9948,
3129,
378,
262,
1271,
286,
3871,
351,
6334,
4436,
13938,
37661,
739,
2910,
3623,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1,
796,
366,
21659,
14345,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
9948,
3129,
378,
262,
1271,
286,
3871,
351,
6334,
4436,
13938,
37661,
739,
2910,
3623,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1,
796,
366,
21659,
14345,
1
]
|
Who is the president from the Union for a Popular Movement party that represents the Hautes-Alpes department? | SELECT président FROM table_name_36 WHERE party = "union for a popular movement" AND départment__or_collectivity_ = "hautes-alpes" | [
8241,
318,
262,
1893,
422,
262,
4479,
329,
257,
22623,
15477,
2151,
326,
6870,
262,
9398,
1769,
12,
2348,
12272,
5011,
30,
46506,
778,
20954,
738,
16034,
3084,
62,
3672,
62,
2623,
33411,
2151,
796,
366,
24592,
329,
257,
2968,
3356,
1,
5357,
39073,
79,
1823,
834,
273,
62,
33327,
3458,
62,
796,
366,
3099,
1769,
12,
282,
12272,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
422,
262,
4479,
329,
257,
22623,
15477,
2151,
326,
6870,
262,
9398,
1769,
12,
2348,
12272,
5011,
30,
46506,
778,
20954,
738,
16034,
3084,
62,
3672,
62,
2623,
33411,
2151,
796,
366,
24592,
329,
257,
2968,
3356,
1,
5357,
39073,
79,
1823,
834,
273,
62,
33327,
3458,
62,
796,
366,
3099,
1769,
12,
282,
12272,
1
]
|
What were the goal conceded that had a lost greater than 8 and more than 17 points? | SELECT MAX("Goals Conceded") FROM table_79828 WHERE "Lost" > '8' AND "Points" > '17' | [
2061,
547,
262,
3061,
24684,
326,
550,
257,
2626,
3744,
621,
807,
290,
517,
621,
1596,
2173,
30,
46506,
25882,
7203,
5247,
874,
1482,
771,
276,
4943,
16034,
3084,
62,
43240,
2078,
33411,
366,
31042,
1,
1875,
705,
23,
6,
5357,
366,
40710,
1,
1875,
705,
1558,
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
]
| [
2061,
547,
262,
3061,
24684,
326,
550,
257,
2626,
3744,
621,
807,
290,
517,
621,
1596,
2173,
30,
46506,
25882,
7203,
5247,
874,
1482,
771,
276,
4943,
16034,
3084,
62,
43240,
2078,
33411,
366,
31042,
1,
1875,
705,
23,
6,
5357,
366,
40710,
1,
1875,
705,
1558,
6
]
|
Who did they play against in game 7? | SELECT "Opponent" FROM table_23876 WHERE "#" = '7' | [
8241,
750,
484,
711,
1028,
287,
983,
767,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
23721,
4304,
33411,
25113,
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
]
| [
8241,
750,
484,
711,
1028,
287,
983,
767,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
23721,
4304,
33411,
25113,
1,
796,
705,
22,
6
]
|
List the names of patients who have made appointments, and count them by a pie chart | SELECT Name, COUNT(Name) FROM Appointment AS T1 JOIN Patient AS T2 ON T1.Patient = T2.SSN GROUP BY Name | [
8053,
262,
3891,
286,
3871,
508,
423,
925,
23976,
11,
290,
954,
606,
416,
257,
2508,
8262,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
2034,
49805,
7054,
309,
16,
32357,
1268,
35550,
7054,
309,
17,
6177,
309,
16,
13,
12130,
1153,
796,
309,
17,
13,
5432,
45,
44441,
11050,
6530
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
286,
3871,
508,
423,
925,
23976,
11,
290,
954,
606,
416,
257,
2508,
8262,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
2034,
49805,
7054,
309,
16,
32357,
1268,
35550,
7054,
309,
17,
6177,
309,
16,
13,
12130,
1153,
796,
309,
17,
13,
5432,
45,
44441,
11050,
6530
]
|
Which SANSKRT has a CHINESE of / m n lu ? | SELECT "SANSKRT" FROM table_6767 WHERE "CHINESE" = '摩拏羅 / mónáluó' | [
13828,
311,
15037,
42,
14181,
468,
257,
5870,
1268,
33635,
286,
1220,
285,
299,
300,
84,
5633,
46506,
366,
50,
15037,
42,
14181,
1,
16034,
3084,
62,
3134,
3134,
33411,
366,
3398,
1268,
33635,
1,
796,
705,
162,
239,
102,
162,
233,
237,
163,
122,
227,
1220,
285,
18840,
6557,
2290,
10205,
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
]
| [
13828,
311,
15037,
42,
14181,
468,
257,
5870,
1268,
33635,
286,
1220,
285,
299,
300,
84,
5633,
46506,
366,
50,
15037,
42,
14181,
1,
16034,
3084,
62,
3134,
3134,
33411,
366,
3398,
1268,
33635,
1,
796,
705,
162,
239,
102,
162,
233,
237,
163,
122,
227,
1220,
285,
18840,
6557,
2290,
10205,
6
]
|
What was the North Melbourne's score when they played as the home team? | SELECT home_team AS score FROM table_name_52 WHERE home_team = "north melbourne" | [
2061,
373,
262,
2258,
14819,
338,
4776,
618,
484,
2826,
355,
262,
1363,
1074,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
4309,
33411,
1363,
62,
15097,
796,
366,
43588,
7758,
12544,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2258,
14819,
338,
4776,
618,
484,
2826,
355,
262,
1363,
1074,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
4309,
33411,
1363,
62,
15097,
796,
366,
43588,
7758,
12544,
1
]
|
What is the production code when the u.s. viewers (million) is 11.76? | SELECT production_code FROM table_26702204_1 WHERE us_viewers__million_ = "11.76" | [
2061,
318,
262,
3227,
2438,
618,
262,
334,
13,
82,
13,
10209,
357,
14100,
8,
318,
1367,
13,
4304,
30,
46506,
3227,
62,
8189,
16034,
3084,
62,
2075,
2154,
17572,
19,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
1157,
13,
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,
1,
1,
1,
1,
1
]
| [
2061,
318,
262,
3227,
2438,
618,
262,
334,
13,
82,
13,
10209,
357,
14100,
8,
318,
1367,
13,
4304,
30,
46506,
3227,
62,
8189,
16034,
3084,
62,
2075,
2154,
17572,
19,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
1157,
13,
4304,
1
]
|
How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives? | SELECT AVG(staying_councillors) FROM table_name_42 WHERE election_result > 0 AND party = "conservatives" AND new_council < 27 | [
2437,
867,
10589,
43321,
547,
612,
618,
262,
3071,
1255,
373,
4025,
621,
657,
11,
262,
649,
6745,
1342,
621,
2681,
290,
262,
2151,
12471,
30,
46506,
35224,
7,
301,
8369,
62,
66,
977,
20346,
669,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
3071,
62,
20274,
1875,
657,
5357,
2151,
796,
366,
5936,
35291,
1,
5357,
649,
62,
66,
977,
2856,
1279,
2681
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10589,
43321,
547,
612,
618,
262,
3071,
1255,
373,
4025,
621,
657,
11,
262,
649,
6745,
1342,
621,
2681,
290,
262,
2151,
12471,
30,
46506,
35224,
7,
301,
8369,
62,
66,
977,
20346,
669,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
3071,
62,
20274,
1875,
657,
5357,
2151,
796,
366,
5936,
35291,
1,
5357,
649,
62,
66,
977,
2856,
1279,
2681
]
|
Which month in 2013 did the U.S. use the ruby birthstone? | SELECT month FROM table_name_76 WHERE us__2013_ = "ruby" | [
13828,
1227,
287,
2211,
750,
262,
471,
13,
50,
13,
779,
262,
43506,
4082,
6440,
30,
46506,
1227,
16034,
3084,
62,
3672,
62,
4304,
33411,
514,
834,
6390,
62,
796,
366,
49137,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1227,
287,
2211,
750,
262,
471,
13,
50,
13,
779,
262,
43506,
4082,
6440,
30,
46506,
1227,
16034,
3084,
62,
3672,
62,
4304,
33411,
514,
834,
6390,
62,
796,
366,
49137,
1
]
|
Which date has rich stadium as the game site for week 1? | SELECT "Date" FROM table_43339 WHERE "Game Site" = 'rich stadium' AND "Week" = '1' | [
13828,
3128,
468,
5527,
10308,
355,
262,
983,
2524,
329,
1285,
352,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
42117,
2670,
33411,
366,
8777,
14413,
1,
796,
705,
7527,
10308,
6,
5357,
366,
20916,
1,
796,
705,
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
]
| [
13828,
3128,
468,
5527,
10308,
355,
262,
983,
2524,
329,
1285,
352,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
42117,
2670,
33411,
366,
8777,
14413,
1,
796,
705,
7527,
10308,
6,
5357,
366,
20916,
1,
796,
705,
16,
6
]
|
Get all 'Unclear What You're Asking' with >5 answers. | SELECT p.Id AS "post_id", CONCAT('https://stackoverflow.com/q/', p.Id, '|', p.Title) AS "so_link" FROM Posts AS p JOIN PostHistory AS ph ON ph.PostId = p.Id WHERE p.PostTypeId = 1 AND ph.PostHistoryTypeId = 10 AND ph.Comment = 103 AND p.AnswerCount > 5 | [
3855,
477,
705,
3118,
20063,
1867,
921,
821,
1081,
3364,
6,
351,
1875,
20,
7429,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
312,
1600,
39962,
1404,
10786,
5450,
1378,
25558,
2502,
11125,
13,
785,
14,
80,
14,
3256,
279,
13,
7390,
11,
705,
91,
3256,
279,
13,
19160,
8,
7054,
366,
568,
62,
8726,
1,
16034,
12043,
7054,
279,
32357,
1268,
2947,
18122,
7054,
872,
6177,
872,
13,
6307,
7390,
796,
279,
13,
7390,
33411,
279,
13,
6307,
6030,
7390,
796,
352,
5357,
872,
13,
6307,
18122,
6030,
7390,
796,
838,
5357,
872,
13,
21357,
796,
15349,
5357
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
3855,
477,
705,
3118,
20063,
1867,
921,
821,
1081,
3364,
6,
351,
1875,
20,
7429,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
312,
1600,
39962,
1404,
10786,
5450,
1378,
25558,
2502,
11125,
13,
785,
14,
80,
14,
3256,
279,
13,
7390,
11,
705,
91,
3256,
279,
13,
19160,
8,
7054,
366,
568,
62,
8726,
1,
16034,
12043,
7054,
279,
32357,
1268,
2947,
18122,
7054,
872,
6177,
872,
13,
6307,
7390,
796,
279,
13,
7390,
33411,
279,
13,
6307,
6030,
7390,
796,
352,
5357,
872,
13,
6307,
18122,
6030,
7390,
796,
838,
5357,
872,
13,
21357,
796,
15349,
5357
]
|
what was the name of the drug patient 66015 was prescribed with in the same hospital encounter after having received a closed bronchial biopsy procedure the previous month? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 66015 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'closed bronchial biopsy') AND DATETIME(procedures_icd.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 66015 AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id | [
10919,
373,
262,
1438,
286,
262,
2563,
5827,
7930,
25150,
373,
14798,
351,
287,
262,
976,
4436,
8791,
706,
1719,
2722,
257,
4838,
18443,
354,
498,
3182,
44522,
8771,
262,
2180,
1227,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
9021,
62,
291,
67,
13,
40926,
2435,
11,
25349,
13,
18108,
76,
62,
312,
16034,
9021,
62,
291,
67,
32357,
1268,
25349,
6177,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
25349,
13,
32796,
62,
312,
796,
7930,
25150,
5357,
9021,
62,
291,
67
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
5827,
7930,
25150,
373,
14798,
351,
287,
262,
976,
4436,
8791,
706,
1719,
2722,
257,
4838,
18443,
354,
498,
3182,
44522,
8771,
262,
2180,
1227,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
9021,
62,
291,
67,
13,
40926,
2435,
11,
25349,
13,
18108,
76,
62,
312,
16034,
9021,
62,
291,
67,
32357,
1268,
25349,
6177,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
25349,
13,
32796,
62,
312,
796,
7930,
25150,
5357,
9021,
62,
291,
67
]
|
Which Sign-in/Bicker is at of wash50 on washington rd? | SELECT "Sign-in/Bicker" FROM table_38397 WHERE "Location" = 'wash50 on washington rd' | [
13828,
5865,
12,
259,
14,
33,
15799,
318,
379,
286,
13502,
1120,
319,
20518,
1122,
374,
67,
30,
46506,
366,
11712,
12,
259,
14,
33,
15799,
1,
16034,
3084,
62,
2548,
33372,
33411,
366,
14749,
1,
796,
705,
34670,
1120,
319,
20518,
1122,
374,
67,
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
]
| [
13828,
5865,
12,
259,
14,
33,
15799,
318,
379,
286,
13502,
1120,
319,
20518,
1122,
374,
67,
30,
46506,
366,
11712,
12,
259,
14,
33,
15799,
1,
16034,
3084,
62,
2548,
33372,
33411,
366,
14749,
1,
796,
705,
34670,
1120,
319,
20518,
1122,
374,
67,
6
]
|
What was the score for set 2 when set 3 was 25 22? | SELECT "Set 2" FROM table_40720 WHERE "Set 3" = '25–22' | [
2061,
373,
262,
4776,
329,
900,
362,
618,
900,
513,
373,
1679,
2534,
30,
46506,
366,
7248,
362,
1,
16034,
3084,
62,
1821,
23906,
33411,
366,
7248,
513,
1,
796,
705,
1495,
1906,
1828,
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,
373,
262,
4776,
329,
900,
362,
618,
900,
513,
373,
1679,
2534,
30,
46506,
366,
7248,
362,
1,
16034,
3084,
62,
1821,
23906,
33411,
366,
7248,
513,
1,
796,
705,
1495,
1906,
1828,
6
]
|
Which cage dive has none as a 3-person dive? | SELECT "Cage dive" FROM table_70262 WHERE "3-person dive" = 'none' | [
13828,
17186,
15647,
468,
4844,
355,
257,
513,
12,
6259,
15647,
30,
46506,
366,
34,
496,
15647,
1,
16034,
3084,
62,
2154,
29119,
33411,
366,
18,
12,
6259,
15647,
1,
796,
705,
23108,
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,
17186,
15647,
468,
4844,
355,
257,
513,
12,
6259,
15647,
30,
46506,
366,
34,
496,
15647,
1,
16034,
3084,
62,
2154,
29119,
33411,
366,
18,
12,
6259,
15647,
1,
796,
705,
23108,
6
]
|
how many voters did mccain have in boone county ? | SELECT "mccain#" FROM table_203_660 WHERE "county" = 'boone' | [
4919,
867,
4446,
750,
285,
535,
391,
423,
287,
1489,
505,
7968,
5633,
46506,
366,
76,
535,
391,
2,
1,
16034,
3084,
62,
22416,
62,
39885,
33411,
366,
9127,
88,
1,
796,
705,
2127,
505,
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
]
| [
4919,
867,
4446,
750,
285,
535,
391,
423,
287,
1489,
505,
7968,
5633,
46506,
366,
76,
535,
391,
2,
1,
16034,
3084,
62,
22416,
62,
39885,
33411,
366,
9127,
88,
1,
796,
705,
2127,
505,
6
]
|
Name the number for db | SELECT COUNT(pick__number) FROM table_20649850_1 WHERE position = "DB" | [
5376,
262,
1271,
329,
20613,
46506,
327,
28270,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
1238,
2414,
4089,
1120,
62,
16,
33411,
2292,
796,
366,
11012,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
5376,
262,
1271,
329,
20613,
46506,
327,
28270,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
1238,
2414,
4089,
1120,
62,
16,
33411,
2292,
796,
366,
11012,
1
]
|
What is the race winer of the portuguese grand prix? | SELECT "Race Winner" FROM table_16708 WHERE "Race" = 'Portuguese Grand Prix' | [
2061,
318,
262,
3234,
1592,
263,
286,
262,
2493,
1018,
20506,
4490,
1293,
87,
30,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
1433,
32583,
33411,
366,
35157,
1,
796,
705,
13924,
1018,
20506,
5675,
23832,
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,
318,
262,
3234,
1592,
263,
286,
262,
2493,
1018,
20506,
4490,
1293,
87,
30,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
1433,
32583,
33411,
366,
35157,
1,
796,
705,
13924,
1018,
20506,
5675,
23832,
6
]
|
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, and display from high to low by the y axis. | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID) DESC | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
331,
16488,
13,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
7206,
30709,
10979,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
331,
16488,
13,
46506,
449,
9864,
62,
2389,
11,
35683,
7,
7206,
30709,
10979,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29
]
|
Count the number of accounts. | SELECT COUNT(*) FROM accounts | [
12332,
262,
1271,
286,
5504,
13,
46506,
327,
28270,
7,
28104,
16034,
5504
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
12332,
262,
1271,
286,
5504,
13,
46506,
327,
28270,
7,
28104,
16034,
5504
]
|
Name the Ont of N.B. of 10 and normal total of 77 | SELECT "Ont." FROM table_70942 WHERE "N.B." = '10' AND "Normal total" = '77' | [
5376,
262,
9463,
286,
399,
13,
33,
13,
286,
838,
290,
3487,
2472,
286,
8541,
46506,
366,
45984,
526,
16034,
3084,
62,
31495,
3682,
33411,
366,
45,
13,
33,
526,
796,
705,
940,
6,
5357,
366,
26447,
2472,
1,
796,
705,
3324,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
5376,
262,
9463,
286,
399,
13,
33,
13,
286,
838,
290,
3487,
2472,
286,
8541,
46506,
366,
45984,
526,
16034,
3084,
62,
31495,
3682,
33411,
366,
45,
13,
33,
526,
796,
705,
940,
6,
5357,
366,
26447,
2472,
1,
796,
705,
3324,
6
]
|
Which stadiums have an average attendance of 13840? | SELECT "Stadium" FROM table_157 WHERE "Average" = '13840' | [
13828,
37924,
423,
281,
2811,
14858,
286,
21503,
1821,
30,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
18458,
33411,
366,
26287,
1,
796,
705,
20107,
1821,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
13828,
37924,
423,
281,
2811,
14858,
286,
21503,
1821,
30,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
18458,
33411,
366,
26287,
1,
796,
705,
20107,
1821,
6
]
|
What is Winner, when Team is 'R.J.MacArthur Onslow', and when Circuit is 'Oran Park Raceway'? | SELECT "Winner" FROM table_58887 WHERE "Team" = 'r.j.macarthur onslow' AND "Circuit" = 'oran park raceway' | [
2061,
318,
25358,
11,
618,
4816,
318,
705,
49,
13,
41,
13,
14155,
29874,
1550,
38246,
3256,
290,
618,
13588,
318,
705,
46,
2596,
3250,
24746,
16172,
30960,
46506,
366,
48056,
1,
16034,
3084,
62,
3365,
46660,
33411,
366,
15592,
1,
796,
705,
81,
13,
73,
13,
20285,
283,
11098,
319,
38246,
6,
5357,
366,
31560,
5013,
1,
796,
705,
31884,
3952,
3444,
16172,
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,
1
]
| [
2061,
318,
25358,
11,
618,
4816,
318,
705,
49,
13,
41,
13,
14155,
29874,
1550,
38246,
3256,
290,
618,
13588,
318,
705,
46,
2596,
3250,
24746,
16172,
30960,
46506,
366,
48056,
1,
16034,
3084,
62,
3365,
46660,
33411,
366,
15592,
1,
796,
705,
81,
13,
73,
13,
20285,
283,
11098,
319,
38246,
6,
5357,
366,
31560,
5013,
1,
796,
705,
31884,
3952,
3444,
16172,
6
]
|
Find the names of the chip models that are not used by any phone with full accreditation type. | SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full' | [
16742,
262,
3891,
286,
262,
11594,
4981,
326,
389,
407,
973,
416,
597,
3072,
351,
1336,
697,
42845,
2099,
13,
46506,
2746,
62,
3672,
16034,
11594,
62,
19849,
7788,
42006,
33493,
11594,
62,
19849,
16034,
3072,
33411,
6366,
42845,
62,
4906,
796,
705,
13295,
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
]
| [
16742,
262,
3891,
286,
262,
11594,
4981,
326,
389,
407,
973,
416,
597,
3072,
351,
1336,
697,
42845,
2099,
13,
46506,
2746,
62,
3672,
16034,
11594,
62,
19849,
7788,
42006,
33493,
11594,
62,
19849,
16034,
3072,
33411,
6366,
42845,
62,
4906,
796,
705,
13295,
6
]
|
What is the type and id of the organization that has the most research staff? | SELECT T1.organisation_type, T1.organisation_id FROM organisations AS T1 JOIN research_staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
2099,
290,
4686,
286,
262,
4009,
326,
468,
262,
749,
2267,
3085,
30,
46506,
309,
16,
13,
9971,
5612,
62,
4906,
11,
309,
16,
13,
9971,
5612,
62,
312,
16034,
16435,
7054,
309,
16,
32357,
1268,
2267,
62,
28120,
7054,
309,
17,
6177,
309,
16,
13,
9971,
5612,
62,
312,
796,
309,
17,
13,
7033,
263,
62,
9971,
5612,
62,
312,
44441,
11050,
309,
16,
13,
9971,
5612,
62,
312,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2099,
290,
4686,
286,
262,
4009,
326,
468,
262,
749,
2267,
3085,
30,
46506,
309,
16,
13,
9971,
5612,
62,
4906,
11,
309,
16,
13,
9971,
5612,
62,
312,
16034,
16435,
7054,
309,
16,
32357,
1268,
2267,
62,
28120,
7054,
309,
17,
6177,
309,
16,
13,
9971,
5612,
62,
312,
796,
309,
17,
13,
7033,
263,
62,
9971,
5612,
62,
312,
44441,
11050,
309,
16,
13,
9971,
5612,
62,
312,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
]
|
A bar chart for showing the number of the musical nominee with award 'Bob Fosse' or 'Cleavant Derricks', could you sort names from low to high order please? | SELECT Nominee, COUNT(Nominee) FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" GROUP BY Nominee ORDER BY Nominee | [
32,
2318,
8262,
329,
4478,
262,
1271,
286,
262,
10530,
10429,
351,
5764,
705,
18861,
376,
418,
325,
6,
393,
705,
34349,
615,
415,
9626,
23706,
3256,
714,
345,
3297,
3891,
422,
1877,
284,
1029,
1502,
3387,
30,
46506,
21198,
500,
68,
11,
327,
28270,
7,
45,
296,
500,
68,
8,
16034,
10530,
33411,
11289,
796,
366,
29387,
11289,
1,
6375,
11289,
796,
366,
34349,
615,
415,
9626,
23706,
1,
44441,
11050,
21198,
500,
68,
38678,
11050,
21198,
500,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
32,
2318,
8262,
329,
4478,
262,
1271,
286,
262,
10530,
10429,
351,
5764,
705,
18861,
376,
418,
325,
6,
393,
705,
34349,
615,
415,
9626,
23706,
3256,
714,
345,
3297,
3891,
422,
1877,
284,
1029,
1502,
3387,
30,
46506,
21198,
500,
68,
11,
327,
28270,
7,
45,
296,
500,
68,
8,
16034,
10530,
33411,
11289,
796,
366,
29387,
11289,
1,
6375,
11289,
796,
366,
34349,
615,
415,
9626,
23706,
1,
44441,
11050,
21198,
500,
68,
38678,
11050,
21198,
500,
68
]
|
Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school? | SELECT "High school" FROM table_77588 WHERE "Utah Mr. Basketball" = 'tyler haws' AND "Year" = '2009' | [
8496,
750,
14886,
6091,
82,
11,
3717,
10202,
1770,
13,
25911,
11,
467,
284,
1029,
1524,
30,
46506,
366,
11922,
1524,
1,
16034,
3084,
62,
34483,
3459,
33411,
366,
44350,
1770,
13,
25911,
1,
796,
705,
774,
1754,
387,
18504,
6,
5357,
366,
17688,
1,
796,
705,
10531,
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
]
| [
8496,
750,
14886,
6091,
82,
11,
3717,
10202,
1770,
13,
25911,
11,
467,
284,
1029,
1524,
30,
46506,
366,
11922,
1524,
1,
16034,
3084,
62,
34483,
3459,
33411,
366,
44350,
1770,
13,
25911,
1,
796,
705,
774,
1754,
387,
18504,
6,
5357,
366,
17688,
1,
796,
705,
10531,
6
]
|
What district had an election with incumbent john smilie? | SELECT "District" FROM table_28919 WHERE "Incumbent" = 'John Smilie' | [
2061,
4783,
550,
281,
3071,
351,
23526,
45610,
895,
346,
494,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
27693,
1129,
33411,
366,
25517,
2178,
298,
1,
796,
705,
7554,
2439,
346,
494,
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,
4783,
550,
281,
3071,
351,
23526,
45610,
895,
346,
494,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
27693,
1129,
33411,
366,
25517,
2178,
298,
1,
796,
705,
7554,
2439,
346,
494,
6
]
|
What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29? | SELECT MIN(city_population__2009_) FROM table_name_15 WHERE city_area_km_2__ = 6 AND district = "rajanpur district" AND serial_no < 29 | [
2061,
373,
262,
9016,
1748,
3265,
329,
262,
4783,
286,
374,
1228,
272,
14225,
4783,
351,
257,
1989,
286,
718,
10571,
44345,
290,
257,
11389,
1271,
1342,
621,
2808,
30,
46506,
20625,
7,
19205,
62,
39748,
834,
10531,
62,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
1748,
62,
20337,
62,
13276,
62,
17,
834,
796,
718,
5357,
4783,
796,
366,
430,
13881,
14225,
4783,
1,
5357,
11389,
62,
3919,
1279,
2808
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
1748,
3265,
329,
262,
4783,
286,
374,
1228,
272,
14225,
4783,
351,
257,
1989,
286,
718,
10571,
44345,
290,
257,
11389,
1271,
1342,
621,
2808,
30,
46506,
20625,
7,
19205,
62,
39748,
834,
10531,
62,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
1748,
62,
20337,
62,
13276,
62,
17,
834,
796,
718,
5357,
4783,
796,
366,
430,
13881,
14225,
4783,
1,
5357,
11389,
62,
3919,
1279,
2808
]
|
during their current hospital encounter, patient 006-195316 has been allergic to any substance? | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195316' AND patient.hospitaldischargetime IS NULL)) | [
42122,
511,
1459,
4436,
8791,
11,
5827,
3571,
21,
12,
1129,
4310,
1433,
468,
587,
31856,
284,
597,
9136,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
1129,
4310,
1433,
6,
5357,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
4008
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
42122,
511,
1459,
4436,
8791,
11,
5827,
3571,
21,
12,
1129,
4310,
1433,
468,
587,
31856,
284,
597,
9136,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
1129,
4310,
1433,
6,
5357,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
4008
]
|
how much 15 ml cup : chlorhexidine gluconate 0.12 % mt soln is it? | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = '15 ml cup : chlorhexidine gluconate 0.12 % mt soln') | [
4919,
881,
1315,
25962,
6508,
1058,
20207,
33095,
39422,
1278,
84,
1102,
378,
657,
13,
1065,
4064,
45079,
1540,
77,
318,
340,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
14103,
13,
1150,
3299,
312,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
1314,
25962,
6508,
1058,
20207,
33095,
39422,
1278,
84,
1102,
378,
657,
13,
1065,
4064,
45079,
1540,
77,
11537
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1315,
25962,
6508,
1058,
20207,
33095,
39422,
1278,
84,
1102,
378,
657,
13,
1065,
4064,
45079,
1540,
77,
318,
340,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
14103,
13,
1150,
3299,
312,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
1314,
25962,
6508,
1058,
20207,
33095,
39422,
1278,
84,
1102,
378,
657,
13,
1065,
4064,
45079,
1540,
77,
11537
]
|
Can you tell me the Venue that has the Away team of south dragons? | SELECT venue FROM table_name_98 WHERE away_team = "south dragons" | [
6090,
345,
1560,
502,
262,
9932,
518,
326,
468,
262,
21986,
1074,
286,
5366,
20308,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
4089,
33411,
1497,
62,
15097,
796,
366,
35782,
20308,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9932,
518,
326,
468,
262,
21986,
1074,
286,
5366,
20308,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
4089,
33411,
1497,
62,
15097,
796,
366,
35782,
20308,
1
]
|
What is the name of the most recent movie? | SELECT title FROM Movie WHERE YEAR = (SELECT MAX(YEAR) FROM Movie) | [
2061,
318,
262,
1438,
286,
262,
749,
2274,
3807,
30,
46506,
3670,
16034,
15875,
33411,
32914,
796,
357,
46506,
25882,
7,
56,
17133,
8,
16034,
15875,
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
]
| [
2061,
318,
262,
1438,
286,
262,
749,
2274,
3807,
30,
46506,
3670,
16034,
15875,
33411,
32914,
796,
357,
46506,
25882,
7,
56,
17133,
8,
16034,
15875,
8
]
|
What district is incumbent frank chelf from? | SELECT "District" FROM table_18422 WHERE "Incumbent" = 'Frank Chelf' | [
2061,
4783,
318,
23526,
14346,
1125,
1652,
422,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
22883,
1828,
33411,
366,
25517,
2178,
298,
1,
796,
705,
17439,
2580,
1652,
6
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
2061,
4783,
318,
23526,
14346,
1125,
1652,
422,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
22883,
1828,
33411,
366,
25517,
2178,
298,
1,
796,
705,
17439,
2580,
1652,
6
]
|
Name the winnings for 23rd position | SELECT "Winnings" FROM table_27023 WHERE "Position" = '23rd' | [
5376,
262,
1592,
23400,
329,
2242,
4372,
2292,
46506,
366,
54,
3732,
654,
1,
16034,
3084,
62,
20233,
1954,
33411,
366,
26545,
1,
796,
705,
1954,
4372,
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,
1592,
23400,
329,
2242,
4372,
2292,
46506,
366,
54,
3732,
654,
1,
16034,
3084,
62,
20233,
1954,
33411,
366,
26545,
1,
796,
705,
1954,
4372,
6
]
|
How many persons are not body builders? | SELECT COUNT(*) FROM people WHERE NOT people_id IN (SELECT people_id FROM body_builder) | [
2437,
867,
6506,
389,
407,
1767,
31606,
30,
46506,
327,
28270,
7,
28104,
16034,
661,
33411,
5626,
661,
62,
312,
3268,
357,
46506,
661,
62,
312,
16034,
1767,
62,
38272,
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
]
| [
2437,
867,
6506,
389,
407,
1767,
31606,
30,
46506,
327,
28270,
7,
28104,
16034,
661,
33411,
5626,
661,
62,
312,
3268,
357,
46506,
661,
62,
312,
16034,
1767,
62,
38272,
8
]
|
When was the school in Philadelphia, Pennsylvania founded? | SELECT founded FROM table_1969577_3 WHERE location = "Philadelphia, Pennsylvania" | [
2215,
373,
262,
1524,
287,
8857,
11,
9589,
9393,
30,
46506,
9393,
16034,
3084,
62,
1129,
37381,
3324,
62,
18,
33411,
4067,
796,
366,
42349,
11,
9589,
1
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
2215,
373,
262,
1524,
287,
8857,
11,
9589,
9393,
30,
46506,
9393,
16034,
3084,
62,
1129,
37381,
3324,
62,
18,
33411,
4067,
796,
366,
42349,
11,
9589,
1
]
|
Which date has the promoter Frank Moloney and the opponent Georgi Iliev? | SELECT "Date" FROM table_9750 WHERE "Promotor" = 'frank moloney' AND "Opponent" = 'georgi iliev' | [
13828,
3128,
468,
262,
32972,
5278,
17958,
1419,
290,
262,
6125,
6850,
72,
13778,
11203,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
5607,
1120,
33411,
366,
24129,
20965,
1,
796,
705,
8310,
962,
18605,
1419,
6,
5357,
366,
27524,
3471,
1,
796,
705,
469,
2398,
72,
4229,
11203,
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
]
| [
13828,
3128,
468,
262,
32972,
5278,
17958,
1419,
290,
262,
6125,
6850,
72,
13778,
11203,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
5607,
1120,
33411,
366,
24129,
20965,
1,
796,
705,
8310,
962,
18605,
1419,
6,
5357,
366,
27524,
3471,
1,
796,
705,
469,
2398,
72,
4229,
11203,
6
]
|
What Position has a Season larger than 2000 with a Level of Tier 3? | SELECT "Position" FROM table_64468 WHERE "Season" > '2000' AND "Level" = 'tier 3' | [
2061,
23158,
468,
257,
7369,
4025,
621,
4751,
351,
257,
5684,
286,
15917,
513,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
29173,
3104,
33411,
366,
18960,
1,
1875,
705,
11024,
6,
5357,
366,
4971,
1,
796,
705,
24948,
513,
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,
23158,
468,
257,
7369,
4025,
621,
4751,
351,
257,
5684,
286,
15917,
513,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
29173,
3104,
33411,
366,
18960,
1,
1875,
705,
11024,
6,
5357,
366,
4971,
1,
796,
705,
24948,
513,
6
]
|
Day of Week Most Popular for Posting. | Go | [
12393,
286,
6119,
4042,
22623,
329,
2947,
278,
13,
5247
]
| [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
]
| [
12393,
286,
6119,
4042,
22623,
329,
2947,
278,
13,
5247
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.