instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What's the first elected year of the district that Ed Towns is an incumbent of? | SELECT first_elected FROM table_1341453_34 WHERE incumbent = "Ed Towns" | [
2061,
338,
262,
717,
7018,
614,
286,
262,
4783,
326,
1717,
40752,
318,
281,
23526,
286,
30,
46506,
717,
62,
28604,
16034,
3084,
62,
19880,
1415,
4310,
62,
2682,
33411,
23526,
796,
366,
7407,
40752,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
7018,
614,
286,
262,
4783,
326,
1717,
40752,
318,
281,
23526,
286,
30,
46506,
717,
62,
28604,
16034,
3084,
62,
19880,
1415,
4310,
62,
2682,
33411,
23526,
796,
366,
7407,
40752,
1
] |
Please return me a bar chart show what are the total smallest rating of different movie title?, order from high to low by the names. | SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY T2.title DESC | [
5492,
1441,
502,
257,
2318,
8262,
905,
644,
389,
262,
2472,
18197,
7955,
286,
1180,
3807,
3670,
21747,
1502,
422,
1029,
284,
1877,
416,
262,
3891,
13,
46506,
309,
17,
13,
7839,
11,
35683,
7,
23678,
7,
51,
16,
13,
30783,
4008,
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... | [
5492,
1441,
502,
257,
2318,
8262,
905,
644,
389,
262,
2472,
18197,
7955,
286,
1180,
3807,
3670,
21747,
1502,
422,
1029,
284,
1877,
416,
262,
3891,
13,
46506,
309,
17,
13,
7839,
11,
35683,
7,
23678,
7,
51,
16,
13,
30783,
4008,
16034,... |
How many Area's are there for Armstrong? | SELECT COUNT(area__km²_) FROM table_28367242_1 WHERE name = "Armstrong" | [
2437,
867,
9498,
338,
389,
612,
329,
21166,
30,
46506,
327,
28270,
7,
20337,
834,
13276,
31185,
62,
8,
16034,
3084,
62,
2078,
27824,
27877,
62,
16,
33411,
1438,
796,
366,
26560,
11576,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9498,
338,
389,
612,
329,
21166,
30,
46506,
327,
28270,
7,
20337,
834,
13276,
31185,
62,
8,
16034,
3084,
62,
2078,
27824,
27877,
62,
16,
33411,
1438,
796,
366,
26560,
11576,
1
] |
Which regio has a date of 24 march 2006? | SELECT region FROM table_name_15 WHERE date = "24 march 2006" | [
13828,
842,
952,
468,
257,
3128,
286,
1987,
9960,
4793,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
1314,
33411,
3128,
796,
366,
1731,
9960,
4793,
1
] | [
1,
1,
1,
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,
842,
952,
468,
257,
3128,
286,
1987,
9960,
4793,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
1314,
33411,
3128,
796,
366,
1731,
9960,
4793,
1
] |
what country is dubai in | SELECT country FROM table_name_50 WHERE town = "dubai" | [
10919,
1499,
318,
10873,
1872,
287,
46506,
1499,
16034,
3084,
62,
3672,
62,
1120,
33411,
3240,
796,
366,
67,
549,
1872,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1499,
318,
10873,
1872,
287,
46506,
1499,
16034,
3084,
62,
3672,
62,
1120,
33411,
3240,
796,
366,
67,
549,
1872,
1
] |
Show me a bar chart comparing the total number of captains of different classes. | SELECT Class, COUNT(Class) FROM captain GROUP BY Class | [
15307,
502,
257,
2318,
8262,
14176,
262,
2472,
1271,
286,
37551,
286,
1180,
6097,
13,
46506,
5016,
11,
327,
28270,
7,
9487,
8,
16034,
10654,
44441,
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
] | [
15307,
502,
257,
2318,
8262,
14176,
262,
2472,
1271,
286,
37551,
286,
1180,
6097,
13,
46506,
5016,
11,
327,
28270,
7,
9487,
8,
16034,
10654,
44441,
11050,
5016
] |
How many years did BBC One rank 20th? | SELECT COUNT(year) FROM table_103084_4 WHERE bbc_one_rank = "20th" | [
2437,
867,
812,
750,
7823,
1881,
4279,
1160,
400,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
940,
1270,
5705,
62,
19,
33411,
275,
15630,
62,
505,
62,
43027,
796,
366,
1238,
400,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
812,
750,
7823,
1881,
4279,
1160,
400,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
940,
1270,
5705,
62,
19,
33411,
275,
15630,
62,
505,
62,
43027,
796,
366,
1238,
400,
1
] |
What role is Kevin Bishop the actor? | SELECT "Role" FROM table_36173 WHERE "Actor" = 'kevin bishop' | [
2061,
2597,
318,
7939,
16559,
262,
8674,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
2623,
25399,
33411,
366,
40277,
1,
796,
705,
365,
7114,
24233,
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
] | [
2061,
2597,
318,
7939,
16559,
262,
8674,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
2623,
25399,
33411,
366,
40277,
1,
796,
705,
365,
7114,
24233,
6
] |
i'd like to see all flights from BALTIMORE to PHILADELPHIA | 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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHIL... | [
72,
1549,
588,
284,
766,
477,
13956,
422,
347,
31429,
3955,
6965,
284,
9370,
4146,
2885,
3698,
11909,
40,
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... | [
72,
1549,
588,
284,
766,
477,
13956,
422,
347,
31429,
3955,
6965,
284,
9370,
4146,
2885,
3698,
11909,
40,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
... |
Which Score has an Opponent of @ rockies, and a Record of 33-35? | SELECT "Score" FROM table_35115 WHERE "Opponent" = '@ rockies' AND "Record" = '33-35' | [
13828,
15178,
468,
281,
9385,
3471,
286,
2488,
3881,
444,
11,
290,
257,
13266,
286,
4747,
12,
2327,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2327,
15363,
33411,
366,
27524,
3471,
1,
796,
705,
31,
3881,
444,
6,
5357,
366,
23739,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
468,
281,
9385,
3471,
286,
2488,
3881,
444,
11,
290,
257,
13266,
286,
4747,
12,
2327,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2327,
15363,
33411,
366,
27524,
3471,
1,
796,
705,
31,
3881,
444,
6,
5357,
366,
23739,
1,... |
What is the Date of the match with a Score of 0 6, 2 6 with Partner Marcella Mesker? | SELECT date FROM table_name_57 WHERE partner = "marcella mesker" AND score = "0–6, 2–6" | [
2061,
318,
262,
7536,
286,
262,
2872,
351,
257,
15178,
286,
657,
718,
11,
362,
718,
351,
35532,
1526,
3846,
64,
14937,
6122,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3553,
33411,
5212,
796,
366,
3876,
3846,
64,
18842,
6122,
1,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
262,
2872,
351,
257,
15178,
286,
657,
718,
11,
362,
718,
351,
35532,
1526,
3846,
64,
14937,
6122,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3553,
33411,
5212,
796,
366,
3876,
3846,
64,
18842,
6122,
1,
53... |
Compare the lowest rating among all movies by each title using a histogram, and show from high to low by the stars. | SELECT title, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY MIN(T1.stars) DESC | [
41488,
262,
9016,
7955,
1871,
477,
6918,
416,
1123,
3670,
1262,
257,
1554,
21857,
11,
290,
905,
422,
1029,
284,
1877,
416,
262,
5788,
13,
46506,
3670,
11,
20625,
7,
51,
16,
13,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
41488,
262,
9016,
7955,
1871,
477,
6918,
416,
1123,
3670,
1262,
257,
1554,
21857,
11,
290,
905,
422,
1029,
284,
1877,
416,
262,
5788,
13,
46506,
3670,
11,
20625,
7,
51,
16,
13,
30783,
8,
16034,
12028,
7054,
309,
16,
32357,
1268,
158... |
What is the most wins for draws greater than 0? | SELECT MAX("Wins") FROM table_12511 WHERE "Draws" > '0' | [
2061,
318,
262,
749,
7864,
329,
14293,
3744,
621,
657,
30,
46506,
25882,
7203,
54,
1040,
4943,
16034,
3084,
62,
11623,
1157,
33411,
366,
25302,
82,
1,
1875,
705,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
749,
7864,
329,
14293,
3744,
621,
657,
30,
46506,
25882,
7203,
54,
1040,
4943,
16034,
3084,
62,
11623,
1157,
33411,
366,
25302,
82,
1,
1875,
705,
15,
6
] |
how many patients are with white ethnicity and with oral drug route? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE" AND prescriptions.route = "ORAL" | [
4919,
867,
3871,
389,
351,
2330,
26289,
290,
351,
12886,
2563,
6339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
389,
351,
2330,
26289,
290,
351,
12886,
2563,
6339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796... |
What series had an average of 3.72 million people watching it? | SELECT MAX("Series") FROM table_2979 WHERE "Average viewers (millions)" = '3.72' | [
2061,
2168,
550,
281,
2811,
286,
513,
13,
4761,
1510,
661,
4964,
340,
30,
46506,
25882,
7203,
27996,
4943,
16034,
3084,
62,
1959,
3720,
33411,
366,
26287,
10209,
357,
17805,
507,
16725,
796,
705,
18,
13,
4761,
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,
2168,
550,
281,
2811,
286,
513,
13,
4761,
1510,
661,
4964,
340,
30,
46506,
25882,
7203,
27996,
4943,
16034,
3084,
62,
1959,
3720,
33411,
366,
26287,
10209,
357,
17805,
507,
16725,
796,
705,
18,
13,
4761,
6
] |
have any procedures been performed on patient 52598 last year? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52598) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
14150,
597,
9021,
587,
6157,
319,
5827,
45719,
4089,
938,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14150,
597,
9021,
587,
6157,
319,
5827,
45719,
4089,
938,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
... |
What was the production code of the episode written by Joe Connelly and Bob Mosher titled 'Beaver Gets Adopted'? | SELECT "Production code" FROM table_20809 WHERE "Written by" = 'Joe Connelly and Bob Mosher' AND "Title" = 'Beaver Gets Adopted' | [
2061,
373,
262,
3227,
2438,
286,
262,
4471,
3194,
416,
5689,
20776,
6148,
290,
5811,
5826,
372,
11946,
705,
3856,
8770,
29620,
1215,
45256,
30960,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
1238,
34583,
33411,
366,
25354,
416,
1,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3227,
2438,
286,
262,
4471,
3194,
416,
5689,
20776,
6148,
290,
5811,
5826,
372,
11946,
705,
3856,
8770,
29620,
1215,
45256,
30960,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
1238,
34583,
33411,
366,
25354,
416,
1,
796,... |
What is every entry for assists if the player is Lynn Pride? | SELECT "Assists" FROM table_27582 WHERE "Player" = 'Lynn Pride' | [
2061,
318,
790,
5726,
329,
13648,
611,
262,
2137,
318,
24868,
21735,
30,
46506,
366,
8021,
1023,
1,
16034,
3084,
62,
1983,
46044,
33411,
366,
14140,
1,
796,
705,
37207,
77,
21735,
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,
790,
5726,
329,
13648,
611,
262,
2137,
318,
24868,
21735,
30,
46506,
366,
8021,
1023,
1,
16034,
3084,
62,
1983,
46044,
33411,
366,
14140,
1,
796,
705,
37207,
77,
21735,
6
] |
doron mazar , which artist -lrb- s -rrb- had the most points ? | SELECT "artist" FROM table_203_862 ORDER BY "points" DESC LIMIT 1 | [
40180,
261,
285,
29413,
837,
543,
6802,
532,
14050,
65,
12,
264,
532,
21062,
65,
12,
550,
262,
749,
2173,
5633,
46506,
366,
49016,
1,
16034,
3084,
62,
22416,
62,
4521,
17,
38678,
11050,
366,
13033,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40180,
261,
285,
29413,
837,
543,
6802,
532,
14050,
65,
12,
264,
532,
21062,
65,
12,
550,
262,
749,
2173,
5633,
46506,
366,
49016,
1,
16034,
3084,
62,
22416,
62,
4521,
17,
38678,
11050,
366,
13033,
1,
22196,
34,
27564,
2043,
352
] |
what is the points for when the club has 0 drawn and 60 tries against? | SELECT points_for FROM table_name_71 WHERE drawn = "0" AND tries_against = "60" | [
10919,
318,
262,
2173,
329,
618,
262,
3430,
468,
657,
7428,
290,
3126,
8404,
1028,
30,
46506,
2173,
62,
1640,
16034,
3084,
62,
3672,
62,
4869,
33411,
7428,
796,
366,
15,
1,
5357,
8404,
62,
32826,
796,
366,
1899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
329,
618,
262,
3430,
468,
657,
7428,
290,
3126,
8404,
1028,
30,
46506,
2173,
62,
1640,
16034,
3084,
62,
3672,
62,
4869,
33411,
7428,
796,
366,
15,
1,
5357,
8404,
62,
32826,
796,
366,
1899,
1
] |
how many gold medals were awarded between all 7 nations ? | SELECT SUM("gold") FROM table_203_497 | [
4919,
867,
3869,
28057,
547,
11343,
1022,
477,
767,
7027,
5633,
46506,
35683,
7203,
24267,
4943,
16034,
3084,
62,
22416,
62,
38073
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3869,
28057,
547,
11343,
1022,
477,
767,
7027,
5633,
46506,
35683,
7203,
24267,
4943,
16034,
3084,
62,
22416,
62,
38073
] |
What is the name of each aircraft and how many flights does each one complete Show bar chart, list bars from low to high order. | SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name | [
2061,
318,
262,
1438,
286,
1123,
6215,
290,
703,
867,
13956,
857,
1123,
530,
1844,
5438,
2318,
8262,
11,
1351,
9210,
422,
1877,
284,
1029,
1502,
13,
46506,
1438,
11,
327,
28270,
7,
28104,
16034,
5474,
7054,
309,
16,
32357,
1268,
6215,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1123,
6215,
290,
703,
867,
13956,
857,
1123,
530,
1844,
5438,
2318,
8262,
11,
1351,
9210,
422,
1877,
284,
1029,
1502,
13,
46506,
1438,
11,
327,
28270,
7,
28104,
16034,
5474,
7054,
309,
16,
32357,
1268,
6215,... |
what venue was the first olympic games held in 1984 ? | SELECT "venue" FROM table_204_780 WHERE "competition" = 'olympic games' AND "year" = 1984 | [
10919,
14359,
373,
262,
717,
267,
6760,
291,
1830,
2714,
287,
12844,
5633,
46506,
366,
4080,
1,
16034,
3084,
62,
18638,
62,
40873,
33411,
366,
5589,
15620,
1,
796,
705,
3366,
3149,
291,
1830,
6,
5357,
366,
1941,
1,
796,
12844
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14359,
373,
262,
717,
267,
6760,
291,
1830,
2714,
287,
12844,
5633,
46506,
366,
4080,
1,
16034,
3084,
62,
18638,
62,
40873,
33411,
366,
5589,
15620,
1,
796,
705,
3366,
3149,
291,
1830,
6,
5357,
366,
1941,
1,
796,
12844
] |
What is the Age of f/c Posiiton? | SELECT "Year born (Age)" FROM table_61906 WHERE "Position" = 'f/c' | [
2061,
318,
262,
7129,
286,
277,
14,
66,
18574,
72,
37752,
30,
46506,
366,
17688,
4642,
357,
23396,
16725,
16034,
3084,
62,
21,
1129,
3312,
33411,
366,
26545,
1,
796,
705,
69,
14,
66,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7129,
286,
277,
14,
66,
18574,
72,
37752,
30,
46506,
366,
17688,
4642,
357,
23396,
16725,
16034,
3084,
62,
21,
1129,
3312,
33411,
366,
26545,
1,
796,
705,
69,
14,
66,
6
] |
Find the first name of students in the descending order of age. | SELECT fname FROM student ORDER BY age DESC | [
16742,
262,
717,
1438,
286,
2444,
287,
262,
31491,
1502,
286,
2479,
13,
46506,
277,
3672,
16034,
3710,
38678,
11050,
2479,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
717,
1438,
286,
2444,
287,
262,
31491,
1502,
286,
2479,
13,
46506,
277,
3672,
16034,
3710,
38678,
11050,
2479,
22196,
34
] |
count the number of patients whose primary disease is coronary artery disease and age is less than 70? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND demographic.age < "70" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
37151,
37646,
4369,
290,
2479,
318,
1342,
621,
4317,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
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,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
37151,
37646,
4369,
290,
2479,
318,
1342,
621,
4317,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
36... |
Visualize a pie chart about the proportion of All_Road and Team_ID. | SELECT All_Road, Team_ID FROM basketball_match | [
36259,
1096,
257,
2508,
8262,
546,
262,
9823,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2508,
8262,
546,
262,
9823,
286,
1439,
62,
29197,
290,
4816,
62,
2389,
13,
46506,
1439,
62,
29197,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] |
Find the average credit score of the customers who do not have any loan. | SELECT AVG(credit_score) FROM customer WHERE NOT cust_id IN (SELECT cust_id FROM loan) | [
16742,
262,
2811,
3884,
4776,
286,
262,
4297,
508,
466,
407,
423,
597,
8063,
13,
46506,
35224,
7,
43082,
62,
26675,
8,
16034,
6491,
33411,
5626,
9378,
62,
312,
3268,
357,
46506,
9378,
62,
312,
16034,
8063,
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
] | [
16742,
262,
2811,
3884,
4776,
286,
262,
4297,
508,
466,
407,
423,
597,
8063,
13,
46506,
35224,
7,
43082,
62,
26675,
8,
16034,
6491,
33411,
5626,
9378,
62,
312,
3268,
357,
46506,
9378,
62,
312,
16034,
8063,
8
] |
What is the PAL B, G, H for the PAL I 4.43361875mhz? | SELECT pal_b, g, h FROM table_name_60 WHERE pal_i = "4.43361875mhz" | [
2061,
318,
262,
40795,
347,
11,
402,
11,
367,
329,
262,
40795,
314,
604,
13,
19,
29211,
1507,
2425,
76,
32179,
30,
46506,
6340,
62,
65,
11,
308,
11,
289,
16034,
3084,
62,
3672,
62,
1899,
33411,
6340,
62,
72,
796,
366,
19,
13,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
40795,
347,
11,
402,
11,
367,
329,
262,
40795,
314,
604,
13,
19,
29211,
1507,
2425,
76,
32179,
30,
46506,
6340,
62,
65,
11,
308,
11,
289,
16034,
3084,
62,
3672,
62,
1899,
33411,
6340,
62,
72,
796,
366,
19,
13,
19... |
Where was the game played when the home team scored 11.14 (80)? | SELECT "Venue" FROM table_10548 WHERE "Home team score" = '11.14 (80)' | [
8496,
373,
262,
983,
2826,
618,
262,
1363,
1074,
7781,
1367,
13,
1415,
357,
1795,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
13348,
2780,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1157,
13,
1415,
357,
1795,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
983,
2826,
618,
262,
1363,
1074,
7781,
1367,
13,
1415,
357,
1795,
19427,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
13348,
2780,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1157,
13,
1415,
357,
1795,
33047
] |
Which Frequency has a Model Number of c3 1.4a? | SELECT frequency FROM table_name_5 WHERE model_number = "c3 1.4a" | [
13828,
31902,
468,
257,
9104,
7913,
286,
269,
18,
352,
13,
19,
64,
30,
46506,
8373,
16034,
3084,
62,
3672,
62,
20,
33411,
2746,
62,
17618,
796,
366,
66,
18,
352,
13,
19,
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
] | [
13828,
31902,
468,
257,
9104,
7913,
286,
269,
18,
352,
13,
19,
64,
30,
46506,
8373,
16034,
3084,
62,
3672,
62,
20,
33411,
2746,
62,
17618,
796,
366,
66,
18,
352,
13,
19,
64,
1
] |
what is minimum age of patients whose insurance is self pay and primary disease is hypertension;rule out coronary artery disease\cardiac cath? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.insurance = "Self Pay" AND demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
5096,
318,
2116,
1414,
290,
4165,
4369,
318,
37454,
26,
25135,
503,
37151,
37646,
4369,
59,
9517,
9607,
32171,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5288,
2479,
286,
3871,
3025,
5096,
318,
2116,
1414,
290,
4165,
4369,
318,
37454,
26,
25135,
503,
37151,
37646,
4369,
59,
9517,
9607,
32171,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
... |
What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'? | SELECT T1.electoral_register_id FROM electoral_register AS T1 JOIN cmi_cross_references AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax' | [
2061,
389,
262,
7881,
220,
2340,
286,
13901,
4214,
1678,
326,
423,
262,
3272,
4941,
2723,
1080,
2438,
705,
19453,
6864,
6,
393,
705,
27017,
30960,
46506,
309,
16,
13,
9509,
6864,
62,
30238,
62,
312,
16034,
13901,
62,
30238,
7054,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
7881,
220,
2340,
286,
13901,
4214,
1678,
326,
423,
262,
3272,
4941,
2723,
1080,
2438,
705,
19453,
6864,
6,
393,
705,
27017,
30960,
46506,
309,
16,
13,
9509,
6864,
62,
30238,
62,
312,
16034,
13901,
62,
30238,
7054,
309,... |
Name the fluency for transcortical sensory aphasia | SELECT "Fluency" FROM table_73240 WHERE "Type of aphasia" = 'Transcortical sensory aphasia' | [
5376,
262,
6562,
1387,
329,
23589,
419,
605,
23326,
257,
5902,
544,
46506,
366,
37,
2290,
1387,
1,
16034,
3084,
62,
4790,
16102,
33411,
366,
6030,
286,
257,
5902,
544,
1,
796,
705,
8291,
66,
419,
605,
23326,
257,
5902,
544,
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
] | [
5376,
262,
6562,
1387,
329,
23589,
419,
605,
23326,
257,
5902,
544,
46506,
366,
37,
2290,
1387,
1,
16034,
3084,
62,
4790,
16102,
33411,
366,
6030,
286,
257,
5902,
544,
1,
796,
705,
8291,
66,
419,
605,
23326,
257,
5902,
544,
6
] |
Bring me the list of patients less than 45 years old who have drug code levo75. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "45" AND prescriptions.formulary_drug_cd = "LEVO75" | [
31416,
502,
262,
1351,
286,
3871,
1342,
621,
4153,
812,
1468,
508,
423,
2563,
2438,
443,
13038,
2425,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
31416,
502,
262,
1351,
286,
3871,
1342,
621,
4153,
812,
1468,
508,
423,
2563,
2438,
443,
13038,
2425,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
1... |
had aspirin ec, phenytoin sodium or potassium chloride been in their current hospital visit prescribed for patient 72909? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 72909 AND admissions.dischtime IS NULL) AND prescriptions.drug IN ('aspirin ec', 'phenytoin sodium', 'potassium chloride') | [
18108,
49550,
9940,
11,
6566,
88,
1462,
259,
21072,
393,
33156,
44921,
587,
287,
511,
1459,
4436,
3187,
14798,
329,
5827,
767,
1959,
2931,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
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,
1,
1,
1,
1,
1,
1,
1,
1,
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,
49550,
9940,
11,
6566,
88,
1462,
259,
21072,
393,
33156,
44921,
587,
287,
511,
1459,
4436,
3187,
14798,
329,
5827,
767,
1959,
2931,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
... |
james sloan is categorized under which lab test category? | SELECT lab."CATEGORY" FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "James Sloan" | [
73,
1047,
1017,
24611,
318,
37661,
739,
543,
2248,
1332,
6536,
30,
46506,
2248,
526,
34,
6158,
38,
15513,
1,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
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
] | [
73,
1047,
1017,
24611,
318,
37661,
739,
543,
2248,
1332,
6536,
30,
46506,
2248,
526,
34,
6158,
38,
15513,
1,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
... |
How many Silvers that have a Rank of 2? | SELECT COUNT(silver) FROM table_name_2 WHERE rank = "2" | [
2437,
867,
4243,
690,
326,
423,
257,
10916,
286,
362,
30,
46506,
327,
28270,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
4279,
796,
366,
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
] | [
2437,
867,
4243,
690,
326,
423,
257,
10916,
286,
362,
30,
46506,
327,
28270,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
4279,
796,
366,
17,
1
] |
Which EC Comics title ran from 1950 to 1953? | SELECT "Title" FROM table_55143 WHERE "First Year" = '1950' AND "Publisher" = 'ec comics' AND "Last Year" = '1953' | [
13828,
13182,
15650,
3670,
4966,
422,
11445,
284,
24217,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2816,
21139,
33411,
366,
5962,
6280,
1,
796,
705,
42751,
6,
5357,
366,
46471,
1,
796,
705,
721,
12770,
6,
5357,
366,
5956,
6280,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13182,
15650,
3670,
4966,
422,
11445,
284,
24217,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2816,
21139,
33411,
366,
5962,
6280,
1,
796,
705,
42751,
6,
5357,
366,
46471,
1,
796,
705,
721,
12770,
6,
5357,
366,
5956,
6280,
1,
... |
What shows for 2000 when 2013 shows 3rd? | SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd" | [
2061,
2523,
329,
4751,
618,
2211,
2523,
513,
4372,
30,
46506,
4751,
16034,
3084,
62,
3672,
62,
1129,
33411,
2211,
796,
366,
18,
4372,
1
] | [
1,
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,
2523,
329,
4751,
618,
2211,
2523,
513,
4372,
30,
46506,
4751,
16034,
3084,
62,
3672,
62,
1129,
33411,
2211,
796,
366,
18,
4372,
1
] |
What time slot is the episode 'who's your daddy' in | SELECT "Time slot (EST)" FROM table_16561 WHERE "Episode" = 'Who''s Your Daddy' | [
2061,
640,
10852,
318,
262,
4471,
705,
8727,
338,
534,
35822,
6,
287,
46506,
366,
7575,
10852,
357,
6465,
16725,
16034,
3084,
62,
1433,
47915,
33411,
366,
23758,
1,
796,
705,
8241,
7061,
82,
3406,
26926,
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,
640,
10852,
318,
262,
4471,
705,
8727,
338,
534,
35822,
6,
287,
46506,
366,
7575,
10852,
357,
6465,
16725,
16034,
3084,
62,
1433,
47915,
33411,
366,
23758,
1,
796,
705,
8241,
7061,
82,
3406,
26926,
6
] |
Show the number of visit date from each visit date, list total number in descending order please. | SELECT Visit_Date, COUNT(Visit_Date) FROM Visits ORDER BY COUNT(Visit_Date) DESC | [
15307,
262,
1271,
286,
3187,
3128,
422,
1123,
3187,
3128,
11,
1351,
2472,
1271,
287,
31491,
1502,
3387,
13,
46506,
16440,
62,
10430,
11,
327,
28270,
7,
31141,
62,
10430,
8,
16034,
6911,
896,
38678,
11050,
327,
28270,
7,
31141,
62,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3187,
3128,
422,
1123,
3187,
3128,
11,
1351,
2472,
1271,
287,
31491,
1502,
3387,
13,
46506,
16440,
62,
10430,
11,
327,
28270,
7,
31141,
62,
10430,
8,
16034,
6911,
896,
38678,
11050,
327,
28270,
7,
31141,
62,
104... |
Which upper-level COMM classes are taught this Spring ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'COMM' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring... | [
13828,
6727,
12,
5715,
22240,
6097,
389,
7817,
428,
8225,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,
62,
17319,
11,
24878,
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,
6727,
12,
5715,
22240,
6097,
389,
7817,
428,
8225,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,
62,
17319,
11,
24878,
33411... |
What try bonus drew 0 and scored 427 points for? | SELECT try_bonus FROM table_name_83 WHERE drawn = "0" AND points_for = "427" | [
2061,
1949,
7202,
9859,
657,
290,
7781,
45345,
2173,
329,
30,
46506,
1949,
62,
4189,
385,
16034,
3084,
62,
3672,
62,
5999,
33411,
7428,
796,
366,
15,
1,
5357,
2173,
62,
1640,
796,
366,
42363,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1949,
7202,
9859,
657,
290,
7781,
45345,
2173,
329,
30,
46506,
1949,
62,
4189,
385,
16034,
3084,
62,
3672,
62,
5999,
33411,
7428,
796,
366,
15,
1,
5357,
2173,
62,
1640,
796,
366,
42363,
1
] |
which standard was published first ? | SELECT "iso/iec standard" FROM table_204_200 ORDER BY "status" LIMIT 1 | [
4758,
3210,
373,
3199,
717,
5633,
46506,
366,
26786,
14,
494,
66,
3210,
1,
16034,
3084,
62,
18638,
62,
2167,
38678,
11050,
366,
13376,
1,
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,
3210,
373,
3199,
717,
5633,
46506,
366,
26786,
14,
494,
66,
3210,
1,
16034,
3084,
62,
18638,
62,
2167,
38678,
11050,
366,
13376,
1,
27564,
2043,
352
] |
how many total players are on the current roster ? | SELECT COUNT("player") FROM table_203_418 | [
4919,
867,
2472,
1938,
389,
319,
262,
1459,
9354,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
39667
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
2472,
1938,
389,
319,
262,
1459,
9354,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
39667
] |
Show the name of aircrafts with top three lowest distances. | SELECT name FROM aircraft ORDER BY distance LIMIT 3 | [
15307,
262,
1438,
286,
6215,
82,
351,
1353,
1115,
9016,
18868,
13,
46506,
1438,
16034,
6215,
38678,
11050,
5253,
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
] | [
15307,
262,
1438,
286,
6215,
82,
351,
1353,
1115,
9016,
18868,
13,
46506,
1438,
16034,
6215,
38678,
11050,
5253,
27564,
2043,
513
] |
count the number of self pay insurance patients who stayed in hospital for more than 30 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Self Pay" AND demographic.days_stay > "30" | [
9127,
262,
1271,
286,
2116,
1414,
5096,
3871,
508,
9658,
287,
4436,
329,
517,
621,
1542,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
24704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2116,
1414,
5096,
3871,
508,
9658,
287,
4436,
329,
517,
621,
1542,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
24704,
... |
how many patients are admitted in emergency and diagnosed with compl kidney transplant? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.short_title = "Compl kidney transplant" | [
4919,
867,
3871,
389,
6848,
287,
6334,
290,
14641,
351,
2299,
21919,
23319,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
389,
6848,
287,
6334,
290,
14641,
351,
2299,
21919,
23319,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
3... |
What was the score of Wally Armstrong? | SELECT score FROM table_name_49 WHERE player = "wally armstrong" | [
2061,
373,
262,
4776,
286,
50117,
21166,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2920,
33411,
2137,
796,
366,
86,
453,
3211,
11576,
1
] | [
1,
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,
50117,
21166,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2920,
33411,
2137,
796,
366,
86,
453,
3211,
11576,
1
] |
What is the nationality of the play for New Jersey from 2007-2009? | SELECT "Nationality" FROM table_8320 WHERE "Years in New Jersey" = '2007-2009' | [
2061,
318,
262,
29835,
286,
262,
711,
329,
968,
8221,
422,
4343,
12,
10531,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
5999,
1238,
33411,
366,
40630,
287,
968,
8221,
1,
796,
705,
12726,
12,
10531,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
29835,
286,
262,
711,
329,
968,
8221,
422,
4343,
12,
10531,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
5999,
1238,
33411,
366,
40630,
287,
968,
8221,
1,
796,
705,
12726,
12,
10531,
6
] |
tell me the minimum total hospital cost for a patient with seizures - suspected since 1 year ago? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'seizures - suspected')) AND DATETIME(cost.ch... | [
33331,
502,
262,
5288,
2472,
4436,
1575,
329,
257,
5827,
351,
24715,
532,
9885,
1201,
352,
614,
2084,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
5288,
2472,
4436,
1575,
329,
257,
5827,
351,
24715,
532,
9885,
1201,
352,
614,
2084,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
... |
How many measurements of the Czech Republic's population density are recorded in this table? | SELECT COUNT(pop_density_people_km_2) FROM table_24066938_1 WHERE member_state = "Czech Republic" | [
2437,
867,
13871,
286,
262,
16639,
2066,
338,
3265,
12109,
389,
6264,
287,
428,
3084,
30,
46506,
327,
28270,
7,
12924,
62,
43337,
62,
15332,
62,
13276,
62,
17,
8,
16034,
3084,
62,
16102,
36657,
2548,
62,
16,
33411,
2888,
62,
5219,
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
] | [
2437,
867,
13871,
286,
262,
16639,
2066,
338,
3265,
12109,
389,
6264,
287,
428,
3084,
30,
46506,
327,
28270,
7,
12924,
62,
43337,
62,
15332,
62,
13276,
62,
17,
8,
16034,
3084,
62,
16102,
36657,
2548,
62,
16,
33411,
2888,
62,
5219,
7... |
What is the relationship between number of accounts and customer id? Show me a scatter chart. | SELECT T1.customer_id, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id | [
2061,
318,
262,
2776,
1022,
1271,
286,
5504,
290,
6491,
4686,
30,
5438,
502,
257,
41058,
8262,
13,
46506,
309,
16,
13,
23144,
263,
62,
312,
11,
327,
28270,
7,
28104,
16034,
35584,
7054,
309,
16,
32357,
1268,
36707,
7054,
309,
17,
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... | [
2061,
318,
262,
2776,
1022,
1271,
286,
5504,
290,
6491,
4686,
30,
5438,
502,
257,
41058,
8262,
13,
46506,
309,
16,
13,
23144,
263,
62,
312,
11,
327,
28270,
7,
28104,
16034,
35584,
7054,
309,
16,
32357,
1268,
36707,
7054,
309,
17,
61... |
What was the date for game 9? | SELECT date FROM table_20760407_1 WHERE game = 9 | [
2061,
373,
262,
3128,
329,
983,
860,
30,
46506,
3128,
16034,
3084,
62,
22745,
1899,
30120,
62,
16,
33411,
983,
796,
860
] | [
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,
3128,
329,
983,
860,
30,
46506,
3128,
16034,
3084,
62,
22745,
1899,
30120,
62,
16,
33411,
983,
796,
860
] |
what is the series number of the 'harry bladder special'? | SELECT "Series #" FROM table_3582 WHERE "Episode title" = 'Harry Bladder Special' | [
10919,
318,
262,
2168,
1271,
286,
262,
705,
71,
6532,
34918,
2041,
30960,
46506,
366,
27996,
1303,
1,
16034,
3084,
62,
2327,
6469,
33411,
366,
23758,
3670,
1,
796,
705,
18308,
1086,
26676,
6093,
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
] | [
10919,
318,
262,
2168,
1271,
286,
262,
705,
71,
6532,
34918,
2041,
30960,
46506,
366,
27996,
1303,
1,
16034,
3084,
62,
2327,
6469,
33411,
366,
23758,
3670,
1,
796,
705,
18308,
1086,
26676,
6093,
6
] |
What was the outcome when she partnered with mashona washington? | SELECT "Outcome" FROM table_33150 WHERE "Partner" = 'mashona washington' | [
2061,
373,
262,
8055,
618,
673,
29806,
351,
30407,
4450,
20518,
1122,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
2091,
8628,
33411,
366,
7841,
1008,
1,
796,
705,
76,
1077,
4450,
20518,
1122,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
8055,
618,
673,
29806,
351,
30407,
4450,
20518,
1122,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
2091,
8628,
33411,
366,
7841,
1008,
1,
796,
705,
76,
1077,
4450,
20518,
1122,
6
] |
When was the rate for 16-17 year olds 3.40? | SELECT "From" FROM table_54908 WHERE "16-17 Year Olds Rate" = '£3.40' | [
2215,
373,
262,
2494,
329,
1467,
12,
1558,
614,
44979,
513,
13,
1821,
30,
46506,
366,
4863,
1,
16034,
3084,
62,
44966,
2919,
33411,
366,
1433,
12,
1558,
6280,
5706,
82,
14806,
1,
796,
705,
14988,
18,
13,
1821,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
262,
2494,
329,
1467,
12,
1558,
614,
44979,
513,
13,
1821,
30,
46506,
366,
4863,
1,
16034,
3084,
62,
44966,
2919,
33411,
366,
1433,
12,
1558,
6280,
5706,
82,
14806,
1,
796,
705,
14988,
18,
13,
1821,
6
] |
Show the name and location of track with 1 race. | SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1 | [
15307,
262,
1438,
290,
4067,
286,
2610,
351,
352,
3234,
13,
46506,
309,
17,
13,
3672,
11,
309,
17,
13,
24886,
16034,
3234,
7054,
309,
16,
32357,
1268,
2610,
7054,
309,
17,
6177,
309,
16,
13,
11659,
62,
312,
796,
309,
17,
13,
11659... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
1438,
290,
4067,
286,
2610,
351,
352,
3234,
13,
46506,
309,
17,
13,
3672,
11,
309,
17,
13,
24886,
16034,
3234,
7054,
309,
16,
32357,
1268,
2610,
7054,
309,
17,
6177,
309,
16,
13,
11659,
62,
312,
796,
309,
17,
13,
11659... |
Who was the incoming head coach after Wan Jamak Wan Hassan quit the coaching job? | SELECT "Incoming Head Coach" FROM table_30985 WHERE "Outgoing Head Coach" = 'Wan Jamak Wan Hassan' | [
8241,
373,
262,
15619,
1182,
3985,
706,
33242,
9986,
461,
33242,
24485,
11238,
262,
13101,
1693,
30,
46506,
366,
818,
4976,
7123,
16393,
1,
16034,
3084,
62,
1270,
42250,
33411,
366,
7975,
5146,
7123,
16393,
1,
796,
705,
45681,
9986,
461... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15619,
1182,
3985,
706,
33242,
9986,
461,
33242,
24485,
11238,
262,
13101,
1693,
30,
46506,
366,
818,
4976,
7123,
16393,
1,
16034,
3084,
62,
1270,
42250,
33411,
366,
7975,
5146,
7123,
16393,
1,
796,
705,
45681,
9986,
461... |
What is the scoring average where the wins are 0? | SELECT COUNT(scoring_average) FROM table_name_56 WHERE wins < 0 | [
2061,
318,
262,
9689,
2811,
810,
262,
7864,
389,
657,
30,
46506,
327,
28270,
7,
46536,
62,
23913,
8,
16034,
3084,
62,
3672,
62,
3980,
33411,
7864,
1279,
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
] | [
2061,
318,
262,
9689,
2811,
810,
262,
7864,
389,
657,
30,
46506,
327,
28270,
7,
46536,
62,
23913,
8,
16034,
3084,
62,
3672,
62,
3980,
33411,
7864,
1279,
657
] |
Number of posts by user from France or India per age and location. | SELECT a2."age" AS "Age", a2.Location AS "Location", COUNT(*) AS "count_posts" FROM "Posts " AS a1 LEFT OUTER JOIN Users AS a2 ON (a2.Id = a1."LastEditorUserId ") WHERE (a2.Location IN ('France', 'India')) GROUP BY a2."age", a2.Location ORDER BY 'Age' DESC, 'Location' DESC | [
15057,
286,
6851,
416,
2836,
422,
4881,
393,
3794,
583,
2479,
290,
4067,
13,
46506,
257,
17,
526,
496,
1,
7054,
366,
23396,
1600,
257,
17,
13,
14749,
7054,
366,
14749,
1600,
327,
28270,
7,
28104,
7054,
366,
9127,
62,
24875,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
15057,
286,
6851,
416,
2836,
422,
4881,
393,
3794,
583,
2479,
290,
4067,
13,
46506,
257,
17,
526,
496,
1,
7054,
366,
23396,
1600,
257,
17,
13,
14749,
7054,
366,
14749,
1600,
327,
28270,
7,
28104,
7054,
366,
9127,
62,
24875,
1,
16034... |
how many times was the candidates dan mica (d) 55.3% bill james (r) 44.7%? | SELECT COUNT("Incumbent") FROM table_722 WHERE "Candidates" = 'Dan Mica (D) 55.3% Bill James (R) 44.7%' | [
4919,
867,
1661,
373,
262,
5871,
46078,
285,
3970,
357,
67,
8,
5996,
13,
18,
4,
2855,
474,
1047,
357,
81,
8,
5846,
13,
22,
4,
30,
46506,
327,
28270,
7203,
25517,
2178,
298,
4943,
16034,
3084,
62,
22,
1828,
33411,
366,
41572,
37051... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
262,
5871,
46078,
285,
3970,
357,
67,
8,
5996,
13,
18,
4,
2855,
474,
1047,
357,
81,
8,
5846,
13,
22,
4,
30,
46506,
327,
28270,
7203,
25517,
2178,
298,
4943,
16034,
3084,
62,
22,
1828,
33411,
366,
41572,
37051... |
Show me how many home team by home team in a histogram, and I want to order how many home team in ascending order. | SELECT Home_team, COUNT(Home_team) FROM game GROUP BY Home_team ORDER BY COUNT(Home_team) | [
15307,
502,
703,
867,
1363,
1074,
416,
1363,
1074,
287,
257,
1554,
21857,
11,
290,
314,
765,
284,
1502,
703,
867,
1363,
1074,
287,
41988,
1502,
13,
46506,
5995,
62,
15097,
11,
327,
28270,
7,
16060,
62,
15097,
8,
16034,
983,
44441,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
703,
867,
1363,
1074,
416,
1363,
1074,
287,
257,
1554,
21857,
11,
290,
314,
765,
284,
1502,
703,
867,
1363,
1074,
287,
41988,
1502,
13,
46506,
5995,
62,
15097,
11,
327,
28270,
7,
16060,
62,
15097,
8,
16034,
983,
44441,
1... |
what is the change in the amount of wbc x 1000 in patient 017-45919 second measured on the current hospital visit compared to the first value measured on the current hospital visit? | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-45919' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'wbc x... | [
10919,
318,
262,
1487,
287,
262,
2033,
286,
266,
15630,
2124,
8576,
287,
5827,
5534,
22,
12,
33459,
1129,
1218,
8630,
319,
262,
1459,
4436,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
1459,
4436,
3187,
30,
46506,
357,
46506,
2248... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1487,
287,
262,
2033,
286,
266,
15630,
2124,
8576,
287,
5827,
5534,
22,
12,
33459,
1129,
1218,
8630,
319,
262,
1459,
4436,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
1459,
4436,
3187,
30,
46506,
357,
46506,
2248... |
Who are all of the telecom providers for which the upload rate is 1024 kbits and the resale category is yes? | SELECT "Provider" FROM table_72930 WHERE "Up (up to kbit/s)" = '1024' AND "Resale" = 'yes' | [
8241,
389,
477,
286,
262,
30452,
9549,
329,
543,
262,
9516,
2494,
318,
28119,
479,
9895,
290,
262,
581,
1000,
6536,
318,
3763,
30,
46506,
366,
29495,
1,
16034,
3084,
62,
48555,
1270,
33411,
366,
4933,
357,
929,
284,
479,
2545,
14,
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
] | [
8241,
389,
477,
286,
262,
30452,
9549,
329,
543,
262,
9516,
2494,
318,
28119,
479,
9895,
290,
262,
581,
1000,
6536,
318,
3763,
30,
46506,
366,
29495,
1,
16034,
3084,
62,
48555,
1270,
33411,
366,
4933,
357,
929,
284,
479,
2545,
14,
8... |
how many patients of white ethnicity had drug type as additive? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE" AND prescriptions.drug_type = "ADDITIVE" | [
4919,
867,
3871,
286,
2330,
26289,
550,
2563,
2099,
355,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
340... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
2330,
26289,
550,
2563,
2099,
355,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
340... |
What title was release November 17, 2009 in a 16:9 aspect ratio? | SELECT dvd_title FROM table_name_5 WHERE aspect_ratio = "16:9" AND release_date = "november 17, 2009" | [
2061,
3670,
373,
2650,
3389,
1596,
11,
3717,
287,
257,
1467,
25,
24,
4843,
8064,
30,
46506,
288,
20306,
62,
7839,
16034,
3084,
62,
3672,
62,
20,
33411,
4843,
62,
10366,
952,
796,
366,
1433,
25,
24,
1,
5357,
2650,
62,
4475,
796,
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
] | [
2061,
3670,
373,
2650,
3389,
1596,
11,
3717,
287,
257,
1467,
25,
24,
4843,
8064,
30,
46506,
288,
20306,
62,
7839,
16034,
3084,
62,
3672,
62,
20,
33411,
4843,
62,
10366,
952,
796,
366,
1433,
25,
24,
1,
5357,
2650,
62,
4475,
796,
36... |
in which tournament did the team score the most points per game ? | SELECT "tournament" FROM table_203_527 ORDER BY "points per game" DESC LIMIT 1 | [
259,
543,
7756,
750,
262,
1074,
4776,
262,
749,
2173,
583,
983,
5633,
46506,
366,
83,
5138,
1,
16034,
3084,
62,
22416,
62,
20,
1983,
38678,
11050,
366,
13033,
583,
983,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
543,
7756,
750,
262,
1074,
4776,
262,
749,
2173,
583,
983,
5633,
46506,
366,
83,
5138,
1,
16034,
3084,
62,
22416,
62,
20,
1983,
38678,
11050,
366,
13033,
583,
983,
1,
22196,
34,
27564,
2043,
352
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by time, I want to rank from high to low by the y-axis. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COUNT(HIRE_DATE) DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
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,
1,
1,
1,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
64... |
in what year did the colors red and gold join? | SELECT COUNT(year_joined) FROM table_20887670_1 WHERE colors = "Red and Gold" | [
259,
644,
614,
750,
262,
7577,
2266,
290,
3869,
4654,
30,
46506,
327,
28270,
7,
1941,
62,
46416,
8,
16034,
3084,
62,
1238,
3459,
4304,
2154,
62,
16,
33411,
7577,
796,
366,
7738,
290,
3561,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
644,
614,
750,
262,
7577,
2266,
290,
3869,
4654,
30,
46506,
327,
28270,
7,
1941,
62,
46416,
8,
16034,
3084,
62,
1238,
3459,
4304,
2154,
62,
16,
33411,
7577,
796,
366,
7738,
290,
3561,
1
] |
What is the total number of Losses when the percentage is 54.83, with more than 8 points? | SELECT COUNT("Losses") FROM table_40767 WHERE "Percentage" = '54.83' AND "Points" > '8' | [
2061,
318,
262,
2472,
1271,
286,
22014,
274,
618,
262,
5873,
318,
7175,
13,
5999,
11,
351,
517,
621,
807,
2173,
30,
46506,
327,
28270,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
30120,
3134,
33411,
366,
31905,
496,
1,
796,
705,
4051... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
22014,
274,
618,
262,
5873,
318,
7175,
13,
5999,
11,
351,
517,
621,
807,
2173,
30,
46506,
327,
28270,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
30120,
3134,
33411,
366,
31905,
496,
1,
796,
705,
4051... |
what country hosted david toms | SELECT "Country" FROM table_39506 WHERE "Player" = 'david toms' | [
10919,
1499,
12007,
21970,
284,
907,
46506,
366,
33921,
1,
16034,
3084,
62,
2670,
35638,
33411,
366,
14140,
1,
796,
705,
67,
8490,
284,
907,
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
] | [
10919,
1499,
12007,
21970,
284,
907,
46506,
366,
33921,
1,
16034,
3084,
62,
2670,
35638,
33411,
366,
14140,
1,
796,
705,
67,
8490,
284,
907,
6
] |
What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals? | SELECT SUM("Rank") FROM table_44690 WHERE "Gold" > '1' AND "Total" > '4' | [
2061,
318,
262,
10916,
286,
262,
8741,
351,
517,
621,
352,
3561,
290,
257,
517,
621,
604,
7472,
28057,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2598,
35844,
33411,
366,
13306,
1,
1875,
705,
16,
6,
5357,
366,
14957,
1,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10916,
286,
262,
8741,
351,
517,
621,
352,
3561,
290,
257,
517,
621,
604,
7472,
28057,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
2598,
35844,
33411,
366,
13306,
1,
1875,
705,
16,
6,
5357,
366,
14957,
1,
1... |
Question Score VS Question Size. | SELECT Id, Score, LENGTH(Body) AS size FROM Posts WHERE PostTypeId = 1 ORDER BY Score DESC LIMIT 1000 | [
24361,
15178,
22269,
18233,
12849,
13,
46506,
5121,
11,
15178,
11,
406,
49494,
7,
25842,
8,
7054,
2546,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
38678,
11050,
15178,
22196,
34,
27564,
2043,
8576
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24361,
15178,
22269,
18233,
12849,
13,
46506,
5121,
11,
15178,
11,
406,
49494,
7,
25842,
8,
7054,
2546,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
38678,
11050,
15178,
22196,
34,
27564,
2043,
8576
] |
calculate the average age of self pay insurance patients who had urgent hospital admission. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.insurance = "Self Pay" | [
9948,
3129,
378,
262,
2811,
2479,
286,
2116,
1414,
5096,
3871,
508,
550,
18039,
4436,
13938,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
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
] | [
9948,
3129,
378,
262,
2811,
2479,
286,
2116,
1414,
5096,
3871,
508,
550,
18039,
4436,
13938,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
1,
5357,
16728,
... |
Which club was founded in 1962? | SELECT "Club" FROM table_62501 WHERE "Founded" = '1962' | [
13828,
3430,
373,
9393,
287,
20033,
30,
46506,
366,
42350,
1,
16034,
3084,
62,
26704,
486,
33411,
366,
37,
6302,
1,
796,
705,
1129,
5237,
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
] | [
13828,
3430,
373,
9393,
287,
20033,
30,
46506,
366,
42350,
1,
16034,
3084,
62,
26704,
486,
33411,
366,
37,
6302,
1,
796,
705,
1129,
5237,
6
] |
Show all countries and the number of people from each country. | SELECT country, COUNT(*) FROM people GROUP BY country | [
15307,
477,
2678,
290,
262,
1271,
286,
661,
422,
1123,
1499,
13,
46506,
1499,
11,
327,
28270,
7,
28104,
16034,
661,
44441,
11050,
1499
] | [
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,
2678,
290,
262,
1271,
286,
661,
422,
1123,
1499,
13,
46506,
1499,
11,
327,
28270,
7,
28104,
16034,
661,
44441,
11050,
1499
] |
In the 2008/2009 season one team had 1 losing bonus, How many points did that team score that year? | SELECT points_for FROM table_13399573_4 WHERE losing_bonus = "1" | [
818,
262,
3648,
14,
10531,
1622,
530,
1074,
550,
352,
6078,
7202,
11,
1374,
867,
2173,
750,
326,
1074,
4776,
326,
614,
30,
46506,
2173,
62,
1640,
16034,
3084,
62,
16945,
2079,
48638,
62,
19,
33411,
6078,
62,
4189,
385,
796,
366,
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
] | [
818,
262,
3648,
14,
10531,
1622,
530,
1074,
550,
352,
6078,
7202,
11,
1374,
867,
2173,
750,
326,
1074,
4776,
326,
614,
30,
46506,
2173,
62,
1640,
16034,
3084,
62,
16945,
2079,
48638,
62,
19,
33411,
6078,
62,
4189,
385,
796,
366,
16,... |
what is number of acres in castledon | SELECT "area\nacres" FROM table_203_207 WHERE "site name" = 'castleton' | [
10919,
318,
1271,
286,
16051,
287,
3350,
992,
261,
46506,
366,
20337,
59,
77,
330,
411,
1,
16034,
3084,
62,
22416,
62,
22745,
33411,
366,
15654,
1438,
1,
796,
705,
2701,
10565,
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,
318,
1271,
286,
16051,
287,
3350,
992,
261,
46506,
366,
20337,
59,
77,
330,
411,
1,
16034,
3084,
62,
22416,
62,
22745,
33411,
366,
15654,
1438,
1,
796,
705,
2701,
10565,
6
] |
What is the title rank of actor pauline moran? | SELECT title_rank FROM table_name_93 WHERE actor = "pauline moran" | [
2061,
318,
262,
3670,
4279,
286,
8674,
279,
2518,
500,
2146,
272,
30,
46506,
3670,
62,
43027,
16034,
3084,
62,
3672,
62,
6052,
33411,
8674,
796,
366,
79,
2518,
500,
2146,
272,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3670,
4279,
286,
8674,
279,
2518,
500,
2146,
272,
30,
46506,
3670,
62,
43027,
16034,
3084,
62,
3672,
62,
6052,
33411,
8674,
796,
366,
79,
2518,
500,
2146,
272,
1
] |
How many movie reviews does each director get Show bar chart, sort y-axis in desc order please. | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY COUNT(*) DESC | [
2437,
867,
3807,
8088,
857,
1123,
3437,
651,
5438,
2318,
8262,
11,
3297,
331,
12,
22704,
287,
1715,
1502,
3387,
13,
46506,
3437,
11,
327,
28270,
7,
28104,
16034,
15875,
7054,
309,
16,
32357,
1268,
12028,
7054,
309,
17,
6177,
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... | [
2437,
867,
3807,
8088,
857,
1123,
3437,
651,
5438,
2318,
8262,
11,
3297,
331,
12,
22704,
287,
1715,
1502,
3387,
13,
46506,
3437,
11,
327,
28270,
7,
28104,
16034,
15875,
7054,
309,
16,
32357,
1268,
12028,
7054,
309,
17,
6177,
309,
16,
... |
when was the last time that patient 19981 was given a hemoglobin lab test in 02/last year? | SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemoglobin') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19981) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURR... | [
12518,
373,
262,
938,
640,
326,
5827,
1594,
6659,
373,
1813,
257,
16869,
49835,
2248,
1332,
287,
7816,
14,
12957,
614,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
938,
640,
326,
5827,
1594,
6659,
373,
1813,
257,
16869,
49835,
2248,
1332,
287,
7816,
14,
12957,
614,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288... |
Find the number of students in total. | SELECT COUNT(*) FROM list | [
16742,
262,
1271,
286,
2444,
287,
2472,
13,
46506,
327,
28270,
7,
28104,
16034,
1351
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
2444,
287,
2472,
13,
46506,
327,
28270,
7,
28104,
16034,
1351
] |
What percentage of users were using Netscape during the period in which 21.67% were using Firefox? | SELECT netscape FROM table_name_45 WHERE firefox = "21.67%" | [
2061,
5873,
286,
2985,
547,
1262,
27811,
36435,
1141,
262,
2278,
287,
543,
2310,
13,
3134,
4,
547,
1262,
16802,
30,
46506,
31720,
36435,
16034,
3084,
62,
3672,
62,
2231,
33411,
2046,
12792,
796,
366,
2481,
13,
3134,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5873,
286,
2985,
547,
1262,
27811,
36435,
1141,
262,
2278,
287,
543,
2310,
13,
3134,
4,
547,
1262,
16802,
30,
46506,
31720,
36435,
16034,
3084,
62,
3672,
62,
2231,
33411,
2046,
12792,
796,
366,
2481,
13,
3134,
39658
] |
Which Result has an Opponent of steve walker? | SELECT "Result" FROM table_42538 WHERE "Opponent" = 'steve walker' | [
13828,
25414,
468,
281,
9385,
3471,
286,
2876,
303,
2513,
263,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
32114,
2548,
33411,
366,
27524,
3471,
1,
796,
705,
4169,
303,
2513,
263,
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
] | [
13828,
25414,
468,
281,
9385,
3471,
286,
2876,
303,
2513,
263,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
32114,
2548,
33411,
366,
27524,
3471,
1,
796,
705,
4169,
303,
2513,
263,
6
] |
What is the lowest rank? | SELECT MIN("Rank") FROM table_2126 | [
2061,
318,
262,
9016,
4279,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
17,
19420
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
4279,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
17,
19420
] |
What is the name of the player if the innings is 82? | SELECT "Player" FROM table_25970 WHERE "Innings" = '82' | [
2061,
318,
262,
1438,
286,
262,
2137,
611,
262,
16267,
318,
9415,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
25191,
2154,
33411,
366,
818,
23400,
1,
796,
705,
6469,
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,
318,
262,
1438,
286,
262,
2137,
611,
262,
16267,
318,
9415,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
25191,
2154,
33411,
366,
818,
23400,
1,
796,
705,
6469,
6
] |
advice in comments about googling. | SELECT * FROM Comments WHERE UserId = '9337071' AND Text LIKE '%google%' COLLATE SQL_Latin1_General_CP1_CI_AS | [
324,
28281,
287,
3651,
546,
467,
519,
1359,
13,
46506,
1635,
16034,
19502,
33411,
11787,
7390,
796,
705,
24,
2091,
2154,
4869,
6,
5357,
8255,
34178,
705,
4,
13297,
4,
6,
7375,
3069,
6158,
16363,
62,
49022,
16,
62,
12218,
62,
8697,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
324,
28281,
287,
3651,
546,
467,
519,
1359,
13,
46506,
1635,
16034,
19502,
33411,
11787,
7390,
796,
705,
24,
2091,
2154,
4869,
6,
5357,
8255,
34178,
705,
4,
13297,
4,
6,
7375,
3069,
6158,
16363,
62,
49022,
16,
62,
12218,
62,
8697,
1... |
Can you tell me the sum of Goals against that has the Goals for larger than 10, and the Position of 3, and the Wins smaller than 6? | SELECT SUM(goals_against) FROM table_name_14 WHERE goals_for > 10 AND position = 3 AND wins < 6 | [
6090,
345,
1560,
502,
262,
2160,
286,
28510,
1028,
326,
468,
262,
28510,
329,
4025,
621,
838,
11,
290,
262,
23158,
286,
513,
11,
290,
262,
24423,
4833,
621,
718,
30,
46506,
35683,
7,
2188,
874,
62,
32826,
8,
16034,
3084,
62,
3672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
28510,
1028,
326,
468,
262,
28510,
329,
4025,
621,
838,
11,
290,
262,
23158,
286,
513,
11,
290,
262,
24423,
4833,
621,
718,
30,
46506,
35683,
7,
2188,
874,
62,
32826,
8,
16034,
3084,
62,
3672,
... |
Get all of my Votes. | SELECT v.VoteTypeId, COUNT(*) FROM Votes AS v WHERE v.UserId = '##UserID##' GROUP BY v.VoteTypeId | [
3855,
477,
286,
616,
39584,
13,
46506,
410,
13,
37394,
6030,
7390,
11,
327,
28270,
7,
28104,
16034,
39584,
7054,
410,
33411,
410,
13,
12982,
7390,
796,
705,
2235,
12982,
2389,
2235,
6,
44441,
11050,
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
] | [
3855,
477,
286,
616,
39584,
13,
46506,
410,
13,
37394,
6030,
7390,
11,
327,
28270,
7,
28104,
16034,
39584,
7054,
410,
33411,
410,
13,
12982,
7390,
796,
705,
2235,
12982,
2389,
2235,
6,
44441,
11050,
410,
13,
37394,
6030,
7390
] |
which country won the gold medal ? | SELECT "country" FROM table_204_556 WHERE id = 1 | [
4758,
1499,
1839,
262,
3869,
18279,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
37864,
33411,
4686,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
1499,
1839,
262,
3869,
18279,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
37864,
33411,
4686,
796,
352
] |
Who is the team for Washington College? | SELECT "Team" FROM table_63833 WHERE "College" = 'washington' | [
8241,
318,
262,
1074,
329,
2669,
5535,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
21,
2548,
2091,
33411,
366,
38951,
1,
796,
705,
86,
2542,
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
] | [
8241,
318,
262,
1074,
329,
2669,
5535,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
21,
2548,
2091,
33411,
366,
38951,
1,
796,
705,
86,
2542,
6
] |
What are the profits (in billions) of the company with a market value of 172.9 billion? | SELECT "Profits (billion $)" FROM table_21112 WHERE "Market Value (billion $)" = '172.9' | [
2061,
389,
262,
10177,
357,
259,
13188,
8,
286,
262,
1664,
351,
257,
1910,
1988,
286,
23120,
13,
24,
2997,
30,
46506,
366,
15404,
896,
357,
24540,
720,
16725,
16034,
3084,
62,
21895,
1065,
33411,
366,
27470,
11052,
357,
24540,
720,
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
] | [
2061,
389,
262,
10177,
357,
259,
13188,
8,
286,
262,
1664,
351,
257,
1910,
1988,
286,
23120,
13,
24,
2997,
30,
46506,
366,
15404,
896,
357,
24540,
720,
16725,
16034,
3084,
62,
21895,
1065,
33411,
366,
27470,
11052,
357,
24540,
720,
16... |
what is the location where there are over 200 cattle businesses | SELECT "Province" FROM table_4162 WHERE "Number of Dairy Farms" = '200' | [
10919,
318,
262,
4067,
810,
612,
389,
625,
939,
17025,
5692,
46506,
366,
15946,
924,
1,
16034,
3084,
62,
19,
25061,
33411,
366,
15057,
286,
46579,
39045,
1,
796,
705,
2167,
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
] | [
10919,
318,
262,
4067,
810,
612,
389,
625,
939,
17025,
5692,
46506,
366,
15946,
924,
1,
16034,
3084,
62,
19,
25061,
33411,
366,
15057,
286,
46579,
39045,
1,
796,
705,
2167,
6
] |
What is Round 1 from 1977 where Round 3 is Double and Round 4 is Double? | SELECT "Round 1" FROM table_40925 WHERE "Round 4" = 'double' AND "From" = '1977' AND "Round 3" = 'double' | [
2061,
318,
10485,
352,
422,
15589,
810,
10485,
513,
318,
11198,
290,
10485,
604,
318,
11198,
30,
46506,
366,
22685,
352,
1,
16034,
3084,
62,
29416,
1495,
33411,
366,
22685,
604,
1,
796,
705,
23352,
6,
5357,
366,
4863,
1,
796,
705,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
10485,
352,
422,
15589,
810,
10485,
513,
318,
11198,
290,
10485,
604,
318,
11198,
30,
46506,
366,
22685,
352,
1,
16034,
3084,
62,
29416,
1495,
33411,
366,
22685,
604,
1,
796,
705,
23352,
6,
5357,
366,
4863,
1,
796,
705,
3... |
What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil? | SELECT intermediate_sprints_classification_red_jersey FROM table_name_34 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND points_classification_navy_blue_jersey = "jose joaquin rojas gil" | [
2061,
318,
262,
42540,
311,
17190,
40984,
2297,
8221,
326,
468,
257,
3469,
8221,
286,
5921,
18526,
11366,
30901,
11,
290,
5264,
5302,
48734,
5564,
28121,
10689,
30,
46506,
19898,
62,
82,
17190,
62,
4871,
2649,
62,
445,
62,
44009,
4397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
42540,
311,
17190,
40984,
2297,
8221,
326,
468,
257,
3469,
8221,
286,
5921,
18526,
11366,
30901,
11,
290,
5264,
5302,
48734,
5564,
28121,
10689,
30,
46506,
19898,
62,
82,
17190,
62,
4871,
2649,
62,
445,
62,
44009,
4397,
... |
what is the number of patients who have stayed in ward 1053 until 1 year ago? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 1053 AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-1 year') | [
10919,
318,
262,
1271,
286,
3871,
508,
423,
9658,
287,
15305,
838,
4310,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
904,
312,
796,
838,
4310,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
508,
423,
9658,
287,
15305,
838,
4310,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
904,
312,
796,
838,
4310,... |
until 1 year ago what were the five most commonly prescribed drugs for patients who had previously received oth perc proc bil trct within 2 months? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures ... | [
28446,
352,
614,
2084,
644,
547,
262,
1936,
749,
8811,
14798,
5010,
329,
3871,
508,
550,
4271,
2722,
267,
400,
583,
66,
13834,
47027,
491,
310,
1626,
362,
1933,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
28446,
352,
614,
2084,
644,
547,
262,
1936,
749,
8811,
14798,
5010,
329,
3871,
508,
550,
4271,
2722,
267,
400,
583,
66,
13834,
47027,
491,
310,
1626,
362,
1933,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
1... |
What is the phone number of the performer Ashley? | SELECT customer_phone FROM performers WHERE customer_name = "Ashley" | [
2061,
318,
262,
3072,
1271,
286,
262,
26960,
20899,
30,
46506,
6491,
62,
4862,
16034,
23827,
33411,
6491,
62,
3672,
796,
366,
26754,
1636,
1
] | [
1,
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,
3072,
1271,
286,
262,
26960,
20899,
30,
46506,
6491,
62,
4862,
16034,
23827,
33411,
6491,
62,
3672,
796,
366,
26754,
1636,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.