instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
How many episodes when the tv station is ntv and the japanese title is ? | SELECT "Episodes" FROM table_64496 WHERE "TV Station" = 'ntv' AND "Japanese Title" = 'たったひとつの恋' | [
2437,
867,
8640,
618,
262,
31557,
4429,
318,
299,
14981,
290,
262,
474,
2674,
2771,
3670,
318,
5633,
46506,
366,
13807,
8052,
1,
16034,
3084,
62,
2414,
37747,
33411,
366,
6849,
9327,
1,
796,
705,
429,
85,
6,
5357,
366,
25324,
11851,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8640,
618,
262,
31557,
4429,
318,
299,
14981,
290,
262,
474,
2674,
2771,
3670,
318,
5633,
46506,
366,
13807,
8052,
1,
16034,
3084,
62,
2414,
37747,
33411,
366,
6849,
9327,
1,
796,
705,
429,
85,
6,
5357,
366,
25324,
11851,
... |
What date has 79-48 as the record? | SELECT date FROM table_name_47 WHERE record = "79-48" | [
2061,
3128,
468,
9225,
12,
2780,
355,
262,
1700,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2857,
33411,
1700,
796,
366,
3720,
12,
2780,
1
] | [
1,
1,
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,
9225,
12,
2780,
355,
262,
1700,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2857,
33411,
1700,
796,
366,
3720,
12,
2780,
1
] |
when is the opponent lyoto machida? | SELECT date FROM table_name_94 WHERE opponent = "lyoto machida" | [
12518,
318,
262,
6125,
22404,
2069,
3235,
3755,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5824,
33411,
6125,
796,
366,
306,
2069,
3235,
3755,
1
] | [
1,
1,
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,
318,
262,
6125,
22404,
2069,
3235,
3755,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5824,
33411,
6125,
796,
366,
306,
2069,
3235,
3755,
1
] |
I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29 | SELECT COUNT(total) FROM table_name_74 WHERE silver > 0 AND bronze > 21 AND gold > 29 | [
40,
765,
284,
760,
262,
2472,
329,
8465,
517,
621,
657,
351,
22101,
517,
621,
2310,
290,
3869,
517,
621,
2808,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
8465,
1875,
657,
5357,
22101,
1875,
2310,
5357,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
284,
760,
262,
2472,
329,
8465,
517,
621,
657,
351,
22101,
517,
621,
2310,
290,
3869,
517,
621,
2808,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
8465,
1875,
657,
5357,
22101,
1875,
2310,
5357,
3... |
Show all allergies with number of students affected Show bar chart, and could you rank in descending by the names? | SELECT Allergy, COUNT(*) FROM Has_Allergy GROUP BY Allergy ORDER BY Allergy DESC | [
15307,
477,
36665,
351,
1271,
286,
2444,
5676,
5438,
2318,
8262,
11,
290,
714,
345,
4279,
287,
31491,
416,
262,
3891,
30,
46506,
1439,
26079,
11,
327,
28270,
7,
28104,
16034,
7875,
62,
3237,
26079,
44441,
11050,
1439,
26079,
38678,
1105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
36665,
351,
1271,
286,
2444,
5676,
5438,
2318,
8262,
11,
290,
714,
345,
4279,
287,
31491,
416,
262,
3891,
30,
46506,
1439,
26079,
11,
327,
28270,
7,
28104,
16034,
7875,
62,
3237,
26079,
44441,
11050,
1439,
26079,
38678,
1105... |
find out the birth date and time of admission for patient john gartman. | SELECT demographic.dob, demographic.admittime FROM demographic WHERE demographic.name = "John Gartman" | [
19796,
503,
262,
4082,
3128,
290,
640,
286,
13938,
329,
5827,
45610,
308,
433,
805,
13,
46506,
16728,
13,
67,
672,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
7554,
402,
433,
805,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4082,
3128,
290,
640,
286,
13938,
329,
5827,
45610,
308,
433,
805,
13,
46506,
16728,
13,
67,
672,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
7554,
402,
433,
805,
1
] |
What Version has a Remixed by Perky Park with a Length of 6:38? | SELECT version FROM table_name_29 WHERE remixed_by = "perky park" AND length = "6:38" | [
2061,
10628,
468,
257,
3982,
2966,
416,
2448,
2584,
3250,
351,
257,
22313,
286,
718,
25,
2548,
30,
46506,
2196,
16034,
3084,
62,
3672,
62,
1959,
33411,
816,
2966,
62,
1525,
796,
366,
525,
2584,
3952,
1,
5357,
4129,
796,
366,
21,
25,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10628,
468,
257,
3982,
2966,
416,
2448,
2584,
3250,
351,
257,
22313,
286,
718,
25,
2548,
30,
46506,
2196,
16034,
3084,
62,
3672,
62,
1959,
33411,
816,
2966,
62,
1525,
796,
366,
525,
2584,
3952,
1,
5357,
4129,
796,
366,
21,
25,... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, list X-axis from high to low order please. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
1395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
1395... |
For those employees who was hired before 2002-06-21, draw a line chart about the change of department_id over hire_date , and rank from high to low by the X-axis. | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
5011,
62,
312,
625,
11078,
62,
4475,
837,
290,
4279,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
36210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
5011,
62,
312,
625,
11078,
62,
4475,
837,
290,
4279,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
36210,
... |
What is the 2006 value of the 2009 A value, 2011 A value, and A as the 2007 value? | SELECT "2006" FROM table_57759 WHERE "2009" = 'a' AND "2011" = 'a' AND "2007" = 'a' | [
2061,
318,
262,
4793,
1988,
286,
262,
3717,
317,
1988,
11,
2813,
317,
1988,
11,
290,
317,
355,
262,
4343,
1988,
30,
46506,
366,
13330,
1,
16034,
3084,
62,
3553,
38314,
33411,
366,
10531,
1,
796,
705,
64,
6,
5357,
366,
9804,
1,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4793,
1988,
286,
262,
3717,
317,
1988,
11,
2813,
317,
1988,
11,
290,
317,
355,
262,
4343,
1988,
30,
46506,
366,
13330,
1,
16034,
3084,
62,
3553,
38314,
33411,
366,
10531,
1,
796,
705,
64,
6,
5357,
366,
9804,
1,
796... |
What's the Chinese (simplified/traditional) name of Susong County? | SELECT chinese_name__simplified___traditional_ FROM table_1976898_1 WHERE english_name = "Susong County" | [
2061,
338,
262,
3999,
357,
14323,
489,
1431,
14,
36380,
8,
1438,
286,
8932,
506,
3418,
30,
46506,
442,
3762,
62,
3672,
834,
14323,
489,
1431,
17569,
36380,
62,
16034,
3084,
62,
24991,
3104,
4089,
62,
16,
33411,
46932,
62,
3672,
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
] | [
2061,
338,
262,
3999,
357,
14323,
489,
1431,
14,
36380,
8,
1438,
286,
8932,
506,
3418,
30,
46506,
442,
3762,
62,
3672,
834,
14323,
489,
1431,
17569,
36380,
62,
16034,
3084,
62,
24991,
3104,
4089,
62,
16,
33411,
46932,
62,
3672,
796,
... |
Which junior team is associated with an NHL pick by the Buffalo Sabres? | SELECT college_junior_club_team FROM table_2850912_4 WHERE nhl_team = "Buffalo Sabres" | [
13828,
13430,
1074,
318,
3917,
351,
281,
9481,
2298,
416,
262,
14905,
45899,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
16034,
3084,
62,
2078,
29022,
1065,
62,
19,
33411,
299,
18519,
62,
15097,
796,
366,
36474,
7335,
45899,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13430,
1074,
318,
3917,
351,
281,
9481,
2298,
416,
262,
14905,
45899,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
16034,
3084,
62,
2078,
29022,
1065,
62,
19,
33411,
299,
18519,
62,
15097,
796,
366,
36474,
7335,
45899,... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the average of price , and group by attribute headquarter, order by the Headquarter from high to low. | SELECT Headquarter, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2811,
286,
2756,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
1502,
416,
262,
7123,
24385,
422,
1029,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2811,
286,
2756,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
1502,
416,
262,
7123,
24385,
422,
1029,... |
What is the Fatalities when the tail number was unknown and in Kabul> | SELECT "Fatalities" FROM table_42149 WHERE "Tail number" = 'unknown' AND "Location" = 'kabul' | [
2061,
318,
262,
41815,
871,
618,
262,
7894,
1271,
373,
6439,
290,
287,
34753,
29,
46506,
366,
37,
10254,
871,
1,
16034,
3084,
62,
3682,
19442,
33411,
366,
51,
603,
1271,
1,
796,
705,
34680,
6,
5357,
366,
14749,
1,
796,
705,
74,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
41815,
871,
618,
262,
7894,
1271,
373,
6439,
290,
287,
34753,
29,
46506,
366,
37,
10254,
871,
1,
16034,
3084,
62,
3682,
19442,
33411,
366,
51,
603,
1271,
1,
796,
705,
34680,
6,
5357,
366,
14749,
1,
796,
705,
74,
16... |
What human computer interaction courses are there in Spring or Summer 2003 ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE area.area LIKE '%human... | [
2061,
1692,
3644,
10375,
10902,
389,
612,
287,
8225,
393,
10216,
5816,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
1692,
3644,
10375,
10902,
389,
612,
287,
8225,
393,
10216,
5816,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
3268,
21479,
32357,
... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the average of manager_id bin hire_date by time in a bar chart, could you show Y in desc order? | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID) DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
640,
287,
257,
2318,
8262,
11,
714,
345,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
640,
287,
257,
2318,
8262,
11,
714,
345,... |
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the sum of department_id , and group by attribute job_id in a bar chart, and show in descending by the X-axis. | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
5011,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
11,
... |
Which District has a Result of Re-elected and a First Elected of 1898? | SELECT district FROM table_name_95 WHERE result = "re-elected" AND first_elected = 1898 | [
13828,
5665,
468,
257,
25414,
286,
797,
12,
28604,
290,
257,
3274,
5903,
276,
286,
46244,
30,
46506,
4783,
16034,
3084,
62,
3672,
62,
3865,
33411,
1255,
796,
366,
260,
12,
28604,
1,
5357,
717,
62,
28604,
796,
46244
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5665,
468,
257,
25414,
286,
797,
12,
28604,
290,
257,
3274,
5903,
276,
286,
46244,
30,
46506,
4783,
16034,
3084,
62,
3672,
62,
3865,
33411,
1255,
796,
366,
260,
12,
28604,
1,
5357,
717,
62,
28604,
796,
46244
] |
what was the only flight to be canceled ? | SELECT "flight" FROM table_203_538 WHERE "result" = 'canceled' | [
10919,
373,
262,
691,
5474,
284,
307,
19994,
5633,
46506,
366,
22560,
1,
16034,
3084,
62,
22416,
62,
49561,
33411,
366,
20274,
1,
796,
705,
66,
590,
992,
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
] | [
10919,
373,
262,
691,
5474,
284,
307,
19994,
5633,
46506,
366,
22560,
1,
16034,
3084,
62,
22416,
62,
49561,
33411,
366,
20274,
1,
796,
705,
66,
590,
992,
6
] |
List the publication dates of publications with 3 lowest prices. | SELECT publication_date FROM publication ORDER BY price LIMIT 3 | [
8053,
262,
9207,
9667,
286,
16125,
351,
513,
9016,
4536,
13,
46506,
9207,
62,
4475,
16034,
9207,
38678,
11050,
2756,
27564,
2043,
513
] | [
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,
9207,
9667,
286,
16125,
351,
513,
9016,
4536,
13,
46506,
9207,
62,
4475,
16034,
9207,
38678,
11050,
2756,
27564,
2043,
513
] |
Return a pie on what are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor? | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor | [
13615,
257,
2508,
319,
644,
389,
262,
7713,
286,
17038,
290,
262,
11188,
1271,
286,
17038,
13356,
416,
1123,
15811,
30,
46506,
47979,
11,
327,
28270,
7,
28104,
16034,
19500,
44441,
11050,
47979
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2508,
319,
644,
389,
262,
7713,
286,
17038,
290,
262,
11188,
1271,
286,
17038,
13356,
416,
1123,
15811,
30,
46506,
47979,
11,
327,
28270,
7,
28104,
16034,
19500,
44441,
11050,
47979
] |
The event rip curl pro mademoiselle is in which location? | SELECT location FROM table_name_55 WHERE event = "rip curl pro mademoiselle" | [
464,
1785,
18344,
29249,
386,
8805,
368,
10924,
13485,
318,
287,
543,
4067,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2816,
33411,
1785,
796,
366,
5528,
29249,
386,
8805,
368,
10924,
13485,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1785,
18344,
29249,
386,
8805,
368,
10924,
13485,
318,
287,
543,
4067,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2816,
33411,
1785,
796,
366,
5528,
29249,
386,
8805,
368,
10924,
13485,
1
] |
What year had an attendance of 90,000? | SELECT "Year" FROM table_45390 WHERE "Attendance" = '90,000' | [
2061,
614,
550,
281,
14858,
286,
4101,
11,
830,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
2231,
25964,
33411,
366,
8086,
437,
590,
1,
796,
705,
3829,
11,
830,
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,
614,
550,
281,
14858,
286,
4101,
11,
830,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
2231,
25964,
33411,
366,
8086,
437,
590,
1,
796,
705,
3829,
11,
830,
6
] |
how many times does patient 012-20482 get a alkaline phos. test until 3 years ago. | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-20482')) AND lab.labname = 'alkaline phos.' AND DATETIME(lab.labresulttime) <= DATETIME(... | [
4919,
867,
1661,
857,
5827,
5534,
17,
12,
1238,
40149,
651,
257,
32915,
20663,
872,
418,
13,
1332,
1566,
513,
812,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
857,
5827,
5534,
17,
12,
1238,
40149,
651,
257,
32915,
20663,
872,
418,
13,
1332,
1566,
513,
812,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
... |
How many laps did Jackie Oliver do? | SELECT "Laps" FROM table_58533 WHERE "Driver" = 'jackie oliver' | [
2437,
867,
24590,
750,
24766,
15416,
466,
30,
46506,
366,
43,
1686,
1,
16034,
3084,
62,
38905,
2091,
33411,
366,
32103,
1,
796,
705,
19650,
494,
25776,
1428,
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,
24590,
750,
24766,
15416,
466,
30,
46506,
366,
43,
1686,
1,
16034,
3084,
62,
38905,
2091,
33411,
366,
32103,
1,
796,
705,
19650,
494,
25776,
1428,
6
] |
Display a bar chart for what is the average salary for each job title?, and show in descending by the the average of salary. | SELECT JOB_TITLE, AVG(SALARY) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID GROUP BY T2.JOB_TITLE ORDER BY AVG(SALARY) DESC | [
23114,
257,
2318,
8262,
329,
644,
318,
262,
2811,
9588,
329,
1123,
1693,
3670,
21747,
290,
905,
287,
31491,
416,
262,
262,
2811,
286,
9588,
13,
46506,
449,
9864,
62,
49560,
2538,
11,
35224,
7,
50,
1847,
13153,
8,
16034,
4409,
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... | [
23114,
257,
2318,
8262,
329,
644,
318,
262,
2811,
9588,
329,
1123,
1693,
3670,
21747,
290,
905,
287,
31491,
416,
262,
262,
2811,
286,
9588,
13,
46506,
449,
9864,
62,
49560,
2538,
11,
35224,
7,
50,
1847,
13153,
8,
16034,
4409,
7054,
... |
Which Location has a Method of decision (unanimous), and Res of win x? | SELECT location FROM table_name_99 WHERE method = "decision (unanimous)" AND res = "win x" | [
13828,
13397,
468,
257,
11789,
286,
2551,
357,
403,
45873,
828,
290,
1874,
286,
1592,
2124,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2079,
33411,
2446,
796,
366,
12501,
1166,
357,
403,
45873,
16725,
5357,
581,
796,
366,
5404,
2124,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13397,
468,
257,
11789,
286,
2551,
357,
403,
45873,
828,
290,
1874,
286,
1592,
2124,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
2079,
33411,
2446,
796,
366,
12501,
1166,
357,
403,
45873,
16725,
5357,
581,
796,
366,
5404,
2124,
... |
If the amount of rebounds is 0, what is the maximum minutes? | SELECT MAX(minutes) FROM table_23346303_5 WHERE rebounds = 0 | [
1532,
262,
2033,
286,
18841,
318,
657,
11,
644,
318,
262,
5415,
2431,
30,
46506,
25882,
7,
1084,
1769,
8,
16034,
3084,
62,
1954,
30557,
22572,
62,
20,
33411,
18841,
796,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
18841,
318,
657,
11,
644,
318,
262,
5415,
2431,
30,
46506,
25882,
7,
1084,
1769,
8,
16034,
3084,
62,
1954,
30557,
22572,
62,
20,
33411,
18841,
796,
657
] |
Which Pali has an English of mindfulness of breathing? | SELECT pali FROM table_name_54 WHERE english = "mindfulness of breathing" | [
13828,
3175,
72,
468,
281,
3594,
286,
35502,
286,
12704,
30,
46506,
6340,
72,
16034,
3084,
62,
3672,
62,
4051,
33411,
46932,
796,
366,
10155,
15538,
286,
12704,
1
] | [
1,
1,
1,
1,
1,
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,
3175,
72,
468,
281,
3594,
286,
35502,
286,
12704,
30,
46506,
6340,
72,
16034,
3084,
62,
3672,
62,
4051,
33411,
46932,
796,
366,
10155,
15538,
286,
12704,
1
] |
what flights are there from ATLANTA to OAKLAND on thursday | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND date_day.day_number = 24 AND date_day.month_number = 5 AND d... | [
10919,
13956,
389,
612,
422,
5161,
25697,
5603,
284,
440,
10206,
28182,
319,
294,
3479,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13956,
389,
612,
422,
5161,
25697,
5603,
284,
440,
10206,
28182,
319,
294,
3479,
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,
... |
What classes should I enroll in in order to declare a major in SAC ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%SAC%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id | [
2061,
6097,
815,
314,
14627,
287,
287,
1502,
284,
13627,
257,
1688,
287,
311,
2246,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
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... | [
2061,
6097,
815,
314,
14627,
287,
287,
1502,
284,
13627,
257,
1688,
287,
311,
2246,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,... |
Find all procedures which cost more than 1000 or which physician John Wen was trained in. | SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen" | [
16742,
477,
9021,
543,
1575,
517,
621,
8576,
393,
543,
14325,
1757,
31164,
373,
8776,
287,
13,
46506,
1438,
16034,
9021,
33411,
1575,
1875,
8576,
4725,
2849,
33493,
309,
18,
13,
3672,
16034,
14325,
7054,
309,
16,
32357,
1268,
8776,
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... | [
16742,
477,
9021,
543,
1575,
517,
621,
8576,
393,
543,
14325,
1757,
31164,
373,
8776,
287,
13,
46506,
1438,
16034,
9021,
33411,
1575,
1875,
8576,
4725,
2849,
33493,
309,
18,
13,
3672,
16034,
14325,
7054,
309,
16,
32357,
1268,
8776,
62,
... |
What ship type was from SE? | SELECT ship_type FROM table_name_86 WHERE nat = "se" | [
2061,
4074,
2099,
373,
422,
7946,
30,
46506,
4074,
62,
4906,
16034,
3084,
62,
3672,
62,
4521,
33411,
34664,
796,
366,
325,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4074,
2099,
373,
422,
7946,
30,
46506,
4074,
62,
4906,
16034,
3084,
62,
3672,
62,
4521,
33411,
34664,
796,
366,
325,
1
] |
when was patient 77177 first prescribed the medication via the ou route in the first hospital encounter? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 77177 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND prescriptions.route = 'ou' ORDER BY prescriptions.startdate LIMIT 1 | [
12518,
373,
5827,
8541,
22413,
717,
14798,
262,
14103,
2884,
262,
267,
84,
6339,
287,
262,
717,
4436,
8791,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
5827,
8541,
22413,
717,
14798,
262,
14103,
2884,
262,
267,
84,
6339,
287,
262,
717,
4436,
8791,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
... |
How much money has a to par of E? | SELECT COUNT(money___) AS $__ FROM table_name_14 WHERE to_par = "e" | [
2437,
881,
1637,
468,
257,
284,
1582,
286,
412,
30,
46506,
327,
28270,
7,
26316,
17569,
8,
7054,
720,
834,
16034,
3084,
62,
3672,
62,
1415,
33411,
284,
62,
1845,
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
] | [
2437,
881,
1637,
468,
257,
284,
1582,
286,
412,
30,
46506,
327,
28270,
7,
26316,
17569,
8,
7054,
720,
834,
16034,
3084,
62,
3672,
62,
1415,
33411,
284,
62,
1845,
796,
366,
68,
1
] |
What was the game number that took place on April 27? | SELECT game FROM table_name_50 WHERE date = "april 27" | [
2061,
373,
262,
983,
1271,
326,
1718,
1295,
319,
3035,
2681,
30,
46506,
983,
16034,
3084,
62,
3672,
62,
1120,
33411,
3128,
796,
366,
499,
22379,
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
] | [
2061,
373,
262,
983,
1271,
326,
1718,
1295,
319,
3035,
2681,
30,
46506,
983,
16034,
3084,
62,
3672,
62,
1120,
33411,
3128,
796,
366,
499,
22379,
2681,
1
] |
what is the name of the last network listed on this chart ? | SELECT "network" FROM table_204_379 ORDER BY id DESC LIMIT 1 | [
10919,
318,
262,
1438,
286,
262,
938,
3127,
5610,
319,
428,
8262,
5633,
46506,
366,
27349,
1,
16034,
3084,
62,
18638,
62,
29088,
38678,
11050,
4686,
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
] | [
10919,
318,
262,
1438,
286,
262,
938,
3127,
5610,
319,
428,
8262,
5633,
46506,
366,
27349,
1,
16034,
3084,
62,
18638,
62,
29088,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze? | SELECT SUM(bronze) FROM table_name_27 WHERE total = 3 AND gold > 0 AND nation = "belarus" AND silver > 2 | [
14957,
286,
513,
11,
290,
257,
3561,
4025,
621,
657,
11,
290,
257,
8741,
286,
894,
20272,
11,
290,
257,
7698,
4025,
621,
362,
468,
644,
2160,
286,
22101,
30,
46506,
35683,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
1983,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14957,
286,
513,
11,
290,
257,
3561,
4025,
621,
657,
11,
290,
257,
8741,
286,
894,
20272,
11,
290,
257,
7698,
4025,
621,
362,
468,
644,
2160,
286,
22101,
30,
46506,
35683,
7,
65,
1313,
2736,
8,
16034,
3084,
62,
3672,
62,
1983,
334... |
What is the rank for the team that had a time of 6:41.45 and note FA? | SELECT SUM("Rank") FROM table_63442 WHERE "Notes" = 'fa' AND "Time" = '6:41.45' | [
2061,
318,
262,
4279,
329,
262,
1074,
326,
550,
257,
640,
286,
718,
25,
3901,
13,
2231,
290,
3465,
9677,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
5066,
39506,
33411,
366,
16130,
1,
796,
705,
13331,
6,
5357,
366,
7575,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
329,
262,
1074,
326,
550,
257,
640,
286,
718,
25,
3901,
13,
2231,
290,
3465,
9677,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
5066,
39506,
33411,
366,
16130,
1,
796,
705,
13331,
6,
5357,
366,
7575,
1... |
WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS? | SELECT "City" FROM table_44576 WHERE "Third" = 'lori olson-johns' | [
32971,
3180,
3336,
27993,
13315,
2320,
46833,
7054,
406,
1581,
40,
440,
6561,
1340,
12,
41,
12096,
8035,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
43489,
4304,
33411,
366,
22747,
1,
796,
705,
4685,
72,
25776,
1559,
12,
30686,
82,
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
] | [
32971,
3180,
3336,
27993,
13315,
2320,
46833,
7054,
406,
1581,
40,
440,
6561,
1340,
12,
41,
12096,
8035,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
43489,
4304,
33411,
366,
22747,
1,
796,
705,
4685,
72,
25776,
1559,
12,
30686,
82,
6
] |
calculate the number of patients who stayed in careunit sicu since 2101. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'sicu' AND STRFTIME('%y', transfers.intime) >= '2101') | [
9948,
3129,
378,
262,
1271,
286,
3871,
508,
9658,
287,
1337,
20850,
264,
291,
84,
1201,
2310,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
9658,
287,
1337,
20850,
264,
291,
84,
1201,
2310,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
326... |
What is the area of cimahi city? | SELECT area__km²__2005 FROM table_21734764_1 WHERE administrative_division = "Cimahi City" | [
2061,
318,
262,
1989,
286,
269,
320,
32810,
1748,
30,
46506,
1989,
834,
13276,
31185,
834,
14315,
16034,
3084,
62,
24591,
30995,
2414,
62,
16,
33411,
11553,
62,
21426,
796,
366,
34,
320,
32810,
2254,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1989,
286,
269,
320,
32810,
1748,
30,
46506,
1989,
834,
13276,
31185,
834,
14315,
16034,
3084,
62,
24591,
30995,
2414,
62,
16,
33411,
11553,
62,
21426,
796,
366,
34,
320,
32810,
2254,
1
] |
In what Week was the Result W 24-17? | SELECT MAX(week) FROM table_name_65 WHERE result = "w 24-17" | [
818,
644,
6119,
373,
262,
25414,
370,
1987,
12,
1558,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
1255,
796,
366,
86,
1987,
12,
1558,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
6119,
373,
262,
25414,
370,
1987,
12,
1558,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
1255,
796,
366,
86,
1987,
12,
1558,
1
] |
For those records from the products and each product's manufacturer, show me about the distribution of name and price , and group by attribute name in a bar chart, and rank in asc by the y axis. | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Price | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
905,
502,
546,
262,
6082,
286,
1438,
290,
2756,
837,
290,
1448,
416,
11688,
1438,
287,
257,
2318,
8262,
11,
290,
4279,
287,
10570,
416,
262,
331,
16488,
13,
46506,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
905,
502,
546,
262,
6082,
286,
1438,
290,
2756,
837,
290,
1448,
416,
11688,
1438,
287,
257,
2318,
8262,
11,
290,
4279,
287,
10570,
416,
262,
331,
16488,
13,
46506,
30... |
Which player(s) played at Howard college? | SELECT "Player" FROM table_31484 WHERE "College" = 'Howard' | [
13828,
2137,
7,
82,
8,
2826,
379,
8442,
4152,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
33638,
5705,
33411,
366,
38951,
1,
796,
705,
32434,
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
] | [
13828,
2137,
7,
82,
8,
2826,
379,
8442,
4152,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
33638,
5705,
33411,
366,
38951,
1,
796,
705,
32434,
6
] |
provide the number of patients whose year of birth is less than 2109 and item id is 50902? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2109" AND lab.itemid = "50902" | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
14454,
290,
2378,
4686,
318,
2026,
24,
2999,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
14454,
290,
2378,
4686,
318,
2026,
24,
2999,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
which team came in first as champion ? | SELECT "team" FROM table_204_288 WHERE "finished" = 'champion' | [
4758,
1074,
1625,
287,
717,
355,
8783,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
25270,
33411,
366,
43952,
1,
796,
705,
354,
6734,
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
] | [
4758,
1074,
1625,
287,
717,
355,
8783,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
25270,
33411,
366,
43952,
1,
796,
705,
354,
6734,
6
] |
What is the earliest season with more than 14 races and more than 4 podiums? | SELECT MIN(season) FROM table_name_72 WHERE races > 14 AND podiums > 4 | [
2061,
318,
262,
14555,
1622,
351,
517,
621,
1478,
9558,
290,
517,
621,
604,
27941,
82,
30,
46506,
20625,
7,
6230,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
9558,
1875,
1478,
5357,
27941,
82,
1875,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14555,
1622,
351,
517,
621,
1478,
9558,
290,
517,
621,
604,
27941,
82,
30,
46506,
20625,
7,
6230,
8,
16034,
3084,
62,
3672,
62,
4761,
33411,
9558,
1875,
1478,
5357,
27941,
82,
1875,
604
] |
Which poll source has a lead of 17? | SELECT poll_source FROM table_name_87 WHERE lead_margin = 17 | [
13828,
3278,
2723,
468,
257,
1085,
286,
1596,
30,
46506,
3278,
62,
10459,
16034,
3084,
62,
3672,
62,
5774,
33411,
1085,
62,
36153,
796,
1596
] | [
1,
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,
2723,
468,
257,
1085,
286,
1596,
30,
46506,
3278,
62,
10459,
16034,
3084,
62,
3672,
62,
5774,
33411,
1085,
62,
36153,
796,
1596
] |
For each distinct test result, find the number of students who got the result. | SELECT test_result, COUNT(*) FROM student_tests_taken GROUP BY test_result ORDER BY COUNT(*) DESC | [
1890,
1123,
7310,
1332,
1255,
11,
1064,
262,
1271,
286,
2444,
508,
1392,
262,
1255,
13,
46506,
1332,
62,
20274,
11,
327,
28270,
7,
28104,
16034,
3710,
62,
41989,
62,
83,
1685,
44441,
11050,
1332,
62,
20274,
38678,
11050,
327,
28270,
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
] | [
1890,
1123,
7310,
1332,
1255,
11,
1064,
262,
1271,
286,
2444,
508,
1392,
262,
1255,
13,
46506,
1332,
62,
20274,
11,
327,
28270,
7,
28104,
16034,
3710,
62,
41989,
62,
83,
1685,
44441,
11050,
1332,
62,
20274,
38678,
11050,
327,
28270,
7... |
What is the total number of 1876(s), when 1872 is less than 1921, and when 1891 is less than 354? | SELECT COUNT("1876") FROM table_42562 WHERE "1872" < '1921' AND "1891" < '354' | [
2061,
318,
262,
2472,
1271,
286,
1248,
4304,
7,
82,
828,
618,
1248,
4761,
318,
1342,
621,
35369,
11,
290,
618,
1248,
6420,
318,
1342,
621,
46752,
30,
46506,
327,
28270,
7203,
1507,
4304,
4943,
16034,
3084,
62,
32114,
5237,
33411,
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
] | [
2061,
318,
262,
2472,
1271,
286,
1248,
4304,
7,
82,
828,
618,
1248,
4761,
318,
1342,
621,
35369,
11,
290,
618,
1248,
6420,
318,
1342,
621,
46752,
30,
46506,
327,
28270,
7203,
1507,
4304,
4943,
16034,
3084,
62,
32114,
5237,
33411,
366,... |
What is the Date for the Home team West Ham United | SELECT date FROM table_name_70 WHERE home_team = "west ham united" | [
2061,
318,
262,
7536,
329,
262,
5995,
1074,
2688,
4345,
1578,
46506,
3128,
16034,
3084,
62,
3672,
62,
2154,
33411,
1363,
62,
15097,
796,
366,
7038,
8891,
16503,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
329,
262,
5995,
1074,
2688,
4345,
1578,
46506,
3128,
16034,
3084,
62,
3672,
62,
2154,
33411,
1363,
62,
15097,
796,
366,
7038,
8891,
16503,
1
] |
count the number of patients with inpatient hospital admission who have lab test item id 51301. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND lab.itemid = "51301" | [
9127,
262,
1271,
286,
3871,
351,
287,
26029,
4436,
13938,
508,
423,
2248,
1332,
2378,
4686,
642,
1485,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
351,
287,
26029,
4436,
13938,
508,
423,
2248,
1332,
2378,
4686,
642,
1485,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
61... |
for patients who were diagnosed in 2102 with dermatophytosis of body, what were the top five most frequent specimen tests that followed within 2 months? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime 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_... | [
1640,
3871,
508,
547,
14641,
287,
362,
15377,
351,
40363,
16982,
83,
5958,
286,
1767,
11,
644,
547,
262,
1353,
1936,
749,
10792,
31674,
5254,
326,
3940,
1626,
362,
1933,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
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... | [
1640,
3871,
508,
547,
14641,
287,
362,
15377,
351,
40363,
16982,
83,
5958,
286,
1767,
11,
644,
547,
262,
1353,
1936,
749,
10792,
31674,
5254,
326,
3940,
1626,
362,
1933,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
... |
What is the sum of Sylvain Guintoli's laps? | SELECT SUM(laps) FROM table_name_8 WHERE rider = "sylvain guintoli" | [
2061,
318,
262,
2160,
286,
24286,
391,
1962,
600,
11106,
338,
24590,
30,
46506,
35683,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
17876,
796,
366,
9163,
391,
915,
600,
11106,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
24286,
391,
1962,
600,
11106,
338,
24590,
30,
46506,
35683,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
17876,
796,
366,
9163,
391,
915,
600,
11106,
1
] |
How many patients who had open biopsy of liver were discharged to home health care? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.long_title = "Open biopsy of liver" | [
2437,
867,
3871,
508,
550,
1280,
3182,
44522,
286,
14383,
547,
26476,
284,
1363,
1535,
1337,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
508,
550,
1280,
3182,
44522,
286,
14383,
547,
26476,
284,
1363,
1535,
1337,
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,
... |
What are the names of all the stores in the largest district by population? | SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1) | [
2061,
389,
262,
3891,
286,
477,
262,
7000,
287,
262,
4387,
4783,
416,
3265,
30,
46506,
256,
16,
13,
8095,
62,
3672,
16034,
3650,
7054,
256,
16,
32357,
1268,
3650,
62,
17080,
2012,
7054,
256,
17,
6177,
256,
16,
13,
8095,
62,
312,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
3891,
286,
477,
262,
7000,
287,
262,
4387,
4783,
416,
3265,
30,
46506,
256,
16,
13,
8095,
62,
3672,
16034,
3650,
7054,
256,
16,
32357,
1268,
3650,
62,
17080,
2012,
7054,
256,
17,
6177,
256,
16,
13,
8095,
62,
312,
7... |
A pie chart shows the proportion of state and enr. | SELECT state, enr FROM College ORDER BY enr | [
32,
2508,
8262,
2523,
262,
9823,
286,
1181,
290,
551,
81,
13,
46506,
1181,
11,
551,
81,
16034,
5535,
38678,
11050,
551,
81
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2508,
8262,
2523,
262,
9823,
286,
1181,
290,
551,
81,
13,
46506,
1181,
11,
551,
81,
16034,
5535,
38678,
11050,
551,
81
] |
what are the number of runners up did arsenal have ? | SELECT "runners-up" FROM table_204_448 WHERE "team" = 'arsenal' | [
10919,
389,
262,
1271,
286,
19323,
510,
750,
24375,
423,
5633,
46506,
366,
36740,
12,
929,
1,
16034,
3084,
62,
18638,
62,
31115,
33411,
366,
15097,
1,
796,
705,
945,
268,
282,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
262,
1271,
286,
19323,
510,
750,
24375,
423,
5633,
46506,
366,
36740,
12,
929,
1,
16034,
3084,
62,
18638,
62,
31115,
33411,
366,
15097,
1,
796,
705,
945,
268,
282,
6
] |
Which teams used Wally Rogers as their crew chief? | SELECT team FROM table_1266602_2 WHERE crew_chief = "Wally Rogers" | [
13828,
3466,
973,
50117,
15372,
355,
511,
5462,
4039,
30,
46506,
1074,
16034,
3084,
62,
1065,
2791,
31418,
62,
17,
33411,
5462,
62,
17351,
796,
366,
54,
453,
15372,
1
] | [
1,
1,
1,
1,
1,
1,
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,
3466,
973,
50117,
15372,
355,
511,
5462,
4039,
30,
46506,
1074,
16034,
3084,
62,
1065,
2791,
31418,
62,
17,
33411,
5462,
62,
17351,
796,
366,
54,
453,
15372,
1
] |
What's the transfer window that ends in 2012? | SELECT "Transfer window" FROM table_44656 WHERE "Ends" = '2012' | [
2061,
338,
262,
4351,
4324,
326,
5645,
287,
2321,
30,
46506,
366,
43260,
4324,
1,
16034,
3084,
62,
2598,
37466,
33411,
366,
12915,
82,
1,
796,
705,
6999,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
4351,
4324,
326,
5645,
287,
2321,
30,
46506,
366,
43260,
4324,
1,
16034,
3084,
62,
2598,
37466,
33411,
366,
12915,
82,
1,
796,
705,
6999,
6
] |
What feature is at latitude 23.9S? | SELECT name FROM table_16799784_13 WHERE latitude = "23.9S" | [
2061,
3895,
318,
379,
32477,
2242,
13,
24,
50,
30,
46506,
1438,
16034,
3084,
62,
21940,
2079,
37688,
62,
1485,
33411,
32477,
796,
366,
1954,
13,
24,
50,
1
] | [
1,
1,
1,
1,
1,
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,
3895,
318,
379,
32477,
2242,
13,
24,
50,
30,
46506,
1438,
16034,
3084,
62,
21940,
2079,
37688,
62,
1485,
33411,
32477,
796,
366,
1954,
13,
24,
50,
1
] |
Name the high reobounds for april 7 | SELECT high_rebounds FROM table_17058178_11 WHERE date = "April 7" | [
5376,
262,
1029,
302,
672,
3733,
329,
46593,
346,
767,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
1558,
2713,
23,
23188,
62,
1157,
33411,
3128,
796,
366,
16784,
767,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1029,
302,
672,
3733,
329,
46593,
346,
767,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
1558,
2713,
23,
23188,
62,
1157,
33411,
3128,
796,
366,
16784,
767,
1
] |
What season did a United States center play in? | SELECT season FROM table_name_46 WHERE nationality = "united states" AND position = "center" | [
2061,
1622,
750,
257,
1578,
1829,
3641,
711,
287,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
3510,
33411,
29835,
796,
366,
41187,
2585,
1,
5357,
2292,
796,
366,
16159,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1622,
750,
257,
1578,
1829,
3641,
711,
287,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
3510,
33411,
29835,
796,
366,
41187,
2585,
1,
5357,
2292,
796,
366,
16159,
1
] |
I want to know the sum of fa cup goals for david mirfin and total goals less than 1 | SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 1 | [
40,
765,
284,
760,
262,
2160,
286,
24685,
6508,
4661,
329,
21970,
5720,
15643,
290,
2472,
4661,
1342,
621,
352,
46506,
35683,
7,
13331,
62,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1438,
796,
366,
67,
8490,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
284,
760,
262,
2160,
286,
24685,
6508,
4661,
329,
21970,
5720,
15643,
290,
2472,
4661,
1342,
621,
352,
46506,
35683,
7,
13331,
62,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1438,
796,
366,
67,
8490,
5... |
What are incumbent William Vandever's results? | SELECT "Result" FROM table_37699 WHERE "Incumbent" = 'william vandever' | [
2061,
389,
23526,
3977,
35464,
964,
338,
2482,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
32128,
2079,
33411,
366,
25517,
2178,
298,
1,
796,
705,
10594,
1789,
410,
392,
964,
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,
389,
23526,
3977,
35464,
964,
338,
2482,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
32128,
2079,
33411,
366,
25517,
2178,
298,
1,
796,
705,
10594,
1789,
410,
392,
964,
6
] |
On Mondays and Wednesdays would I be able to take 587 ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.friday = 'N' AND course_offering.monday = 'Y' AND course_offering.thursday = 'N' AND course_offering.tuesday = 'N' AND course_offering.wednesday = 'Y' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND cour... | [
2202,
49748,
290,
3300,
2516,
12545,
561,
314,
307,
1498,
284,
1011,
642,
5774,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
8310,
2567,
796,
705,
45,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2202,
49748,
290,
3300,
2516,
12545,
561,
314,
307,
1498,
284,
1011,
642,
5774,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
8310,
2567,
796,
705,
45,... |
What is the roll number for East Gore School? | SELECT COUNT(roll) FROM table_name_21 WHERE name = "east gore school" | [
2061,
318,
262,
4836,
1271,
329,
3687,
17557,
3961,
30,
46506,
327,
28270,
7,
2487,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
1438,
796,
366,
23316,
46835,
1524,
1
] | [
1,
1,
1,
1,
1,
1,
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,
4836,
1271,
329,
3687,
17557,
3961,
30,
46506,
327,
28270,
7,
2487,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
1438,
796,
366,
23316,
46835,
1524,
1
] |
Show the race class and number of races in each class with a bar chart, and list x axis in asc order please. | SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY Class | [
15307,
262,
3234,
1398,
290,
1271,
286,
9558,
287,
1123,
1398,
351,
257,
2318,
8262,
11,
290,
1351,
2124,
16488,
287,
10570,
1502,
3387,
13,
46506,
5016,
11,
327,
28270,
7,
28104,
16034,
3234,
44441,
11050,
5016,
38678,
11050,
5016
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
3234,
1398,
290,
1271,
286,
9558,
287,
1123,
1398,
351,
257,
2318,
8262,
11,
290,
1351,
2124,
16488,
287,
10570,
1502,
3387,
13,
46506,
5016,
11,
327,
28270,
7,
28104,
16034,
3234,
44441,
11050,
5016,
38678,
11050,
5016
] |
What is the total number of deaths and damage for all storms with a max speed greater than the average? | SELECT SUM(number_deaths), SUM(damage_millions_usd) FROM storm WHERE max_speed > (SELECT AVG(max_speed) FROM storm) | [
2061,
318,
262,
2472,
1271,
286,
7040,
290,
2465,
329,
477,
20228,
351,
257,
3509,
2866,
3744,
621,
262,
2811,
30,
46506,
35683,
7,
17618,
62,
22595,
82,
828,
35683,
7,
28735,
62,
17805,
507,
62,
385,
67,
8,
16034,
6388,
33411,
3509... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7040,
290,
2465,
329,
477,
20228,
351,
257,
3509,
2866,
3744,
621,
262,
2811,
30,
46506,
35683,
7,
17618,
62,
22595,
82,
828,
35683,
7,
28735,
62,
17805,
507,
62,
385,
67,
8,
16034,
6388,
33411,
3509... |
In 539 is there an exam set up by Prof. Charles Peters ? | SELECT DISTINCT course_offering.has_final_exam FROM course_offering INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHER... | [
818,
642,
2670,
318,
612,
281,
2814,
900,
510,
416,
4415,
13,
7516,
15722,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
10134,
62,
20311,
62,
1069,
321,
16034,
1781,
62,
2364,
1586,
3268,
21479,
32357,
1268,
1781,
617... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
642,
2670,
318,
612,
281,
2814,
900,
510,
416,
4415,
13,
7516,
15722,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
10134,
62,
20311,
62,
1069,
321,
16034,
1781,
62,
2364,
1586,
3268,
21479,
32357,
1268,
1781,
617... |
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, draw a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, and could you rank by the Y-axis in desc? | 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,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,... |
Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments. Plot them as bar chart. | SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) | [
13615,
1123,
7962,
2099,
2438,
351,
262,
1271,
286,
19592,
1719,
326,
7962,
2099,
11,
287,
41988,
1502,
286,
262,
1271,
286,
19592,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
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
] | [
13615,
1123,
7962,
2099,
2438,
351,
262,
1271,
286,
19592,
1719,
326,
7962,
2099,
11,
287,
41988,
1502,
286,
262,
1271,
286,
19592,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034... |
What is the build date for PRR Class gf30a? | SELECT build_date FROM table_name_80 WHERE prr_class = "gf30a" | [
2061,
318,
262,
1382,
3128,
329,
4810,
49,
5016,
308,
69,
1270,
64,
30,
46506,
1382,
62,
4475,
16034,
3084,
62,
3672,
62,
1795,
33411,
778,
81,
62,
4871,
796,
366,
70,
69,
1270,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1382,
3128,
329,
4810,
49,
5016,
308,
69,
1270,
64,
30,
46506,
1382,
62,
4475,
16034,
3084,
62,
3672,
62,
1795,
33411,
778,
81,
62,
4871,
796,
366,
70,
69,
1270,
64,
1
] |
What is the total associated with a Clean & jerk of 135, and a Snatch of 115? | SELECT "Total (kg)" FROM table_56018 WHERE "Clean & jerk" = '135' AND "Snatch" = '115' | [
2061,
318,
262,
2472,
3917,
351,
257,
5985,
1222,
29757,
286,
17501,
11,
290,
257,
5489,
963,
286,
12279,
30,
46506,
366,
14957,
357,
10025,
16725,
16034,
3084,
62,
3980,
29159,
33411,
366,
32657,
1222,
29757,
1,
796,
705,
17059,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
3917,
351,
257,
5985,
1222,
29757,
286,
17501,
11,
290,
257,
5489,
963,
286,
12279,
30,
46506,
366,
14957,
357,
10025,
16725,
16034,
3084,
62,
3980,
29159,
33411,
366,
32657,
1222,
29757,
1,
796,
705,
17059,
6,
5... |
Can you tell me the Record that has the Date of january 29? | SELECT "Record" FROM table_46213 WHERE "Date" = 'january 29' | [
6090,
345,
1560,
502,
262,
13266,
326,
468,
262,
7536,
286,
42897,
2838,
2808,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3510,
26427,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
2808,
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
] | [
6090,
345,
1560,
502,
262,
13266,
326,
468,
262,
7536,
286,
42897,
2838,
2808,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3510,
26427,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
2808,
6
] |
What is the latitude when the diameter is 184.0? | SELECT "Latitude" FROM table_21058 WHERE "Diameter" = '184.0' | [
2061,
318,
262,
32477,
618,
262,
14753,
318,
28598,
13,
15,
30,
46506,
366,
24220,
3984,
1,
16034,
3084,
62,
21536,
3365,
33411,
366,
35,
13173,
1,
796,
705,
22883,
13,
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
] | [
2061,
318,
262,
32477,
618,
262,
14753,
318,
28598,
13,
15,
30,
46506,
366,
24220,
3984,
1,
16034,
3084,
62,
21536,
3365,
33411,
366,
35,
13173,
1,
796,
705,
22883,
13,
15,
6
] |
What was the election date for H. Brent Coles? | SELECT "Date of Election" FROM table_18048 WHERE "Appointed Successor" = 'H. Brent Coles' | [
2061,
373,
262,
3071,
3128,
329,
367,
13,
23357,
1623,
274,
30,
46506,
366,
10430,
286,
14219,
1,
16034,
3084,
62,
15259,
2780,
33411,
366,
4677,
20909,
16282,
273,
1,
796,
705,
39,
13,
23357,
1623,
274,
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
] | [
2061,
373,
262,
3071,
3128,
329,
367,
13,
23357,
1623,
274,
30,
46506,
366,
10430,
286,
14219,
1,
16034,
3084,
62,
15259,
2780,
33411,
366,
4677,
20909,
16282,
273,
1,
796,
705,
39,
13,
23357,
1623,
274,
6
] |
Which Club/province has a Position of centre, and Caps of 27? | SELECT "Club/province" FROM table_5318 WHERE "Position" = 'centre' AND "Caps" = '27' | [
13828,
6289,
14,
15234,
924,
468,
257,
23158,
286,
7372,
11,
290,
23534,
286,
2681,
30,
46506,
366,
42350,
14,
15234,
924,
1,
16034,
3084,
62,
4310,
1507,
33411,
366,
26545,
1,
796,
705,
1087,
260,
6,
5357,
366,
34,
1686,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6289,
14,
15234,
924,
468,
257,
23158,
286,
7372,
11,
290,
23534,
286,
2681,
30,
46506,
366,
42350,
14,
15234,
924,
1,
16034,
3084,
62,
4310,
1507,
33411,
366,
26545,
1,
796,
705,
1087,
260,
6,
5357,
366,
34,
1686,
1,
796,
... |
Who was the athlete from Germany with notes of Q? | SELECT "Athlete" FROM table_65951 WHERE "Notes" = 'q' AND "Country" = 'germany' | [
8241,
373,
262,
16076,
422,
4486,
351,
4710,
286,
1195,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
2996,
50119,
33411,
366,
16130,
1,
796,
705,
80,
6,
5357,
366,
33921,
1,
796,
705,
1362,
21834,
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
] | [
8241,
373,
262,
16076,
422,
4486,
351,
4710,
286,
1195,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
2996,
50119,
33411,
366,
16130,
1,
796,
705,
80,
6,
5357,
366,
33921,
1,
796,
705,
1362,
21834,
6
] |
Which score has a Record of 44-49? | SELECT "Score" FROM table_72047 WHERE "Record" = '44-49' | [
13828,
4776,
468,
257,
13266,
286,
5846,
12,
2920,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
23906,
2857,
33411,
366,
23739,
1,
796,
705,
2598,
12,
2920,
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
] | [
13828,
4776,
468,
257,
13266,
286,
5846,
12,
2920,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
23906,
2857,
33411,
366,
23739,
1,
796,
705,
2598,
12,
2920,
6
] |
Count the number of accounts corresponding to each customer id. Plot them as scatter chart. | SELECT COUNT(*), customer_id FROM Accounts GROUP BY customer_id | [
12332,
262,
1271,
286,
5504,
11188,
284,
1123,
6491,
4686,
13,
28114,
606,
355,
41058,
8262,
13,
46506,
327,
28270,
46491,
828,
6491,
62,
312,
16034,
35584,
44441,
11050,
6491,
62,
312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
5504,
11188,
284,
1123,
6491,
4686,
13,
28114,
606,
355,
41058,
8262,
13,
46506,
327,
28270,
46491,
828,
6491,
62,
312,
16034,
35584,
44441,
11050,
6491,
62,
312
] |
Who was the winner when the finalist was fsv frankfurt? | SELECT "Winner" FROM table_48698 WHERE "Finalist" = 'fsv frankfurt' | [
8241,
373,
262,
8464,
618,
262,
2457,
396,
373,
277,
21370,
14346,
29205,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
2780,
39357,
33411,
366,
19006,
396,
1,
796,
705,
9501,
85,
14346,
29205,
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
] | [
8241,
373,
262,
8464,
618,
262,
2457,
396,
373,
277,
21370,
14346,
29205,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
2780,
39357,
33411,
366,
19006,
396,
1,
796,
705,
9501,
85,
14346,
29205,
6
] |
Content removed from posts by other users. | SELECT p.Id AS "post_link", h2.CreationDate AS "Removed on", h2.UserId AS "user_link", h2.Comment AS "Edit summary" FROM PostHistory AS h1 INNER JOIN Posts AS p ON h1.PostId = p.Id JOIN LATERAL (SELECT Text, UserId, CreationDate, Comment FROM PostHistory WHERE PostId = h1.PostId AND PostHistoryTypeId = 5 AND CreationDa... | [
19746,
4615,
422,
6851,
416,
584,
2985,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
289,
17,
13,
12443,
341,
10430,
7054,
366,
45975,
319,
1600,
289,
17,
13,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
289,
17,
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... | [
19746,
4615,
422,
6851,
416,
584,
2985,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
289,
17,
13,
12443,
341,
10430,
7054,
366,
45975,
319,
1600,
289,
17,
13,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
289,
17,
13,
... |
What Band number has a Power (W) of 400 or less? | SELECT SUM("Band") FROM table_64771 WHERE "Power (W)" < '400' | [
2061,
10243,
1271,
468,
257,
4333,
357,
54,
8,
286,
7337,
393,
1342,
30,
46506,
35683,
7203,
31407,
4943,
16034,
3084,
62,
2414,
46761,
33411,
366,
13434,
357,
54,
16725,
1279,
705,
7029,
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,
10243,
1271,
468,
257,
4333,
357,
54,
8,
286,
7337,
393,
1342,
30,
46506,
35683,
7203,
31407,
4943,
16034,
3084,
62,
2414,
46761,
33411,
366,
13434,
357,
54,
16725,
1279,
705,
7029,
6
] |
what are the five commonly ordered drugs for patients who received non-invasive ventilation previously in the same month, in 2104? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'non-invasive ventilation' AND STRFTIME('%y', treat... | [
10919,
389,
262,
1936,
8811,
6149,
5010,
329,
3871,
508,
2722,
1729,
12,
259,
23747,
34834,
4271,
287,
262,
976,
1227,
11,
287,
362,
13464,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
3672,
11,
360,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1936,
8811,
6149,
5010,
329,
3871,
508,
2722,
1729,
12,
259,
23747,
34834,
4271,
287,
262,
976,
1227,
11,
287,
362,
13464,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
3672,
11,
360,
2... |
which has the same wg as systems and software engineering - system life cycle processes ? | SELECT "title" FROM table_204_200 WHERE "title" <> 'systems and software engineering - system life cycle processes' AND "wg" = (SELECT "wg" FROM table_204_200 WHERE "title" = 'systems and software engineering - system life cycle processes') | [
4758,
468,
262,
976,
266,
70,
355,
3341,
290,
3788,
8705,
532,
1080,
1204,
6772,
7767,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
2167,
33411,
366,
7839,
1,
1279,
29,
705,
10057,
82,
290,
3788,
8705,
532,
1080,
1204,
677... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
262,
976,
266,
70,
355,
3341,
290,
3788,
8705,
532,
1080,
1204,
6772,
7767,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
2167,
33411,
366,
7839,
1,
1279,
29,
705,
10057,
82,
290,
3788,
8705,
532,
1080,
1204,
677... |
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,... |
Let me know the number of patients who have procedure icd9 code 8968. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "8968" | [
5756,
502,
760,
262,
1271,
286,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
9919,
3104,
13,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5756,
502,
760,
262,
1271,
286,
3871,
508,
423,
8771,
14158,
67,
24,
2438,
9919,
3104,
13,
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,... |
Average question score for popular tags. | SELECT T.TagName, T.Count AS tagCount, SUM(P.Score) / CAST(COUNT(P.Score) AS FLOAT) AS avgScore FROM Tags AS T JOIN PostTags AS PT ON PT.TagId = T.Id JOIN Posts AS P ON P.Id = PT.PostId WHERE T.Count > 10 AND P.PostTypeId = 1 GROUP BY T.TagName, T.Count ORDER BY avgScore DESC | [
26287,
1808,
4776,
329,
2968,
15940,
13,
46506,
309,
13,
24835,
5376,
11,
309,
13,
12332,
7054,
7621,
12332,
11,
35683,
7,
47,
13,
26595,
8,
1220,
327,
11262,
7,
34,
28270,
7,
47,
13,
26595,
8,
7054,
9977,
46,
1404,
8,
7054,
42781... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26287,
1808,
4776,
329,
2968,
15940,
13,
46506,
309,
13,
24835,
5376,
11,
309,
13,
12332,
7054,
7621,
12332,
11,
35683,
7,
47,
13,
26595,
8,
1220,
327,
11262,
7,
34,
28270,
7,
47,
13,
26595,
8,
7054,
9977,
46,
1404,
8,
7054,
42781... |
What was the score of the Browns game against the San Francisco 49ers? | SELECT "Result" FROM table_4859 WHERE "Opponent" = 'san francisco 49ers' | [
2061,
373,
262,
4776,
286,
262,
17671,
983,
1028,
262,
2986,
6033,
5125,
364,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2780,
3270,
33411,
366,
27524,
3471,
1,
796,
705,
12807,
46754,
4861,
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
] | [
2061,
373,
262,
4776,
286,
262,
17671,
983,
1028,
262,
2986,
6033,
5125,
364,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2780,
3270,
33411,
366,
27524,
3471,
1,
796,
705,
12807,
46754,
4861,
5125,
364,
6
] |
tell me the total number of patients who are diagnosed with malign neopl ovary until 2102? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'malign neopl ovary') AND STRFTIME('%y', diagnoses_icd.char... | [
33331,
502,
262,
2472,
1271,
286,
3871,
508,
389,
14641,
351,
6428,
570,
497,
20106,
19643,
560,
1566,
362,
15377,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
2472,
1271,
286,
3871,
508,
389,
14641,
351,
6428,
570,
497,
20106,
19643,
560,
1566,
362,
15377,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76... |
What year did Austria-Marlboro BRM get more than 0 points? | SELECT AVG(year) FROM table_name_99 WHERE entrant = "austria-marlboro brm" AND points > 0 | [
2061,
614,
750,
17322,
12,
44,
7063,
21513,
11177,
44,
651,
517,
621,
657,
2173,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
920,
5250,
796,
366,
64,
436,
7496,
12,
3876,
75,
21513,
865,
76,
1,
5357,
2173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
750,
17322,
12,
44,
7063,
21513,
11177,
44,
651,
517,
621,
657,
2173,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
920,
5250,
796,
366,
64,
436,
7496,
12,
3876,
75,
21513,
865,
76,
1,
5357,
2173... |
What is the production code for the episode that had 23.9 million u.s. viewers? | SELECT "Production code" FROM table_29804 WHERE "U.S. viewers (millions)" = '23.9' | [
2061,
318,
262,
3227,
2438,
329,
262,
4471,
326,
550,
2242,
13,
24,
1510,
334,
13,
82,
13,
10209,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
1959,
36088,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3227,
2438,
329,
262,
4471,
326,
550,
2242,
13,
24,
1510,
334,
13,
82,
13,
10209,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
1959,
36088,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
1... |
What venue has 7964 pb notes? | SELECT "Venue" FROM table_13590 WHERE "Notes" = '7964 pb' | [
2061,
14359,
468,
9225,
2414,
279,
65,
4710,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
1485,
36993,
33411,
366,
16130,
1,
796,
705,
3720,
2414,
279,
65,
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,
14359,
468,
9225,
2414,
279,
65,
4710,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
1485,
36993,
33411,
366,
16130,
1,
796,
705,
3720,
2414,
279,
65,
6
] |
What's Round has a Surface of hard and Opponent of Jelena Simic? | SELECT round FROM table_name_51 WHERE surface = "hard" AND opponent = "jelena simic" | [
2061,
338,
10485,
468,
257,
20321,
286,
1327,
290,
9385,
3471,
286,
449,
417,
8107,
3184,
291,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
4349,
33411,
4417,
796,
366,
10424,
1,
5357,
6125,
796,
366,
73,
417,
8107,
985,
291,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10485,
468,
257,
20321,
286,
1327,
290,
9385,
3471,
286,
449,
417,
8107,
3184,
291,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
4349,
33411,
4417,
796,
366,
10424,
1,
5357,
6125,
796,
366,
73,
417,
8107,
985,
291,
1
] |
count the number of patients whose diagnosis icd9 code is 3079 and lab test fluid is cerebrospinal fluid (csf). | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "3079" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
9127,
262,
1271,
286,
3871,
3025,
13669,
14158,
67,
24,
2438,
318,
1542,
3720,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
737,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
13669,
14158,
67,
24,
2438,
318,
1542,
3720,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
737,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... |
Find the number of scientists involved for the projects that require more than 300 hours Show bar chart, and list X-axis in ascending order. | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name ORDER BY Name | [
16742,
262,
1271,
286,
5519,
2950,
329,
262,
4493,
326,
2421,
517,
621,
5867,
2250,
5438,
2318,
8262,
11,
290,
1351,
1395,
12,
22704,
287,
41988,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
29898,
7054,
309,
16,
32357,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
5519,
2950,
329,
262,
4493,
326,
2421,
517,
621,
5867,
2250,
5438,
2318,
8262,
11,
290,
1351,
1395,
12,
22704,
287,
41988,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
29898,
7054,
309,
16,
32357,
126... |
What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation? | SELECT branding FROM table_name_80 WHERE owner = "canadian broadcasting corporation" AND frequency = "fm 97.7" | [
2061,
318,
262,
24150,
286,
262,
18695,
10111,
13,
22,
4429,
6898,
416,
262,
5398,
32250,
10501,
30,
46506,
24150,
16034,
3084,
62,
3672,
62,
1795,
33411,
4870,
796,
366,
5171,
18425,
22978,
12017,
1,
5357,
8373,
796,
366,
38353,
10111,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24150,
286,
262,
18695,
10111,
13,
22,
4429,
6898,
416,
262,
5398,
32250,
10501,
30,
46506,
24150,
16034,
3084,
62,
3672,
62,
1795,
33411,
4870,
796,
366,
5171,
18425,
22978,
12017,
1,
5357,
8373,
796,
366,
38353,
10111,... |
who was the opponent during for first week ? | SELECT "opponent" FROM table_203_775 WHERE "week" = 1 | [
8727,
373,
262,
6125,
1141,
329,
717,
1285,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
34483,
33411,
366,
10464,
1,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
262,
6125,
1141,
329,
717,
1285,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
34483,
33411,
366,
10464,
1,
796,
352
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.