instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat | SELECT COUNT(score_in_final) FROM table_23197088_4 WHERE opponents_in_final = "Alexandra Fusai Nathalie Tauziat" | [
292,
318,
262,
12040,
4996,
286,
4776,
1022,
8713,
262,
1295,
7691,
1022,
5637,
318,
257,
2588,
15918,
277,
385,
1872,
299,
776,
282,
494,
256,
559,
89,
5375,
46506,
327,
28270,
7,
26675,
62,
259,
62,
20311,
8,
16034,
3084,
62,
1954... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
292,
318,
262,
12040,
4996,
286,
4776,
1022,
8713,
262,
1295,
7691,
1022,
5637,
318,
257,
2588,
15918,
277,
385,
1872,
299,
776,
282,
494,
256,
559,
89,
5375,
46506,
327,
28270,
7,
26675,
62,
259,
62,
20311,
8,
16034,
3084,
62,
1954... |
Votes per voter over time. | SELECT DATEADD(m, DATEDIFF(m, 0, CreationDate), 0) AS month, CAST(SUM(CASE WHEN v.VoteTypeId = 2 THEN 1 ELSE 0 END) AS FLOAT) / COUNT(DISTINCT p.OwnerUserId) AS upvotes_per_poster, CAST(SUM(CASE WHEN v.VoteTypeId = 3 THEN 1 ELSE 0 END) AS FLOAT) / COUNT(DISTINCT p.OwnerUserId) AS downvotes_per_poster, CAST(COUNT(DISTIN... | [
53,
6421,
583,
10765,
625,
640,
13,
46506,
360,
6158,
29266,
7,
76,
11,
360,
11617,
29267,
7,
76,
11,
657,
11,
21582,
10430,
828,
657,
8,
7054,
1227,
11,
327,
11262,
7,
50,
5883,
7,
34,
11159,
42099,
410,
13,
37394,
6030,
7390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
53,
6421,
583,
10765,
625,
640,
13,
46506,
360,
6158,
29266,
7,
76,
11,
360,
11617,
29267,
7,
76,
11,
657,
11,
21582,
10430,
828,
657,
8,
7054,
1227,
11,
327,
11262,
7,
50,
5883,
7,
34,
11159,
42099,
410,
13,
37394,
6030,
7390,
... |
What was the attendance for the game when the challenge leader was at Big East (4-2)? | SELECT MAX("Attendance") FROM table_23749 WHERE "Challenge Leader" = 'Big East (4-2)' | [
2061,
373,
262,
14858,
329,
262,
983,
618,
262,
4427,
3554,
373,
379,
4403,
3687,
357,
19,
12,
17,
19427,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
24693,
2920,
33411,
366,
41812,
3540,
10540,
1,
796,
705,
12804,
3687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14858,
329,
262,
983,
618,
262,
4427,
3554,
373,
379,
4403,
3687,
357,
19,
12,
17,
19427,
46506,
25882,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
24693,
2920,
33411,
366,
41812,
3540,
10540,
1,
796,
705,
12804,
3687... |
Who was the centerfold model when the issue's pictorial was amanda beard, reby sky , girls of montauk ? | SELECT "Centerfold model" FROM table_72701 WHERE "Pictorials" = 'Amanda Beard, Reby Sky , Girls of Montauk' | [
8241,
373,
262,
3641,
11379,
2746,
618,
262,
2071,
338,
2862,
5132,
373,
716,
5282,
21213,
11,
302,
1525,
6766,
837,
4813,
286,
40689,
559,
74,
5633,
46506,
366,
23656,
11379,
2746,
1,
16034,
3084,
62,
47760,
486,
33411,
366,
21300,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
3641,
11379,
2746,
618,
262,
2071,
338,
2862,
5132,
373,
716,
5282,
21213,
11,
302,
1525,
6766,
837,
4813,
286,
40689,
559,
74,
5633,
46506,
366,
23656,
11379,
2746,
1,
16034,
3084,
62,
47760,
486,
33411,
366,
21300,
5... |
How did the season with 7-2 conference record ed? | SELECT result FROM table_20319085_2 WHERE conference_record = "7-2" | [
2437,
750,
262,
1622,
351,
767,
12,
17,
4495,
1700,
1225,
30,
46506,
1255,
16034,
3084,
62,
22416,
1129,
2919,
20,
62,
17,
33411,
4495,
62,
22105,
796,
366,
22,
12,
17,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
750,
262,
1622,
351,
767,
12,
17,
4495,
1700,
1225,
30,
46506,
1255,
16034,
3084,
62,
22416,
1129,
2919,
20,
62,
17,
33411,
4495,
62,
22105,
796,
366,
22,
12,
17,
1
] |
Which year was the film Rang Barse introduced? | SELECT COUNT(year) FROM table_name_63 WHERE film_name = "rang barse" | [
13828,
614,
373,
262,
2646,
371,
648,
2409,
325,
5495,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
2646,
62,
3672,
796,
366,
36985,
2318,
325,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
614,
373,
262,
2646,
371,
648,
2409,
325,
5495,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
2646,
62,
3672,
796,
366,
36985,
2318,
325,
1
] |
What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? | SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress" | [
2061,
20843,
17741,
706,
5816,
550,
13085,
64,
7802,
19332,
329,
6705,
44188,
47144,
30,
46506,
6268,
62,
34053,
16034,
3084,
62,
3672,
62,
2154,
33411,
614,
1875,
5816,
5357,
1255,
796,
366,
26601,
3898,
1,
5357,
8674,
796,
366,
17069,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20843,
17741,
706,
5816,
550,
13085,
64,
7802,
19332,
329,
6705,
44188,
47144,
30,
46506,
6268,
62,
34053,
16034,
3084,
62,
3672,
62,
2154,
33411,
614,
1875,
5816,
5357,
1255,
796,
366,
26601,
3898,
1,
5357,
8674,
796,
366,
17069,... |
what is the total number of priests that have held the job in resita ? | SELECT COUNT("first name") FROM table_204_734 | [
10919,
318,
262,
2472,
1271,
286,
17345,
326,
423,
2714,
262,
1693,
287,
581,
5350,
5633,
46506,
327,
28270,
7203,
11085,
1438,
4943,
16034,
3084,
62,
18638,
62,
22,
2682
] | [
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
17345,
326,
423,
2714,
262,
1693,
287,
581,
5350,
5633,
46506,
327,
28270,
7203,
11085,
1438,
4943,
16034,
3084,
62,
18638,
62,
22,
2682
] |
What was the Home team score against an Away team score of 8.15 (63)? | SELECT "Home team score" FROM table_4836 WHERE "Away team score" = '8.15 (63)' | [
2061,
373,
262,
5995,
1074,
4776,
1028,
281,
21986,
1074,
4776,
286,
807,
13,
1314,
357,
5066,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2780,
2623,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
23,
13,
1314,
357,
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
] | [
2061,
373,
262,
5995,
1074,
4776,
1028,
281,
21986,
1074,
4776,
286,
807,
13,
1314,
357,
5066,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2780,
2623,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
23,
13,
1314,
357,
5... |
What is average salary of the players in the team named 'Boston Red Stockings' ? | SELECT AVG(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' | [
2061,
318,
2811,
9588,
286,
262,
1938,
287,
262,
1074,
3706,
705,
31710,
2297,
10500,
654,
6,
5633,
46506,
35224,
7,
51,
16,
13,
21680,
560,
8,
16034,
9588,
7054,
309,
16,
32357,
1268,
1074,
7054,
309,
17,
6177,
309,
16,
13,
15097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
9588,
286,
262,
1938,
287,
262,
1074,
3706,
705,
31710,
2297,
10500,
654,
6,
5633,
46506,
35224,
7,
51,
16,
13,
21680,
560,
8,
16034,
9588,
7054,
309,
16,
32357,
1268,
1074,
7054,
309,
17,
6177,
309,
16,
13,
15097,
... |
What are the total number of losses for the team who has conceded 22? | SELECT COUNT("Loses") FROM table_1404 WHERE "Goals conceded" = '22' | [
2061,
389,
262,
2472,
1271,
286,
9089,
329,
262,
1074,
508,
468,
24684,
2534,
30,
46506,
327,
28270,
7203,
43,
4629,
4943,
16034,
3084,
62,
1415,
3023,
33411,
366,
5247,
874,
24684,
1,
796,
705,
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,
1,
1
] | [
2061,
389,
262,
2472,
1271,
286,
9089,
329,
262,
1074,
508,
468,
24684,
2534,
30,
46506,
327,
28270,
7203,
43,
4629,
4943,
16034,
3084,
62,
1415,
3023,
33411,
366,
5247,
874,
24684,
1,
796,
705,
1828,
6
] |
What is the central word for 'robbers'? | SELECT "Central" FROM table_28814 WHERE "English" = 'robbers' | [
2061,
318,
262,
4318,
1573,
329,
705,
22609,
1213,
30960,
46506,
366,
30645,
1,
16034,
3084,
62,
25270,
1415,
33411,
366,
15823,
1,
796,
705,
22609,
1213,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4318,
1573,
329,
705,
22609,
1213,
30960,
46506,
366,
30645,
1,
16034,
3084,
62,
25270,
1415,
33411,
366,
15823,
1,
796,
705,
22609,
1213,
6
] |
Name the sum of points for 1984 | SELECT SUM(points) FROM table_name_95 WHERE year < 1984 | [
5376,
262,
2160,
286,
2173,
329,
12844,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
614,
1279,
12844
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2160,
286,
2173,
329,
12844,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
614,
1279,
12844
] |
list the flight from PHILADELPHIA to SAN FRANCISCO on AA | 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, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | [
4868,
262,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
319,
317,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
262,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
319,
317,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
1... |
What is the qual 1 with a 1:09.567 best? | SELECT "Qual 1" FROM table_44321 WHERE "Best" = '1:09.567' | [
2061,
318,
262,
4140,
352,
351,
257,
352,
25,
2931,
13,
20,
3134,
1266,
30,
46506,
366,
46181,
352,
1,
16034,
3084,
62,
34938,
2481,
33411,
366,
13014,
1,
796,
705,
16,
25,
2931,
13,
20,
3134,
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,
318,
262,
4140,
352,
351,
257,
352,
25,
2931,
13,
20,
3134,
1266,
30,
46506,
366,
46181,
352,
1,
16034,
3084,
62,
34938,
2481,
33411,
366,
13014,
1,
796,
705,
16,
25,
2931,
13,
20,
3134,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about the sum of employee_id over the hire_date bin hire_date by weekday by a bar chart, rank Y-axis from low to high order. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,... |
what game was on may 29 | SELECT result FROM table_name_5 WHERE date = "may 29" | [
10919,
983,
373,
319,
743,
2808,
46506,
1255,
16034,
3084,
62,
3672,
62,
20,
33411,
3128,
796,
366,
11261,
2808,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
983,
373,
319,
743,
2808,
46506,
1255,
16034,
3084,
62,
3672,
62,
20,
33411,
3128,
796,
366,
11261,
2808,
1
] |
A stacked bar chart that computes the total number of wines with a price is bigger than 100 of each year, and group by grape. Next, Bin the year into the weekday interval. | SELECT Year, COUNT(Year) FROM wine WHERE Price > 100 GROUP BY Grape ORDER BY Year | [
32,
24167,
2318,
8262,
326,
552,
1769,
262,
2472,
1271,
286,
30680,
351,
257,
2756,
318,
5749,
621,
1802,
286,
1123,
614,
11,
290,
1448,
416,
30777,
13,
7406,
11,
20828,
262,
614,
656,
262,
28269,
16654,
13,
46506,
6280,
11,
327,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24167,
2318,
8262,
326,
552,
1769,
262,
2472,
1271,
286,
30680,
351,
257,
2756,
318,
5749,
621,
1802,
286,
1123,
614,
11,
290,
1448,
416,
30777,
13,
7406,
11,
20828,
262,
614,
656,
262,
28269,
16654,
13,
46506,
6280,
11,
327,
28... |
Among patients admitted before the year 2157, how many of them had item id 50820? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2157" AND lab.itemid = "50820" | [
14311,
3871,
6848,
878,
262,
614,
362,
18458,
11,
703,
867,
286,
606,
550,
2378,
4686,
2026,
41739,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14311,
3871,
6848,
878,
262,
614,
362,
18458,
11,
703,
867,
286,
606,
550,
2378,
4686,
2026,
41739,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1672... |
What institution is located in St. Peter? | SELECT "Institution" FROM table_3492 WHERE "Location (all in Minnesota)" = 'St. Peter' | [
2061,
9901,
318,
5140,
287,
520,
13,
5613,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
2682,
5892,
33411,
366,
14749,
357,
439,
287,
8919,
16725,
796,
705,
1273,
13,
5613,
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,
9901,
318,
5140,
287,
520,
13,
5613,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
2682,
5892,
33411,
366,
14749,
357,
439,
287,
8919,
16725,
796,
705,
1273,
13,
5613,
6
] |
what was the four most common specimen test ordered until 2 years ago? | SELECT t1.culturesite FROM (SELECT microlab.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microlab WHERE DATETIME(microlab.culturetakentime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY microlab.culturesite) AS t1 WHERE t1.c1 <= 4 | [
10919,
373,
262,
1440,
749,
2219,
31674,
1332,
6149,
1566,
362,
812,
2084,
30,
46506,
256,
16,
13,
40820,
942,
578,
16034,
357,
46506,
4580,
23912,
13,
40820,
942,
578,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
2219,
31674,
1332,
6149,
1566,
362,
812,
2084,
30,
46506,
256,
16,
13,
40820,
942,
578,
16034,
357,
46506,
4580,
23912,
13,
40820,
942,
578,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
110... |
count how many times patient 031-23605 came in to icu during the last hospital visit. | SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23605' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) | [
9127,
703,
867,
1661,
5827,
657,
3132,
12,
1954,
32417,
1625,
287,
284,
14158,
84,
1141,
262,
938,
4436,
3187,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
26029,
20850,
31712,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
703,
867,
1661,
5827,
657,
3132,
12,
1954,
32417,
1625,
287,
284,
14158,
84,
1141,
262,
938,
4436,
3187,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
26029,
20850,
31712,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,... |
When did the green bay packers win at green bay with an attendance over 70,920? | SELECT "Date" FROM table_53919 WHERE "Location" = 'green bay' AND "Winner" = 'green bay packers' AND "Attendance" > '70,920' | [
2215,
750,
262,
4077,
15489,
2353,
364,
1592,
379,
4077,
15489,
351,
281,
14858,
625,
4317,
11,
37128,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
20,
2670,
1129,
33411,
366,
14749,
1,
796,
705,
14809,
15489,
6,
5357,
366,
48056,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
262,
4077,
15489,
2353,
364,
1592,
379,
4077,
15489,
351,
281,
14858,
625,
4317,
11,
37128,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
20,
2670,
1129,
33411,
366,
14749,
1,
796,
705,
14809,
15489,
6,
5357,
366,
48056,
1,
... |
What is the position for the university of north carolina carolina dynamo affiliation | SELECT position FROM table_29626583_1 WHERE affiliation = "University of North Carolina Carolina Dynamo" | [
2061,
318,
262,
2292,
329,
262,
6403,
286,
5093,
1097,
47196,
1097,
47196,
6382,
78,
26218,
46506,
2292,
16034,
3084,
62,
27137,
2075,
46239,
62,
16,
33411,
26218,
796,
366,
21009,
286,
2258,
5913,
5913,
41542,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
329,
262,
6403,
286,
5093,
1097,
47196,
1097,
47196,
6382,
78,
26218,
46506,
2292,
16034,
3084,
62,
27137,
2075,
46239,
62,
16,
33411,
26218,
796,
366,
21009,
286,
2258,
5913,
5913,
41542,
1
] |
Find the id of the order whose shipment tracking number is '3452'. | SELECT order_id FROM shipments WHERE shipment_tracking_number = "3452" | [
16742,
262,
4686,
286,
262,
1502,
3025,
28652,
9646,
1271,
318,
705,
27712,
17,
4458,
46506,
1502,
62,
312,
16034,
29311,
33411,
28652,
62,
36280,
62,
17618,
796,
366,
27712,
17,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
4686,
286,
262,
1502,
3025,
28652,
9646,
1271,
318,
705,
27712,
17,
4458,
46506,
1502,
62,
312,
16034,
29311,
33411,
28652,
62,
36280,
62,
17618,
796,
366,
27712,
17,
1
] |
Give me a histogram for what is the lowest salary in departments with average salary greater than the overall average, and sort from high to low by the dept_name. | SELECT dept_name, MIN(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name DESC | [
23318,
502,
257,
1554,
21857,
329,
644,
318,
262,
9016,
9588,
287,
13346,
351,
2811,
9588,
3744,
621,
262,
4045,
2811,
11,
290,
3297,
422,
1029,
284,
1877,
416,
262,
390,
457,
62,
3672,
13,
46506,
390,
457,
62,
3672,
11,
20625,
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
] | [
23318,
502,
257,
1554,
21857,
329,
644,
318,
262,
9016,
9588,
287,
13346,
351,
2811,
9588,
3744,
621,
262,
4045,
2811,
11,
290,
3297,
422,
1029,
284,
1877,
416,
262,
390,
457,
62,
3672,
13,
46506,
390,
457,
62,
3672,
11,
20625,
7,
... |
What was the attendance at the game that had a loss of Ayala (6-12)? | SELECT attendance FROM table_name_49 WHERE loss = "ayala (6-12)" | [
2061,
373,
262,
14858,
379,
262,
983,
326,
550,
257,
2994,
286,
13709,
6081,
357,
21,
12,
1065,
19427,
46506,
14858,
16034,
3084,
62,
3672,
62,
2920,
33411,
2994,
796,
366,
323,
6081,
357,
21,
12,
1065,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
14858,
379,
262,
983,
326,
550,
257,
2994,
286,
13709,
6081,
357,
21,
12,
1065,
19427,
46506,
14858,
16034,
3084,
62,
3672,
62,
2920,
33411,
2994,
796,
366,
323,
6081,
357,
21,
12,
1065,
16725
] |
Which driver's grid was 24? | SELECT driver FROM table_name_10 WHERE grid = 24 | [
13828,
4639,
338,
10706,
373,
1987,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
940,
33411,
10706,
796,
1987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4639,
338,
10706,
373,
1987,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
940,
33411,
10706,
796,
1987
] |
Which Rank has a Name of john curry, and Points larger than 338.43? | SELECT MAX("Rank") FROM table_76896 WHERE "Name" = 'john curry' AND "Points" > '338.43' | [
13828,
10916,
468,
257,
6530,
286,
45610,
34611,
11,
290,
11045,
4025,
621,
40736,
13,
3559,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
30610,
4846,
33411,
366,
5376,
1,
796,
705,
30686,
34611,
6,
5357,
366,
40710,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
10916,
468,
257,
6530,
286,
45610,
34611,
11,
290,
11045,
4025,
621,
40736,
13,
3559,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
30610,
4846,
33411,
366,
5376,
1,
796,
705,
30686,
34611,
6,
5357,
366,
40710,
1,
1875,
... |
what is discharge time of subject id 65759? | SELECT demographic.dischtime FROM demographic WHERE demographic.subject_id = "65759" | [
10919,
318,
17655,
640,
286,
2426,
4686,
6135,
38314,
30,
46506,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2996,
38314,
1
] | [
1,
1,
1,
1,
1,
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,
17655,
640,
286,
2426,
4686,
6135,
38314,
30,
46506,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2996,
38314,
1
] |
What is the league of player ian schultz? | SELECT "League" FROM table_45620 WHERE "Player" = 'ian schultz' | [
2061,
318,
262,
4652,
286,
2137,
220,
666,
5513,
22150,
30,
46506,
366,
24623,
1,
16034,
3084,
62,
29228,
1238,
33411,
366,
14140,
1,
796,
705,
666,
5513,
22150,
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,
4652,
286,
2137,
220,
666,
5513,
22150,
30,
46506,
366,
24623,
1,
16034,
3084,
62,
29228,
1238,
33411,
366,
14140,
1,
796,
705,
666,
5513,
22150,
6
] |
Which Water (sqmi) has a Township of yorktown, and a GEO ID smaller than 3802187940? | SELECT MIN("Water (sqmi)") FROM table_64578 WHERE "Township" = 'yorktown' AND "GEO ID" < '3802187940' | [
13828,
5638,
357,
31166,
11632,
8,
468,
257,
32115,
286,
331,
967,
12735,
11,
290,
257,
402,
4720,
4522,
4833,
621,
29101,
28727,
3720,
1821,
30,
46506,
20625,
7203,
19184,
357,
31166,
11632,
8,
4943,
16034,
3084,
62,
49259,
3695,
33411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
5638,
357,
31166,
11632,
8,
468,
257,
32115,
286,
331,
967,
12735,
11,
290,
257,
402,
4720,
4522,
4833,
621,
29101,
28727,
3720,
1821,
30,
46506,
20625,
7203,
19184,
357,
31166,
11632,
8,
4943,
16034,
3084,
62,
49259,
3695,
33411... |
how much prednisolone acetate 0.12% ophth. susp. was prescribed for the first time in their first hospital visit to patient 20066? | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20066 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND prescriptions.drug = 'prednisolone acetate 0.12% ophth. susp.' ORDER BY prescr... | [
4919,
881,
2747,
21361,
349,
505,
25174,
378,
657,
13,
1065,
4,
267,
746,
400,
13,
4012,
13,
373,
14798,
329,
262,
717,
640,
287,
511,
717,
4436,
3187,
284,
5827,
939,
2791,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
881,
2747,
21361,
349,
505,
25174,
378,
657,
13,
1065,
4,
267,
746,
400,
13,
4012,
13,
373,
14798,
329,
262,
717,
640,
287,
511,
717,
4436,
3187,
284,
5827,
939,
2791,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
... |
what was the daily minimum intake of p.o. that patient 028-23341 had received until 12/05/2103? | SELECT MIN(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-23341')) AND intakeoutput.celllabel = 'p.o.'... | [
10919,
373,
262,
4445,
5288,
10337,
286,
279,
13,
78,
13,
326,
5827,
657,
2078,
12,
1954,
33660,
550,
2722,
1566,
1105,
14,
2713,
14,
17,
15197,
30,
46506,
20625,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4445,
5288,
10337,
286,
279,
13,
78,
13,
326,
5827,
657,
2078,
12,
1954,
33660,
550,
2722,
1566,
1105,
14,
2713,
14,
17,
15197,
30,
46506,
20625,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
... |
Give me a bar chart showing the number of products supplied by supplier id 3 for different product type code, and could you list by the bar from low to high? | SELECT product_type_code, COUNT(product_type_code) FROM Product_Suppliers AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 GROUP BY product_type_code ORDER BY product_type_code | [
23318,
502,
257,
2318,
8262,
4478,
262,
1271,
286,
3186,
14275,
416,
22693,
4686,
513,
329,
1180,
1720,
2099,
2438,
11,
290,
714,
345,
1351,
416,
262,
2318,
422,
1877,
284,
1029,
30,
46506,
1720,
62,
4906,
62,
8189,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
502,
257,
2318,
8262,
4478,
262,
1271,
286,
3186,
14275,
416,
22693,
4686,
513,
329,
1180,
1720,
2099,
2438,
11,
290,
714,
345,
1351,
416,
262,
2318,
422,
1877,
284,
1029,
30,
46506,
1720,
62,
4906,
62,
8189,
11,
327,
28270,
... |
what is the name of the venue listed before olympic stadium on 1950-08-27 ? | SELECT "venue" FROM table_204_453 WHERE id = (SELECT id FROM table_204_453 WHERE "date" = '1950-08-27') - 1 | [
10919,
318,
262,
1438,
286,
262,
14359,
5610,
878,
267,
6760,
291,
10308,
319,
11445,
12,
2919,
12,
1983,
5633,
46506,
366,
4080,
1,
16034,
3084,
62,
18638,
62,
36625,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14359,
5610,
878,
267,
6760,
291,
10308,
319,
11445,
12,
2919,
12,
1983,
5633,
46506,
366,
4080,
1,
16034,
3084,
62,
18638,
62,
36625,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
36... |
What is the sum of laps of the honda cbr1000rr bike, which has a time of +16.569? | SELECT SUM(laps) FROM table_name_33 WHERE bike = "honda cbr1000rr" AND time = "+16.569" | [
2061,
318,
262,
2160,
286,
24590,
286,
262,
289,
13533,
269,
1671,
12825,
21062,
7161,
11,
543,
468,
257,
640,
286,
1343,
1433,
13,
20,
3388,
30,
46506,
35683,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
2091,
33411,
7161,
796,
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,
2160,
286,
24590,
286,
262,
289,
13533,
269,
1671,
12825,
21062,
7161,
11,
543,
468,
257,
640,
286,
1343,
1433,
13,
20,
3388,
30,
46506,
35683,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
2091,
33411,
7161,
796,
366,
... |
What is the final score of the tournament played in Clearwater, Florida? | SELECT score FROM table_name_47 WHERE tournament = "clearwater, florida" | [
2061,
318,
262,
2457,
4776,
286,
262,
7756,
2826,
287,
11459,
7050,
11,
4744,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2857,
33411,
7756,
796,
366,
20063,
7050,
11,
781,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2457,
4776,
286,
262,
7756,
2826,
287,
11459,
7050,
11,
4744,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2857,
33411,
7756,
796,
366,
20063,
7050,
11,
781,
273,
3755,
1
] |
For those records from the products and each product's manufacturer, give me the comparison about the average of revenue over the founder , and group by attribute founder by a bar chart, display X in descending order. | SELECT Founder, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6426,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
416,
257,
2318,
8262,
11,
3359,
1395,
287,
31491,
1502,
13,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6426,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
416,
257,
2318,
8262,
11,
3359,
1395,
287,
31491,
1502,
13,
46506,
... |
Find the name of each user and number of tweets tweeted by each of them. | SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid | [
16742,
262,
1438,
286,
1123,
2836,
290,
1271,
286,
12665,
10830,
416,
1123,
286,
606,
13,
46506,
309,
16,
13,
3672,
11,
327,
28270,
7,
28104,
16034,
2836,
62,
5577,
2915,
7054,
309,
16,
32357,
1268,
12665,
7054,
309,
17,
6177,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1438,
286,
1123,
2836,
290,
1271,
286,
12665,
10830,
416,
1123,
286,
606,
13,
46506,
309,
16,
13,
3672,
11,
327,
28270,
7,
28104,
16034,
2836,
62,
5577,
2915,
7054,
309,
16,
32357,
1268,
12665,
7054,
309,
17,
6177,
309,
... |
give me the difference between the total input and the output of patient 021-100763 on the last icu visit. | SELECT (SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-100763') AND NOT patient.unitdischar... | [
26535,
502,
262,
3580,
1022,
262,
2472,
5128,
290,
262,
5072,
286,
5827,
657,
2481,
12,
3064,
49641,
319,
262,
938,
14158,
84,
3187,
13,
46506,
357,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3580,
1022,
262,
2472,
5128,
290,
262,
5072,
286,
5827,
657,
2481,
12,
3064,
49641,
319,
262,
938,
14158,
84,
3187,
13,
46506,
357,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
... |
What is the english title that has finale as 33 and peak as 42? | SELECT english_title FROM table_11173827_1 WHERE finale = 33 AND peak = 42 | [
2061,
318,
262,
46932,
3670,
326,
468,
19523,
355,
4747,
290,
9103,
355,
5433,
30,
46506,
46932,
62,
7839,
16034,
3084,
62,
1157,
1558,
2548,
1983,
62,
16,
33411,
19523,
796,
4747,
5357,
9103,
796,
5433
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
46932,
3670,
326,
468,
19523,
355,
4747,
290,
9103,
355,
5433,
30,
46506,
46932,
62,
7839,
16034,
3084,
62,
1157,
1558,
2548,
1983,
62,
16,
33411,
19523,
796,
4747,
5357,
9103,
796,
5433
] |
What is the opposition when the tally was 0-11? | SELECT "Opposition" FROM table_54034 WHERE "Tally" = '0-11' | [
2061,
318,
262,
5471,
618,
262,
26767,
373,
657,
12,
1157,
30,
46506,
366,
27524,
3507,
1,
16034,
3084,
62,
35005,
2682,
33411,
366,
51,
453,
1,
796,
705,
15,
12,
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
] | [
2061,
318,
262,
5471,
618,
262,
26767,
373,
657,
12,
1157,
30,
46506,
366,
27524,
3507,
1,
16034,
3084,
62,
35005,
2682,
33411,
366,
51,
453,
1,
796,
705,
15,
12,
1157,
6
] |
show me the flights from BOSTON to SAN FRANCISCO stopping in DALLAS on AA | 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, flight, flight_stop WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND CI... | [
12860,
502,
262,
13956,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
1797,
8220,
12225,
287,
360,
7036,
1921,
319,
317,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
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... | [
12860,
502,
262,
13956,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
1797,
8220,
12225,
287,
360,
7036,
1921,
319,
317,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35... |
What was the doctor for sorted series 6eb/b? | SELECT doctor FROM table_1620397_5 WHERE series_sorted = "6EB/B" | [
2061,
373,
262,
6253,
329,
23243,
2168,
718,
1765,
14,
65,
30,
46506,
6253,
16034,
3084,
62,
1433,
1238,
33372,
62,
20,
33411,
2168,
62,
82,
9741,
796,
366,
21,
30195,
14,
33,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6253,
329,
23243,
2168,
718,
1765,
14,
65,
30,
46506,
6253,
16034,
3084,
62,
1433,
1238,
33372,
62,
20,
33411,
2168,
62,
82,
9741,
796,
366,
21,
30195,
14,
33,
1
] |
Give swimsuit scores of participants 8.847 in preliminary | SELECT swimsuit FROM table_17088705_2 WHERE preliminary = "8.847" | [
23318,
9422,
6063,
8198,
286,
6809,
807,
13,
23,
2857,
287,
15223,
46506,
9422,
6063,
16034,
3084,
62,
1558,
46556,
34801,
62,
17,
33411,
15223,
796,
366,
23,
13,
23,
2857,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
9422,
6063,
8198,
286,
6809,
807,
13,
23,
2857,
287,
15223,
46506,
9422,
6063,
16034,
3084,
62,
1558,
46556,
34801,
62,
17,
33411,
15223,
796,
366,
23,
13,
23,
2857,
1
] |
did anne smith win more than five doubles finals on clay ? | SELECT (SELECT COUNT(*) FROM table_204_553 WHERE "outcome" = 'winner' AND "surface" = 'clay') > 5 | [
20839,
281,
710,
895,
342,
1592,
517,
621,
1936,
21938,
18576,
319,
21558,
5633,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
48096,
33411,
366,
448,
2958,
1,
796,
705,
39791,
6,
5357,
366,
42029,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20839,
281,
710,
895,
342,
1592,
517,
621,
1936,
21938,
18576,
319,
21558,
5633,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
48096,
33411,
366,
448,
2958,
1,
796,
705,
39791,
6,
5357,
366,
42029,
1,
796,
705,
... |
give me the number of patients whose admission year is less than 2200 and drug route is pr? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2200" AND prescriptions.route = "PR" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
2167,
290,
2563,
6339,
318,
778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
2167,
290,
2563,
6339,
318,
778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
617... |
What is the name of the player when the college/junior/club team is new westminster bruins (whl)? | SELECT "Player" FROM table_30579 WHERE "College/junior/club team" = 'New Westminster Bruins (WHL)' | [
2061,
318,
262,
1438,
286,
262,
2137,
618,
262,
4152,
14,
29741,
1504,
14,
18664,
1074,
318,
649,
7421,
18462,
18145,
1040,
357,
1929,
75,
19427,
46506,
366,
14140,
1,
16034,
3084,
62,
1270,
41734,
33411,
366,
38951,
14,
29741,
1504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
618,
262,
4152,
14,
29741,
1504,
14,
18664,
1074,
318,
649,
7421,
18462,
18145,
1040,
357,
1929,
75,
19427,
46506,
366,
14140,
1,
16034,
3084,
62,
1270,
41734,
33411,
366,
38951,
14,
29741,
1504,
... |
Show the ids and names of festivals that have at least two nominations for artworks Plot them as bar chart, and show in desc by the total number. | SELECT T3.Festival_Name, T1.Festival_ID FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T1.Festival_ID DESC | [
15307,
262,
220,
2340,
290,
3891,
286,
25575,
326,
423,
379,
1551,
734,
30994,
329,
1242,
5225,
28114,
606,
355,
2318,
8262,
11,
290,
905,
287,
1715,
416,
262,
2472,
1271,
13,
46506,
309,
18,
13,
37,
6743,
62,
5376,
11,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
220,
2340,
290,
3891,
286,
25575,
326,
423,
379,
1551,
734,
30994,
329,
1242,
5225,
28114,
606,
355,
2318,
8262,
11,
290,
905,
287,
1715,
416,
262,
2472,
1271,
13,
46506,
309,
18,
13,
37,
6743,
62,
5376,
11,
309,
16,
1... |
What is the common name for the creature with darker colors? | SELECT "Common name" FROM table_9485 WHERE "Color" = 'darker colors' | [
2061,
318,
262,
2219,
1438,
329,
262,
7185,
351,
18646,
7577,
30,
46506,
366,
17227,
1438,
1,
16034,
3084,
62,
24,
32642,
33411,
366,
10258,
1,
796,
705,
21953,
263,
7577,
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,
2219,
1438,
329,
262,
7185,
351,
18646,
7577,
30,
46506,
366,
17227,
1438,
1,
16034,
3084,
62,
24,
32642,
33411,
366,
10258,
1,
796,
705,
21953,
263,
7577,
6
] |
Name the release date xbox 360 for sea wolf | SELECT "Release date ( Xbox360 )" FROM table_3595 WHERE "Artist" = 'Sea Wolf' | [
5376,
262,
2650,
3128,
2124,
3524,
11470,
329,
5417,
17481,
46506,
366,
26362,
3128,
357,
9445,
15277,
1267,
1,
16034,
3084,
62,
2327,
3865,
33411,
366,
43020,
1,
796,
705,
37567,
8662,
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,
2650,
3128,
2124,
3524,
11470,
329,
5417,
17481,
46506,
366,
26362,
3128,
357,
9445,
15277,
1267,
1,
16034,
3084,
62,
2327,
3865,
33411,
366,
43020,
1,
796,
705,
37567,
8662,
6
] |
give me the number of patients whose year of birth is less than 2170 and lab test name is urea nitrogen, urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2170" AND lab.label = "Urea Nitrogen, Urine" | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
17279,
290,
2248,
1332,
1438,
318,
334,
21468,
23417,
11,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
4082,
318,
1342,
621,
362,
17279,
290,
2248,
1332,
1438,
318,
334,
21468,
23417,
11,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... |
What is the Score of the game with arsenal win 4-2 on penalties in the attendance field? | SELECT score FROM table_name_85 WHERE attendance = "arsenal win 4-2 on penalties" | [
2061,
318,
262,
15178,
286,
262,
983,
351,
24375,
1592,
604,
12,
17,
319,
12970,
287,
262,
14858,
2214,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5332,
33411,
14858,
796,
366,
945,
268,
282,
1592,
604,
12,
17,
319,
12970,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
983,
351,
24375,
1592,
604,
12,
17,
319,
12970,
287,
262,
14858,
2214,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5332,
33411,
14858,
796,
366,
945,
268,
282,
1592,
604,
12,
17,
319,
12970,
1
] |
Tell me the competition for 25 march 2001 | SELECT "Competition" FROM table_31734 WHERE "Date" = '25 march 2001' | [
24446,
502,
262,
5449,
329,
1679,
9960,
5878,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
34125,
2682,
33411,
366,
10430,
1,
796,
705,
1495,
9960,
5878,
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
] | [
24446,
502,
262,
5449,
329,
1679,
9960,
5878,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
34125,
2682,
33411,
366,
10430,
1,
796,
705,
1495,
9960,
5878,
6
] |
What is the 1991 population for the urban settlement named Ba ki Jarak? | SELECT "Population (1991)" FROM table_27849 WHERE "Urban settlement" = 'Bački Jarak' | [
2061,
318,
262,
10249,
3265,
329,
262,
7876,
9443,
3706,
8999,
47748,
15374,
461,
30,
46506,
366,
45251,
357,
24529,
16725,
16034,
3084,
62,
25870,
2920,
33411,
366,
46667,
9443,
1,
796,
705,
34458,
46195,
4106,
15374,
461,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
10249,
3265,
329,
262,
7876,
9443,
3706,
8999,
47748,
15374,
461,
30,
46506,
366,
45251,
357,
24529,
16725,
16034,
3084,
62,
25870,
2920,
33411,
366,
46667,
9443,
1,
796,
705,
34458,
46195,
4106,
15374,
461,
6
] |
What day did they play in week 6? | SELECT "Date" FROM table_44794 WHERE "Week" = '6' | [
2061,
1110,
750,
484,
711,
287,
1285,
718,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2598,
50242,
33411,
366,
20916,
1,
796,
705,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1110,
750,
484,
711,
287,
1285,
718,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2598,
50242,
33411,
366,
20916,
1,
796,
705,
21,
6
] |
How many regions have a capital of matanzas and a 2005 population under 670427? | SELECT COUNT("Area (km\u00b2)") FROM table_51926 WHERE "Capital" = 'matanzas' AND "Population (2005)" < '670427' | [
2437,
867,
7652,
423,
257,
3139,
286,
2603,
35410,
292,
290,
257,
5075,
3265,
739,
718,
32869,
1983,
30,
46506,
327,
28270,
7203,
30547,
357,
13276,
59,
84,
405,
65,
17,
8,
4943,
16034,
3084,
62,
47785,
2075,
33411,
366,
39315,
1,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
7652,
423,
257,
3139,
286,
2603,
35410,
292,
290,
257,
5075,
3265,
739,
718,
32869,
1983,
30,
46506,
327,
28270,
7203,
30547,
357,
13276,
59,
84,
405,
65,
17,
8,
4943,
16034,
3084,
62,
47785,
2075,
33411,
366,
39315,
1,
7... |
how many patients are diagnosed with primary disease acidosis and are below 79 years of age? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ACIDOSIS" AND demographic.age < "79" | [
4919,
867,
3871,
389,
14641,
351,
4165,
4369,
7408,
5958,
290,
389,
2174,
9225,
812,
286,
2479,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
2246,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
389,
14641,
351,
4165,
4369,
7408,
5958,
290,
389,
2174,
9225,
812,
286,
2479,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
2246,... |
What home/away game is on February 29, 2008? | SELECT home_away FROM table_name_19 WHERE date = "february 29, 2008" | [
2061,
1363,
14,
8272,
983,
318,
319,
3945,
2808,
11,
3648,
30,
46506,
1363,
62,
8272,
16034,
3084,
62,
3672,
62,
1129,
33411,
3128,
796,
366,
69,
1765,
3728,
2808,
11,
3648,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1363,
14,
8272,
983,
318,
319,
3945,
2808,
11,
3648,
30,
46506,
1363,
62,
8272,
16034,
3084,
62,
3672,
62,
1129,
33411,
3128,
796,
366,
69,
1765,
3728,
2808,
11,
3648,
1
] |
which episode has the most viewers ? | SELECT "episode" FROM table_204_362 ORDER BY "viewers" DESC LIMIT 1 | [
4758,
4471,
468,
262,
749,
10209,
5633,
46506,
366,
38668,
1,
16034,
3084,
62,
18638,
62,
35667,
38678,
11050,
366,
1177,
364,
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
] | [
4758,
4471,
468,
262,
749,
10209,
5633,
46506,
366,
38668,
1,
16034,
3084,
62,
18638,
62,
35667,
38678,
11050,
366,
1177,
364,
1,
22196,
34,
27564,
2043,
352
] |
How many counties correspond to each police force, and order bars in asc order. | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force ORDER BY Police_force | [
2437,
867,
14683,
6053,
284,
1123,
1644,
2700,
11,
290,
1502,
9210,
287,
10570,
1502,
13,
46506,
4287,
62,
3174,
11,
327,
28270,
7,
28104,
16034,
7968,
62,
11377,
62,
44708,
44441,
11050,
4287,
62,
3174,
38678,
11050,
4287,
62,
3174
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14683,
6053,
284,
1123,
1644,
2700,
11,
290,
1502,
9210,
287,
10570,
1502,
13,
46506,
4287,
62,
3174,
11,
327,
28270,
7,
28104,
16034,
7968,
62,
11377,
62,
44708,
44441,
11050,
4287,
62,
3174,
38678,
11050,
4287,
62,
3174
] |
List the number of companies for each building in a bar chart, order bar from low to high order. | SELECT T2.name, COUNT(T2.name) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T2.name ORDER BY T2.name | [
8053,
262,
1271,
286,
2706,
329,
1123,
2615,
287,
257,
2318,
8262,
11,
1502,
2318,
422,
1877,
284,
1029,
1502,
13,
46506,
309,
17,
13,
3672,
11,
327,
28270,
7,
51,
17,
13,
3672,
8,
16034,
4452,
62,
17946,
602,
7054,
309,
16,
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... | [
8053,
262,
1271,
286,
2706,
329,
1123,
2615,
287,
257,
2318,
8262,
11,
1502,
2318,
422,
1877,
284,
1029,
1502,
13,
46506,
309,
17,
13,
3672,
11,
327,
28270,
7,
51,
17,
13,
3672,
8,
16034,
4452,
62,
17946,
602,
7054,
309,
16,
32357... |
what is the three most common lab testing done this year? | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 3 | [
10919,
318,
262,
1115,
749,
2219,
2248,
4856,
1760,
428,
614,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1115,
749,
2219,
2248,
4856,
1760,
428,
614,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22... |
Number of questions that remain undeleted (per day, between dates). | SELECT DATE(p.CreationDate), COUNT(p.Id) FROM Posts AS p WHERE p.PostTypeId = 1 AND p.CreationDate >= '##Date1##' AND p.CreationDate <= '##Date2##' GROUP BY DATE(p.CreationDate) ORDER BY DATE(p.CreationDate) | [
15057,
286,
2683,
326,
3520,
3318,
11129,
1513,
357,
525,
1110,
11,
1022,
9667,
737,
46506,
360,
6158,
7,
79,
13,
12443,
341,
10430,
828,
327,
28270,
7,
79,
13,
7390,
8,
16034,
12043,
7054,
279,
33411,
279,
13,
6307,
6030,
7390,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15057,
286,
2683,
326,
3520,
3318,
11129,
1513,
357,
525,
1110,
11,
1022,
9667,
737,
46506,
360,
6158,
7,
79,
13,
12443,
341,
10430,
828,
327,
28270,
7,
79,
13,
7390,
8,
16034,
12043,
7054,
279,
33411,
279,
13,
6307,
6030,
7390,
796... |
had the respiratory rate of patient 2514 been greater until 172 months ago than 19.0? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2514)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'respiratory rate' ... | [
18108,
262,
22949,
2494,
286,
5827,
1679,
1415,
587,
3744,
1566,
23120,
1933,
2084,
621,
678,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
262,
22949,
2494,
286,
5827,
1679,
1415,
587,
3744,
1566,
23120,
1933,
2084,
621,
678,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14... |
What is the record on Sept 22? | SELECT record FROM table_23624542_4 WHERE date = "Sept 22" | [
2061,
318,
262,
1700,
319,
2362,
2534,
30,
46506,
1700,
16034,
3084,
62,
24940,
22995,
3682,
62,
19,
33411,
3128,
796,
366,
14635,
2534,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1700,
319,
2362,
2534,
30,
46506,
1700,
16034,
3084,
62,
24940,
22995,
3682,
62,
19,
33411,
3128,
796,
366,
14635,
2534,
1
] |
Which papers cite Daniel A Reed ? | SELECT DISTINCT paper.paperid FROM author, cite, paper, writes WHERE author.authorname = 'Daniel A Reed' AND paper.paperid = cite.citingpaperid AND writes.authorid = author.authorid AND writes.paperid = cite.citedpaperid | [
13828,
9473,
21729,
7806,
317,
16105,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
19962,
317,
16105,
6,
5357,
3348,
13,
20189,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
9473,
21729,
7806,
317,
16105,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
19962,
317,
16105,
6,
5357,
3348,
13,
20189,
312,
... |
Whose reign ended in Afghanistan after 3 days? | SELECT reign_ended FROM table_name_2 WHERE length = "3 days" AND country = "afghanistan" | [
1199,
577,
13580,
4444,
287,
8037,
706,
513,
1528,
30,
46506,
13580,
62,
1631,
16034,
3084,
62,
3672,
62,
17,
33411,
4129,
796,
366,
18,
1528,
1,
5357,
1499,
796,
366,
1878,
6064,
4103,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1199,
577,
13580,
4444,
287,
8037,
706,
513,
1528,
30,
46506,
13580,
62,
1631,
16034,
3084,
62,
3672,
62,
17,
33411,
4129,
796,
366,
18,
1528,
1,
5357,
1499,
796,
366,
1878,
6064,
4103,
1
] |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of code , and group by attribute name, could you show by the Y-axis from low to high? | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
714,
345,
905,
416,
262,
575,
12,
22704,
422,
1877,
284,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
714,
345,
905,
416,
262,
575,
12,
22704,
422,
1877,
284,... |
What's the network of BBTV Channel 7? | SELECT "Network" FROM table_63363 WHERE "Name" = 'bbtv channel 7' | [
2061,
338,
262,
3127,
286,
12597,
6849,
11102,
767,
30,
46506,
366,
26245,
1,
16034,
3084,
62,
21,
2091,
5066,
33411,
366,
5376,
1,
796,
705,
11848,
14981,
6518,
767,
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,
338,
262,
3127,
286,
12597,
6849,
11102,
767,
30,
46506,
366,
26245,
1,
16034,
3084,
62,
21,
2091,
5066,
33411,
366,
5376,
1,
796,
705,
11848,
14981,
6518,
767,
6
] |
How many of the episodes in the top 50 rankings were originally aired on June 28, 2010? | SELECT COUNT(top_50_ranking) FROM table_22170495_7 WHERE original_airing = "June 28, 2010" | [
2437,
867,
286,
262,
8640,
287,
262,
1353,
2026,
16905,
547,
6198,
18530,
319,
2795,
2579,
11,
3050,
30,
46506,
327,
28270,
7,
4852,
62,
1120,
62,
28405,
8,
16034,
3084,
62,
1828,
17279,
33781,
62,
22,
33411,
2656,
62,
958,
278,
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
] | [
2437,
867,
286,
262,
8640,
287,
262,
1353,
2026,
16905,
547,
6198,
18530,
319,
2795,
2579,
11,
3050,
30,
46506,
327,
28270,
7,
4852,
62,
1120,
62,
28405,
8,
16034,
3084,
62,
1828,
17279,
33781,
62,
22,
33411,
2656,
62,
958,
278,
796... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
28269,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
28269,
1... |
What is every population density if name is Beaubassin East? | SELECT population_density FROM table_26321719_1 WHERE name = "Beaubassin East" | [
2061,
318,
790,
3265,
12109,
611,
1438,
318,
1355,
64,
549,
44961,
3687,
30,
46506,
3265,
62,
43337,
16034,
3084,
62,
2075,
2624,
1558,
1129,
62,
16,
33411,
1438,
796,
366,
3856,
64,
549,
44961,
3687,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
12109,
611,
1438,
318,
1355,
64,
549,
44961,
3687,
30,
46506,
3265,
62,
43337,
16034,
3084,
62,
2075,
2624,
1558,
1129,
62,
16,
33411,
1438,
796,
366,
3856,
64,
549,
44961,
3687,
1
] |
What is the average Silver, when Rank is 5, and when Bronze is less than 1? | SELECT AVG("Silver") FROM table_77022 WHERE "Rank" = '5' AND "Bronze" < '1' | [
2061,
318,
262,
2811,
7698,
11,
618,
10916,
318,
642,
11,
290,
618,
19461,
318,
1342,
621,
352,
30,
46506,
35224,
7203,
26766,
4943,
16034,
3084,
62,
41820,
1828,
33411,
366,
27520,
1,
796,
705,
20,
6,
5357,
366,
18760,
2736,
1,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
7698,
11,
618,
10916,
318,
642,
11,
290,
618,
19461,
318,
1342,
621,
352,
30,
46506,
35224,
7203,
26766,
4943,
16034,
3084,
62,
41820,
1828,
33411,
366,
27520,
1,
796,
705,
20,
6,
5357,
366,
18760,
2736,
1,
127... |
What is the position of john charles? | SELECT position FROM table_12165135_1 WHERE player = "John Charles" | [
2061,
318,
262,
2292,
286,
45610,
1149,
829,
30,
46506,
2292,
16034,
3084,
62,
1065,
20986,
17059,
62,
16,
33411,
2137,
796,
366,
7554,
7516,
1
] | [
1,
1,
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,
2292,
286,
45610,
1149,
829,
30,
46506,
2292,
16034,
3084,
62,
1065,
20986,
17059,
62,
16,
33411,
2137,
796,
366,
7554,
7516,
1
] |
Show the names of climbers and the heights of mountains they climb by a bar chart, and display from low to high by the bars please. | SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Name | [
15307,
262,
3891,
286,
39311,
290,
262,
23245,
286,
12269,
484,
12080,
416,
257,
2318,
8262,
11,
290,
3359,
422,
1877,
284,
1029,
416,
262,
9210,
3387,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
23106,
16034,
5424,
527,
7054,
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... | [
15307,
262,
3891,
286,
39311,
290,
262,
23245,
286,
12269,
484,
12080,
416,
257,
2318,
8262,
11,
290,
3359,
422,
1877,
284,
1029,
416,
262,
9210,
3387,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
23106,
16034,
5424,
527,
7054,
30... |
What is the Score of the game of the Player in Place 4? | SELECT "Score" FROM table_76986 WHERE "Place" = '4' | [
2061,
318,
262,
15178,
286,
262,
983,
286,
262,
7853,
287,
8474,
604,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
22,
3388,
4521,
33411,
366,
27271,
1,
796,
705,
19,
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,
15178,
286,
262,
983,
286,
262,
7853,
287,
8474,
604,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
22,
3388,
4521,
33411,
366,
27271,
1,
796,
705,
19,
6
] |
Give me the comparison about the average of monthly_rental over the date_address_to , and group by attribute other_details and bin date_address_to by time by a bar chart. | SELECT date_address_to, AVG(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
9651,
62,
1156,
282,
625,
262,
3128,
62,
21975,
62,
1462,
837,
290,
1448,
416,
11688,
584,
62,
36604,
290,
9874,
3128,
62,
21975,
62,
1462,
416,
640,
416,
257,
2318,
8262,
13,
46506,
3128,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
9651,
62,
1156,
282,
625,
262,
3128,
62,
21975,
62,
1462,
837,
290,
1448,
416,
11688,
584,
62,
36604,
290,
9874,
3128,
62,
21975,
62,
1462,
416,
640,
416,
257,
2318,
8262,
13,
46506,
3128,... |
find out the number of patients with lab test item id 50994. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50994" | [
19796,
503,
262,
1271,
286,
3871,
351,
2248,
1332,
2378,
4686,
2026,
42691,
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,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
351,
2248,
1332,
2378,
4686,
2026,
42691,
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,
31... |
How many married patients died in or before 2165? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.dod_year <= "2165.0" | [
2437,
867,
6405,
3871,
3724,
287,
393,
878,
362,
20986,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6405,
3871,
3724,
287,
393,
878,
362,
20986,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
16728,
... |
Evolution of the time between the question and the answer up to a given number of days. | SELECT CAST(q.CreationDate AS DATE) AS "Date", DATEDIFF(DAY, q.CreationDate, CreationDate) AS "Delay to answer" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND DATEDIFF(DAY, q.CreationDate, CreationDate) < @N ORDER BY 'Date' DESC | [
15200,
2122,
286,
262,
640,
1022,
262,
1808,
290,
262,
3280,
510,
284,
257,
1813,
1271,
286,
1528,
13,
46506,
327,
11262,
7,
80,
13,
12443,
341,
10430,
7054,
360,
6158,
8,
7054,
366,
10430,
1600,
360,
11617,
29267,
7,
26442,
11,
106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15200,
2122,
286,
262,
640,
1022,
262,
1808,
290,
262,
3280,
510,
284,
257,
1813,
1271,
286,
1528,
13,
46506,
327,
11262,
7,
80,
13,
12443,
341,
10430,
7054,
360,
6158,
8,
7054,
366,
10430,
1600,
360,
11617,
29267,
7,
26442,
11,
106... |
What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800? | SELECT "Chipset based on" FROM table_10487 WHERE "Digital/analog signal" = 'analog' AND "Available interface" = 'agp' AND "Retail name" = 'all-in-wonder 9800' | [
2061,
318,
262,
45864,
316,
1912,
319,
351,
257,
10231,
14,
272,
11794,
6737,
286,
15075,
11,
351,
281,
14898,
7071,
286,
556,
79,
11,
351,
26702,
1438,
351,
477,
12,
259,
12,
86,
8623,
860,
7410,
30,
46506,
366,
49985,
2617,
1912,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
45864,
316,
1912,
319,
351,
257,
10231,
14,
272,
11794,
6737,
286,
15075,
11,
351,
281,
14898,
7071,
286,
556,
79,
11,
351,
26702,
1438,
351,
477,
12,
259,
12,
86,
8623,
860,
7410,
30,
46506,
366,
49985,
2617,
1912,
... |
What is the average quantity for coaches manufactured in 1921/23, and had 40 seats? | SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40" | [
2061,
318,
262,
2811,
12040,
329,
11070,
15943,
287,
35369,
14,
1954,
11,
290,
550,
2319,
8632,
30,
46506,
35224,
7,
40972,
414,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
614,
62,
82,
834,
1659,
62,
48119,
495,
796,
366,
1129,
2481... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
12040,
329,
11070,
15943,
287,
35369,
14,
1954,
11,
290,
550,
2319,
8632,
30,
46506,
35224,
7,
40972,
414,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
614,
62,
82,
834,
1659,
62,
48119,
495,
796,
366,
1129,
2481... |
How many years has 1 run? | SELECT COUNT("Year") FROM table_39636 WHERE "Score" = '1 run' | [
2437,
867,
812,
468,
352,
1057,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
34107,
2623,
33411,
366,
26595,
1,
796,
705,
16,
1057,
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
] | [
2437,
867,
812,
468,
352,
1057,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
34107,
2623,
33411,
366,
26595,
1,
796,
705,
16,
1057,
6
] |
who got the first draft pick - washington or clemson ? | SELECT "college" FROM table_204_635 WHERE "college" IN ('washington', 'clemson') ORDER BY "round" LIMIT 1 | [
8727,
1392,
262,
717,
4538,
2298,
532,
20518,
1122,
393,
1190,
24996,
5633,
46506,
366,
44107,
1,
16034,
3084,
62,
18638,
62,
48250,
33411,
366,
44107,
1,
3268,
19203,
86,
2542,
3256,
705,
2375,
24996,
11537,
38678,
11050,
366,
744,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1392,
262,
717,
4538,
2298,
532,
20518,
1122,
393,
1190,
24996,
5633,
46506,
366,
44107,
1,
16034,
3084,
62,
18638,
62,
48250,
33411,
366,
44107,
1,
3268,
19203,
86,
2542,
3256,
705,
2375,
24996,
11537,
38678,
11050,
366,
744,
1,
... |
What is on the reverse side of the 100 coin? | SELECT reverse FROM table_298883_5 WHERE value = "₩100" | [
2061,
318,
319,
262,
9575,
1735,
286,
262,
1802,
10752,
30,
46506,
9575,
16034,
3084,
62,
1959,
3459,
5999,
62,
20,
33411,
1988,
796,
366,
158,
224,
102,
3064,
1
] | [
1,
1,
1,
1,
1,
1,
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,
319,
262,
9575,
1735,
286,
262,
1802,
10752,
30,
46506,
9575,
16034,
3084,
62,
1959,
3459,
5999,
62,
20,
33411,
1988,
796,
366,
158,
224,
102,
3064,
1
] |
What is the fastest lap at estoril? | SELECT fastest_lap FROM table_name_82 WHERE location = "estoril" | [
2061,
318,
262,
14162,
14779,
379,
1556,
273,
346,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
3672,
62,
6469,
33411,
4067,
796,
366,
395,
273,
346,
1
] | [
1,
1,
1,
1,
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,
14162,
14779,
379,
1556,
273,
346,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
3672,
62,
6469,
33411,
4067,
796,
366,
395,
273,
346,
1
] |
Name the townland for fermoy and ballynoe | SELECT "Townland" FROM table_74465 WHERE "Poor law union" = 'Fermoy' AND "Civil parish" = 'Ballynoe' | [
5376,
262,
3240,
1044,
329,
277,
7780,
726,
290,
275,
453,
77,
2577,
46506,
366,
38097,
1044,
1,
16034,
3084,
62,
22,
2598,
2996,
33411,
366,
43920,
1099,
6441,
1,
796,
705,
37,
7780,
726,
6,
5357,
366,
32610,
28830,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
3240,
1044,
329,
277,
7780,
726,
290,
275,
453,
77,
2577,
46506,
366,
38097,
1044,
1,
16034,
3084,
62,
22,
2598,
2996,
33411,
366,
43920,
1099,
6441,
1,
796,
705,
37,
7780,
726,
6,
5357,
366,
32610,
28830,
1,
796,
705,
... |
What is the report for races where Will Power had both pole position and fastest lap? | SELECT report FROM table_16099880_5 WHERE pole_position = "Will Power" AND fastest_lap = "Will Power" | [
2061,
318,
262,
989,
329,
9558,
810,
2561,
4333,
550,
1111,
16825,
2292,
290,
14162,
14779,
30,
46506,
989,
16034,
3084,
62,
14198,
34808,
1795,
62,
20,
33411,
16825,
62,
9150,
796,
366,
8743,
4333,
1,
5357,
14162,
62,
37796,
796,
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
] | [
2061,
318,
262,
989,
329,
9558,
810,
2561,
4333,
550,
1111,
16825,
2292,
290,
14162,
14779,
30,
46506,
989,
16034,
3084,
62,
14198,
34808,
1795,
62,
20,
33411,
16825,
62,
9150,
796,
366,
8743,
4333,
1,
5357,
14162,
62,
37796,
796,
366... |
what is the difference in points between first and last place ? | SELECT (SELECT "points" FROM table_203_252 ORDER BY "points" DESC LIMIT 1) - (SELECT "points" FROM table_203_252 ORDER BY "points" LIMIT 1) | [
10919,
318,
262,
3580,
287,
2173,
1022,
717,
290,
938,
1295,
5633,
46506,
357,
46506,
366,
13033,
1,
16034,
3084,
62,
22416,
62,
22800,
38678,
11050,
366,
13033,
1,
22196,
34,
27564,
2043,
352,
8,
532,
357,
46506,
366,
13033,
1,
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
] | [
10919,
318,
262,
3580,
287,
2173,
1022,
717,
290,
938,
1295,
5633,
46506,
357,
46506,
366,
13033,
1,
16034,
3084,
62,
22416,
62,
22800,
38678,
11050,
366,
13033,
1,
22196,
34,
27564,
2043,
352,
8,
532,
357,
46506,
366,
13033,
1,
16034... |
What year was the average attendance 80,388? | SELECT AVG("Year") FROM table_71747 WHERE "Attendance" = '80,388' | [
2061,
614,
373,
262,
2811,
14858,
4019,
11,
30460,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
22,
1558,
2857,
33411,
366,
8086,
437,
590,
1,
796,
705,
1795,
11,
30460,
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,
614,
373,
262,
2811,
14858,
4019,
11,
30460,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
22,
1558,
2857,
33411,
366,
8086,
437,
590,
1,
796,
705,
1795,
11,
30460,
6
] |
when did patient 002-54808 visit the hospital for the first time until 2104? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '002-54808' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime LIMIT 1 | [
12518,
750,
5827,
3571,
17,
12,
4051,
28362,
3187,
262,
4436,
329,
262,
717,
640,
1566,
362,
13464,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
21601,
12,
4051,
28362,
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... | [
12518,
750,
5827,
3571,
17,
12,
4051,
28362,
3187,
262,
4436,
329,
262,
717,
640,
1566,
362,
13464,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
21601,
12,
4051,
28362,
6,
... |
What is the Translation of the US Customary value 0.263 pt? | SELECT translation FROM table_name_47 WHERE us_customary = "0.263 pt" | [
2061,
318,
262,
33322,
286,
262,
1294,
8562,
560,
1988,
657,
13,
29558,
42975,
30,
46506,
11059,
16034,
3084,
62,
3672,
62,
2857,
33411,
514,
62,
23144,
560,
796,
366,
15,
13,
29558,
42975,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33322,
286,
262,
1294,
8562,
560,
1988,
657,
13,
29558,
42975,
30,
46506,
11059,
16034,
3084,
62,
3672,
62,
2857,
33411,
514,
62,
23144,
560,
796,
366,
15,
13,
29558,
42975,
1
] |
Which Position has a Pick of 74? | SELECT position FROM table_name_42 WHERE pick = 74 | [
13828,
23158,
468,
257,
12346,
286,
8915,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3682,
33411,
2298,
796,
8915
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
23158,
468,
257,
12346,
286,
8915,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3682,
33411,
2298,
796,
8915
] |
give me the number of patients whose year of birth is less than 2053 and drug route is ivpca? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2053" AND prescriptions.route = "IVPCA" | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
4310,
290,
2563,
6339,
318,
21628,
79,
6888,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
4310,
290,
2563,
6339,
318,
21628,
79,
6888,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,... |
when did patient 11688 get its last urine microbiology test in 11/last year? | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11688) AND microbiologyevents.spec_type_desc = 'urine' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of... | [
12518,
750,
5827,
1367,
34427,
651,
663,
938,
18922,
24559,
1435,
1332,
287,
1367,
14,
12957,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
5827,
1367,
34427,
651,
663,
938,
18922,
24559,
1435,
1332,
287,
1367,
14,
12957,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
... |
Name the highest game for west (8) high assists | SELECT MAX(game) FROM table_name_35 WHERE high_assists = "west (8)" | [
5376,
262,
4511,
983,
329,
7421,
357,
23,
8,
1029,
13648,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
2327,
33411,
1029,
62,
562,
1023,
796,
366,
7038,
357,
23,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
4511,
983,
329,
7421,
357,
23,
8,
1029,
13648,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
2327,
33411,
1029,
62,
562,
1023,
796,
366,
7038,
357,
23,
16725
] |
Which Country has a To par smaller than 7, and a Total of 148? | SELECT "Country" FROM table_62583 WHERE "To par" < '7' AND "Total" = '148' | [
13828,
12946,
468,
257,
1675,
1582,
4833,
621,
767,
11,
290,
257,
7472,
286,
22613,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
26704,
5999,
33411,
366,
2514,
1582,
1,
1279,
705,
22,
6,
5357,
366,
14957,
1,
796,
705,
18294,
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
] | [
13828,
12946,
468,
257,
1675,
1582,
4833,
621,
767,
11,
290,
257,
7472,
286,
22613,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
26704,
5999,
33411,
366,
2514,
1582,
1,
1279,
705,
22,
6,
5357,
366,
14957,
1,
796,
705,
18294,
6
] |
Which song has picturization by only vijay? | SELECT "Song" FROM table_111 WHERE "Picturization" = 'Vijay' | [
13828,
3496,
468,
2862,
333,
1634,
416,
691,
410,
2926,
323,
30,
46506,
366,
44241,
1,
16034,
3084,
62,
16243,
33411,
366,
21300,
333,
1634,
1,
796,
705,
53,
2926,
323,
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
] | [
13828,
3496,
468,
2862,
333,
1634,
416,
691,
410,
2926,
323,
30,
46506,
366,
44241,
1,
16034,
3084,
62,
16243,
33411,
366,
21300,
333,
1634,
1,
796,
705,
53,
2926,
323,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.