instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
How many dates of polls occur in the Madhya Pradesh state? | SELECT COUNT(date_of_polls) FROM table_15329030_1 WHERE state = "Madhya Pradesh" | [
2437,
867,
9667,
286,
9231,
3051,
287,
262,
4627,
48812,
25945,
1181,
30,
46506,
327,
28270,
7,
4475,
62,
1659,
62,
30393,
82,
8,
16034,
3084,
62,
21395,
24369,
1270,
62,
16,
33411,
1181,
796,
366,
18454,
48812,
25945,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9667,
286,
9231,
3051,
287,
262,
4627,
48812,
25945,
1181,
30,
46506,
327,
28270,
7,
4475,
62,
1659,
62,
30393,
82,
8,
16034,
3084,
62,
21395,
24369,
1270,
62,
16,
33411,
1181,
796,
366,
18454,
48812,
25945,
1
] |
Who plays goaltender for the Vancouver Canucks? | SELECT player FROM table_name_22 WHERE position = "goaltender" AND nhl_team = "vancouver canucks" | [
8241,
5341,
44113,
329,
262,
10930,
31252,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1828,
33411,
2292,
796,
366,
2188,
2501,
2194,
1,
5357,
299,
18519,
62,
15097,
796,
366,
85,
10264,
460,
6238,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5341,
44113,
329,
262,
10930,
31252,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1828,
33411,
2292,
796,
366,
2188,
2501,
2194,
1,
5357,
299,
18519,
62,
15097,
796,
366,
85,
10264,
460,
6238,
1
] |
Who was the home team when the away team was Footscray? | SELECT home_team FROM table_name_55 WHERE away_team = "footscray" | [
8241,
373,
262,
1363,
1074,
618,
262,
1497,
1074,
373,
7870,
1416,
2433,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2816,
33411,
1497,
62,
15097,
796,
366,
5898,
1416,
2433,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
618,
262,
1497,
1074,
373,
7870,
1416,
2433,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2816,
33411,
1497,
62,
15097,
796,
366,
5898,
1416,
2433,
1
] |
On what date did Ayrton Senna win at Imola? | SELECT "Date" FROM table_57067 WHERE "Winning Driver" = 'ayrton senna' AND "Location" = 'imola' | [
2202,
644,
3128,
750,
317,
2417,
1122,
311,
13713,
1592,
379,
1846,
5708,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
39254,
3134,
33411,
366,
16643,
768,
12434,
1,
796,
705,
323,
81,
1122,
264,
13713,
6,
5357,
366,
14749,
1,
796,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
750,
317,
2417,
1122,
311,
13713,
1592,
379,
1846,
5708,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
39254,
3134,
33411,
366,
16643,
768,
12434,
1,
796,
705,
323,
81,
1122,
264,
13713,
6,
5357,
366,
14749,
1,
796,
70... |
if the aramaic is l m- , what is the english? | SELECT english FROM table_26919_7 WHERE aramaic = "šlām-āʼ" | [
361,
262,
610,
1689,
291,
318,
300,
285,
12,
837,
644,
318,
262,
46932,
30,
46506,
46932,
16034,
3084,
62,
26276,
1129,
62,
22,
33411,
610,
1689,
291,
796,
366,
32790,
75,
10235,
76,
12,
10235,
134,
120,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
361,
262,
610,
1689,
291,
318,
300,
285,
12,
837,
644,
318,
262,
46932,
30,
46506,
46932,
16034,
3084,
62,
26276,
1129,
62,
22,
33411,
610,
1689,
291,
796,
366,
32790,
75,
10235,
76,
12,
10235,
134,
120,
1
] |
A bar chart shows the distribution of ACC_Road and Team_ID , and group by attribute All_Home, and I want to show by the names in descending. | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY ACC_Road DESC | [
32,
2318,
8262,
2523,
262,
6082,
286,
15859,
62,
29197,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
290,
314,
765,
284,
905,
416,
262,
3891,
287,
31491,
13,
46506,
15859,
62,
29197,
11,
4816,
62,
2389,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
15859,
62,
29197,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
11,
290,
314,
765,
284,
905,
416,
262,
3891,
287,
31491,
13,
46506,
15859,
62,
29197,
11,
4816,
62,
2389,
1603... |
Tell me the player with points larger than 36 and goals more than 0 with tries of 12 | SELECT "Player" FROM table_53867 WHERE "Points" > '36' AND "Goals" > '0' AND "Tries" = '12' | [
24446,
502,
262,
2137,
351,
2173,
4025,
621,
4570,
290,
4661,
517,
621,
657,
351,
8404,
286,
1105,
46506,
366,
14140,
1,
16034,
3084,
62,
49561,
3134,
33411,
366,
40710,
1,
1875,
705,
2623,
6,
5357,
366,
5247,
874,
1,
1875,
705,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2137,
351,
2173,
4025,
621,
4570,
290,
4661,
517,
621,
657,
351,
8404,
286,
1105,
46506,
366,
14140,
1,
16034,
3084,
62,
49561,
3134,
33411,
366,
40710,
1,
1875,
705,
2623,
6,
5357,
366,
5247,
874,
1,
1875,
705,
15,... |
how much is the difference of heart rate in patient 14397 last measured on the last icu visit compared to the second to last value measured on the last icu visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14397) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | [
4919,
881,
318,
262,
3580,
286,
2612,
2494,
287,
5827,
1478,
33372,
938,
8630,
319,
262,
938,
14158,
84,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
3580,
286,
2612,
2494,
287,
5827,
1478,
33372,
938,
8630,
319,
262,
938,
14158,
84,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
938,
14158,
84,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and manufacturer , and group by attribute headquarter, and order Name in desc order please. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
1502,
6530,
287,
1715,
1502,
3387,
13,
46506,
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... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
1502,
6530,
287,
1715,
1502,
3387,
13,
46506,
309,
16,
... |
Who won the tournament when Idaho State won the regular season? | SELECT "Conference Tournament" FROM table_73439 WHERE "Regular Season Winner" = 'Idaho State' | [
8241,
1839,
262,
7756,
618,
20071,
1812,
1839,
262,
3218,
1622,
30,
46506,
366,
3103,
4288,
9595,
1,
16034,
3084,
62,
22,
2682,
2670,
33411,
366,
40164,
7369,
25358,
1,
796,
705,
7390,
17108,
1812,
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
] | [
8241,
1839,
262,
7756,
618,
20071,
1812,
1839,
262,
3218,
1622,
30,
46506,
366,
3103,
4288,
9595,
1,
16034,
3084,
62,
22,
2682,
2670,
33411,
366,
40164,
7369,
25358,
1,
796,
705,
7390,
17108,
1812,
6
] |
What Player has a To par of +1 and the Score 75-70-71-73=289? | SELECT player FROM table_name_10 WHERE to_par = "+1" AND score = 75 - 70 - 71 - 73 = 289 | [
2061,
7853,
468,
257,
1675,
1582,
286,
1343,
16,
290,
262,
15178,
5441,
12,
2154,
12,
4869,
12,
4790,
28,
27693,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
940,
33411,
284,
62,
1845,
796,
43825,
16,
1,
5357,
4776,
796,
5441,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
468,
257,
1675,
1582,
286,
1343,
16,
290,
262,
15178,
5441,
12,
2154,
12,
4869,
12,
4790,
28,
27693,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
940,
33411,
284,
62,
1845,
796,
43825,
16,
1,
5357,
4776,
796,
5441,
532,
... |
What is the Chinese Type Chinese Name of the holiday with a Tamil Name of ( 3)? | SELECT "Chinese Name" FROM table_6948 WHERE "Type" = 'chinese' AND "Tamil Name" = 'சந்திர புத்தாண்டு (தினம் 3)' | [
2061,
318,
262,
3999,
5994,
3999,
6530,
286,
262,
9912,
351,
257,
32519,
6530,
286,
357,
513,
19427,
46506,
366,
23604,
6530,
1,
16034,
3084,
62,
3388,
2780,
33411,
366,
6030,
1,
796,
705,
354,
3762,
6,
5357,
366,
42061,
346,
6530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
3999,
5994,
3999,
6530,
286,
262,
9912,
351,
257,
32519,
6530,
286,
357,
513,
19427,
46506,
366,
23604,
6530,
1,
16034,
3084,
62,
3388,
2780,
33411,
366,
6030,
1,
796,
705,
354,
3762,
6,
5357,
366,
42061,
346,
6530,
... |
what division were they in the most , section 3 or 2 ? | SELECT "section" FROM table_204_974 WHERE "section" IN ('section 3', 'section 2') GROUP BY "section" ORDER BY COUNT(*) DESC LIMIT 1 | [
10919,
7297,
547,
484,
287,
262,
749,
837,
2665,
513,
393,
362,
5633,
46506,
366,
5458,
1,
16034,
3084,
62,
18638,
62,
24,
4524,
33411,
366,
5458,
1,
3268,
19203,
5458,
513,
3256,
705,
5458,
362,
11537,
44441,
11050,
366,
5458,
1,
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
] | [
10919,
7297,
547,
484,
287,
262,
749,
837,
2665,
513,
393,
362,
5633,
46506,
366,
5458,
1,
16034,
3084,
62,
18638,
62,
24,
4524,
33411,
366,
5458,
1,
3268,
19203,
5458,
513,
3256,
705,
5458,
362,
11537,
44441,
11050,
366,
5458,
1,
3... |
Give me the comparison about Team_ID over the Team_Name by a bar chart, I want to rank by the X in desc. | SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_Name DESC | [
23318,
502,
262,
7208,
546,
4816,
62,
2389,
625,
262,
4816,
62,
5376,
416,
257,
2318,
8262,
11,
314,
765,
284,
4279,
416,
262,
1395,
287,
1715,
13,
46506,
4816,
62,
5376,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
481... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4816,
62,
2389,
625,
262,
4816,
62,
5376,
416,
257,
2318,
8262,
11,
314,
765,
284,
4279,
416,
262,
1395,
287,
1715,
13,
46506,
4816,
62,
5376,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
481... |
what team's score is 101? | SELECT team FROM table_name_42 WHERE score = "101" | [
10919,
1074,
338,
4776,
318,
8949,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3682,
33411,
4776,
796,
366,
8784,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1074,
338,
4776,
318,
8949,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3682,
33411,
4776,
796,
366,
8784,
1
] |
What was the constructor in 1975? | SELECT "Constructor" FROM table_26142 WHERE "Year" = '1975' | [
2061,
373,
262,
23772,
287,
15231,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
2075,
23726,
33411,
366,
17688,
1,
796,
705,
38449,
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
] | [
2061,
373,
262,
23772,
287,
15231,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
2075,
23726,
33411,
366,
17688,
1,
796,
705,
38449,
6
] |
what is maximum age of patients whose insurance is private and days of hospital stay is 8? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Private" AND demographic.days_stay = "8" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
5096,
318,
2839,
290,
1528,
286,
4436,
2652,
318,
807,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
29067,
1,
5357,
16728,
13,
12545,
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
] | [
10919,
318,
5415,
2479,
286,
3871,
3025,
5096,
318,
2839,
290,
1528,
286,
4436,
2652,
318,
807,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
29067,
1,
5357,
16728,
13,
12545,
62,
... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id, display in ascending by the y-axis. | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(SALARY) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
3359,
287,
41988,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
3359,
287,
41988,
4... |
Who has points larger than 167.5? | SELECT name FROM table_name_51 WHERE points > 167.5 | [
8241,
468,
2173,
4025,
621,
26118,
13,
20,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
4349,
33411,
2173,
1875,
26118,
13,
20
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
468,
2173,
4025,
621,
26118,
13,
20,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
4349,
33411,
2173,
1875,
26118,
13,
20
] |
what is the average total cost of hospitals that include late eff accidental fall in this year? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'late eff accidental fall')) AND DATETIME(cost.chargetime, 'star... | [
10919,
318,
262,
2811,
2472,
1575,
286,
11301,
326,
2291,
2739,
914,
23221,
2121,
287,
428,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
2811,
2472,
1575,
286,
11301,
326,
2291,
2739,
914,
23221,
2121,
287,
428,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
... |
Percentage of closed posts with close reason off-topic. | SELECT COUNT(*) AS "r1" FROM Posts AS q WHERE q.PostTypeId = 1 | [
31905,
496,
286,
4838,
6851,
351,
1969,
1738,
572,
12,
26652,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
81,
16,
1,
16034,
12043,
7054,
10662,
33411,
10662,
13,
6307,
6030,
7390,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
31905,
496,
286,
4838,
6851,
351,
1969,
1738,
572,
12,
26652,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
81,
16,
1,
16034,
12043,
7054,
10662,
33411,
10662,
13,
6307,
6030,
7390,
796,
352
] |
Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday? | SELECT interview_subject FROM table_name_3 WHERE centerfold_model = "melissa deanne holliday" | [
8241,
373,
262,
19371,
15540,
618,
262,
3337,
11379,
9104,
373,
24164,
11325,
710,
11806,
2567,
30,
46506,
2720,
62,
32796,
16034,
3084,
62,
3672,
62,
18,
33411,
3641,
11379,
62,
19849,
796,
366,
17694,
13808,
390,
21952,
289,
692,
2567... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19371,
15540,
618,
262,
3337,
11379,
9104,
373,
24164,
11325,
710,
11806,
2567,
30,
46506,
2720,
62,
32796,
16034,
3084,
62,
3672,
62,
18,
33411,
3641,
11379,
62,
19849,
796,
366,
17694,
13808,
390,
21952,
289,
692,
2567... |
When wacker burghausen is the oberbayern a what is the schwaben? | SELECT schwaben FROM table_23224961_1 WHERE oberbayern_a = "Wacker Burghausen" | [
2215,
266,
10735,
4356,
456,
8717,
268,
318,
262,
267,
527,
24406,
1142,
257,
644,
318,
262,
5513,
86,
397,
268,
30,
46506,
5513,
86,
397,
268,
16034,
3084,
62,
1954,
24137,
4846,
16,
62,
16,
33411,
267,
527,
24406,
1142,
62,
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
] | [
2215,
266,
10735,
4356,
456,
8717,
268,
318,
262,
267,
527,
24406,
1142,
257,
644,
318,
262,
5513,
86,
397,
268,
30,
46506,
5513,
86,
397,
268,
16034,
3084,
62,
1954,
24137,
4846,
16,
62,
16,
33411,
267,
527,
24406,
1142,
62,
64,
... |
Who is performing in the back stage position for the song 'Der Kapitan'? Show the first name and last name. | SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Der Kapitan" AND T1.StagePosition = "back" | [
8241,
318,
9489,
287,
262,
736,
3800,
2292,
329,
262,
3496,
705,
28532,
27344,
18642,
30960,
5438,
262,
717,
1438,
290,
938,
1438,
13,
46506,
309,
17,
13,
11085,
3672,
11,
309,
17,
13,
12957,
3672,
16034,
15193,
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... | [
8241,
318,
9489,
287,
262,
736,
3800,
2292,
329,
262,
3496,
705,
28532,
27344,
18642,
30960,
5438,
262,
717,
1438,
290,
938,
1438,
13,
46506,
309,
17,
13,
11085,
3672,
11,
309,
17,
13,
12957,
3672,
16034,
15193,
7054,
309,
16,
32357,
... |
Top Comments of a user. | SELECT PostId AS "post_link", Score, Text FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC LIMIT 250 | [
9126,
19502,
286,
257,
2836,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
8255,
16034,
19502,
33411,
11787,
7390,
796,
705,
2235,
12982,
7390,
2235,
6,
38678,
11050,
15178,
22196,
34,
27564,
2043,
8646
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9126,
19502,
286,
257,
2836,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
8255,
16034,
19502,
33411,
11787,
7390,
796,
705,
2235,
12982,
7390,
2235,
6,
38678,
11050,
15178,
22196,
34,
27564,
2043,
8646
] |
What is the date of vacancy for 10 december 2007 when quit? | SELECT "Date of vacancy" FROM table_17124 WHERE "Date of appointment" = '10 December 2007' AND "Manner of departure" = 'Quit' | [
2061,
318,
262,
3128,
286,
39836,
329,
838,
390,
3273,
4343,
618,
11238,
30,
46506,
366,
10430,
286,
39836,
1,
16034,
3084,
62,
1558,
17464,
33411,
366,
10430,
286,
12557,
1,
796,
705,
940,
3426,
4343,
6,
5357,
366,
5124,
1008,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
286,
39836,
329,
838,
390,
3273,
4343,
618,
11238,
30,
46506,
366,
10430,
286,
39836,
1,
16034,
3084,
62,
1558,
17464,
33411,
366,
10430,
286,
12557,
1,
796,
705,
940,
3426,
4343,
6,
5357,
366,
5124,
1008,
286,
... |
What nurses are on call with block floor 1 and block code 1? Tell me their names. | SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1 | [
2061,
20669,
389,
319,
869,
351,
2512,
4314,
352,
290,
2512,
2438,
352,
30,
14026,
502,
511,
3891,
13,
46506,
15849,
16034,
319,
62,
13345,
33411,
2512,
28300,
796,
352,
5357,
2512,
8189,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
20669,
389,
319,
869,
351,
2512,
4314,
352,
290,
2512,
2438,
352,
30,
14026,
502,
511,
3891,
13,
46506,
15849,
16034,
319,
62,
13345,
33411,
2512,
28300,
796,
352,
5357,
2512,
8189,
796,
352
] |
Who is Charleston Southerns head coach where the result is L, 56-6?- | SELECT charleston_southerns_head_coach FROM table_26240481_1 WHERE result = "L, 56-6" | [
8241,
318,
26070,
8050,
82,
1182,
3985,
810,
262,
1255,
318,
406,
11,
7265,
12,
21,
30,
12,
46506,
1149,
75,
19115,
62,
82,
4927,
82,
62,
2256,
62,
1073,
620,
16034,
3084,
62,
2075,
16102,
40271,
62,
16,
33411,
1255,
796,
366,
43,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26070,
8050,
82,
1182,
3985,
810,
262,
1255,
318,
406,
11,
7265,
12,
21,
30,
12,
46506,
1149,
75,
19115,
62,
82,
4927,
82,
62,
2256,
62,
1073,
620,
16034,
3084,
62,
2075,
16102,
40271,
62,
16,
33411,
1255,
796,
366,
43,... |
how many episodes are listed ? | SELECT COUNT(*) FROM table_204_840 | [
4919,
867,
8640,
389,
5610,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
40675
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
8640,
389,
5610,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
40675
] |
What is the First Elected date of the Republican with Results of retired republican hold? | SELECT MIN("First elected") FROM table_78703 WHERE "Party" = 'republican' AND "Results" = 'retired republican hold' | [
2061,
318,
262,
3274,
5903,
276,
3128,
286,
262,
3415,
351,
15691,
286,
9880,
41477,
1745,
30,
46506,
20625,
7203,
5962,
7018,
4943,
16034,
3084,
62,
3695,
36809,
33411,
366,
33553,
1,
796,
705,
7856,
841,
272,
6,
5357,
366,
25468,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3274,
5903,
276,
3128,
286,
262,
3415,
351,
15691,
286,
9880,
41477,
1745,
30,
46506,
20625,
7203,
5962,
7018,
4943,
16034,
3084,
62,
3695,
36809,
33411,
366,
33553,
1,
796,
705,
7856,
841,
272,
6,
5357,
366,
25468,
1,... |
steve maestas represented nai maestas and ward on the board of directors , bu he also served as what position on the board of directors ? | SELECT "notes" FROM table_204_325 WHERE "name" = 'steve maestas' | [
4169,
303,
17266,
395,
292,
7997,
299,
1872,
17266,
395,
292,
290,
15305,
319,
262,
3096,
286,
13445,
837,
809,
339,
635,
4983,
355,
644,
2292,
319,
262,
3096,
286,
13445,
5633,
46506,
366,
17815,
1,
16034,
3084,
62,
18638,
62,
26582,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4169,
303,
17266,
395,
292,
7997,
299,
1872,
17266,
395,
292,
290,
15305,
319,
262,
3096,
286,
13445,
837,
809,
339,
635,
4983,
355,
644,
2292,
319,
262,
3096,
286,
13445,
5633,
46506,
366,
17815,
1,
16034,
3084,
62,
18638,
62,
26582,... |
How many patients with left internal jugular vein thrombosis left arm edema as their primary disease had continuous invasive mechanical ventilation for 96 consecutive hours or more? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" AND procedures.short_title = "Cont inv mec ven 96+ hrs" | [
2437,
867,
3871,
351,
1364,
5387,
45808,
934,
27208,
294,
398,
65,
5958,
1364,
3211,
1225,
19687,
355,
511,
4165,
4369,
550,
12948,
27376,
12370,
34834,
329,
9907,
12785,
2250,
393,
517,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
3871,
351,
1364,
5387,
45808,
934,
27208,
294,
398,
65,
5958,
1364,
3211,
1225,
19687,
355,
511,
4165,
4369,
550,
12948,
27376,
12370,
34834,
329,
9907,
12785,
2250,
393,
517,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
... |
Which Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht? | SELECT "Yacht Club" FROM table_54698 WHERE "Syndicate" = 'america 3 foundation' AND "Yacht" = 'america 3' | [
13828,
575,
19725,
6289,
318,
636,
286,
262,
2253,
513,
5693,
11150,
5344,
319,
262,
2253,
513,
43207,
30,
46506,
366,
56,
19725,
6289,
1,
16034,
3084,
62,
4051,
39357,
33411,
366,
13940,
358,
5344,
1,
796,
705,
2382,
3970,
513,
8489,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
575,
19725,
6289,
318,
636,
286,
262,
2253,
513,
5693,
11150,
5344,
319,
262,
2253,
513,
43207,
30,
46506,
366,
56,
19725,
6289,
1,
16034,
3084,
62,
4051,
39357,
33411,
366,
13940,
358,
5344,
1,
796,
705,
2382,
3970,
513,
8489,... |
Who is the producer of city sharks? | SELECT "Producer" FROM table_41733 WHERE "Title" = 'city sharks' | [
8241,
318,
262,
9920,
286,
1748,
27476,
30,
46506,
366,
11547,
2189,
1,
16034,
3084,
62,
38547,
2091,
33411,
366,
19160,
1,
796,
705,
19205,
27476,
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,
9920,
286,
1748,
27476,
30,
46506,
366,
11547,
2189,
1,
16034,
3084,
62,
38547,
2091,
33411,
366,
19160,
1,
796,
705,
19205,
27476,
6
] |
What is the number of played when the position is less than 4, and the team is Witton Albion? | SELECT COUNT("Played") FROM table_46851 WHERE "Position" < '4' AND "Team" = 'witton albion' | [
2061,
318,
262,
1271,
286,
2826,
618,
262,
2292,
318,
1342,
621,
604,
11,
290,
262,
1074,
318,
38005,
261,
47995,
30,
46506,
327,
28270,
7203,
11002,
276,
4943,
16034,
3084,
62,
38472,
4349,
33411,
366,
26545,
1,
1279,
705,
19,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
2826,
618,
262,
2292,
318,
1342,
621,
604,
11,
290,
262,
1074,
318,
38005,
261,
47995,
30,
46506,
327,
28270,
7203,
11002,
276,
4943,
16034,
3084,
62,
38472,
4349,
33411,
366,
26545,
1,
1279,
705,
19,
6,
5... |
What location had a final score of W 30 5? | SELECT location FROM table_name_92 WHERE final_score = "w 30 – 5" | [
2061,
4067,
550,
257,
2457,
4776,
286,
370,
1542,
642,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
5892,
33411,
2457,
62,
26675,
796,
366,
86,
1542,
784,
642,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4067,
550,
257,
2457,
4776,
286,
370,
1542,
642,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
5892,
33411,
2457,
62,
26675,
796,
366,
86,
1542,
784,
642,
1
] |
What is the 1st division when the 2nd division is national league? | SELECT "1st Division" FROM table_78381 WHERE "2nd Division" = 'national league' | [
2061,
318,
262,
352,
301,
7297,
618,
262,
362,
358,
7297,
318,
2260,
4652,
30,
46506,
366,
16,
301,
7458,
1,
16034,
3084,
62,
3695,
36626,
33411,
366,
17,
358,
7458,
1,
796,
705,
14648,
4652,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
352,
301,
7297,
618,
262,
362,
358,
7297,
318,
2260,
4652,
30,
46506,
366,
16,
301,
7458,
1,
16034,
3084,
62,
3695,
36626,
33411,
366,
17,
358,
7458,
1,
796,
705,
14648,
4652,
6
] |
Show all card type codes and the number of cards in each type in a pie chart. | SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code | [
15307,
477,
2657,
2099,
12416,
290,
262,
1271,
286,
4116,
287,
1123,
2099,
287,
257,
2508,
8262,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
62,
34,
1371,
44441,
11050,
2657,
62,
4906,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
2657,
2099,
12416,
290,
262,
1271,
286,
4116,
287,
1123,
2099,
287,
257,
2508,
8262,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
62,
34,
1371,
44441,
11050,
2657,
62,
4906,
62,
8189
] |
I want to know the final score for december 27 | SELECT "Final Score" FROM table_78512 WHERE "Date" = 'december 27' | [
40,
765,
284,
760,
262,
2457,
4776,
329,
390,
3273,
2681,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
3695,
25836,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
2681,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
284,
760,
262,
2457,
4776,
329,
390,
3273,
2681,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
3695,
25836,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
2681,
6
] |
Which Week has a Date of october 4, 1992? | SELECT MAX(week) FROM table_name_52 WHERE date = "october 4, 1992" | [
13828,
6119,
468,
257,
7536,
286,
19318,
2023,
604,
11,
9768,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
38441,
2023,
604,
11,
9768,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6119,
468,
257,
7536,
286,
19318,
2023,
604,
11,
9768,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
38441,
2023,
604,
11,
9768,
1
] |
What is the Dialcode of whitechapel? | SELECT "Dialcode" FROM table_53501 WHERE "Location" = 'whitechapel' | [
2061,
318,
262,
21269,
8189,
286,
2330,
354,
499,
417,
30,
46506,
366,
24400,
8189,
1,
16034,
3084,
62,
44465,
486,
33411,
366,
14749,
1,
796,
705,
11186,
354,
499,
417,
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,
21269,
8189,
286,
2330,
354,
499,
417,
30,
46506,
366,
24400,
8189,
1,
16034,
3084,
62,
44465,
486,
33411,
366,
14749,
1,
796,
705,
11186,
354,
499,
417,
6
] |
What opponent got 44 points in their game? | SELECT "Opponent" FROM table_25772 WHERE "Opp. Points" = '44' | [
2061,
6125,
1392,
5846,
2173,
287,
511,
983,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1495,
43571,
33411,
366,
27524,
13,
11045,
1,
796,
705,
2598,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
6125,
1392,
5846,
2173,
287,
511,
983,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1495,
43571,
33411,
366,
27524,
13,
11045,
1,
796,
705,
2598,
6
] |
what's the jurisdiction where voted no is 322971 | SELECT "Jurisdiction" FROM table_416 WHERE "Voted No" = '322971' | [
10919,
338,
262,
12934,
810,
7052,
645,
318,
513,
23539,
4869,
46506,
366,
41,
333,
9409,
2867,
1,
16034,
3084,
62,
35218,
33411,
366,
53,
5191,
1400,
1,
796,
705,
18,
23539,
4869,
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
] | [
10919,
338,
262,
12934,
810,
7052,
645,
318,
513,
23539,
4869,
46506,
366,
41,
333,
9409,
2867,
1,
16034,
3084,
62,
35218,
33411,
366,
53,
5191,
1400,
1,
796,
705,
18,
23539,
4869,
6
] |
give me some restaurants good for french food ? | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
26535,
502,
617,
10808,
922,
329,
48718,
2057,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
7072,
13,
19425,
62,
4906,
796,
705,
69,
3532,
6,
5357,
7072,
13,
312,
796,
4067,
13,
2118,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
617,
10808,
922,
329,
48718,
2057,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
7072,
13,
19425,
62,
4906,
796,
705,
69,
3532,
6,
5357,
7072,
13,
312,
796,
4067,
13,
2118,
289... |
Bad questions with good answers. Highest score range between question and best answer, for questions with negative score that have answers with positive score. | SELECT p.Id AS "post_link", p.Score, tmp.BestAnswerScore, tmp.BestAnswerScore - p.Score AS ScoreDiff, p.CreationDate, p.OwnerUserId AS "user_link" FROM Posts AS p INNER JOIN (SELECT ParentId, MAX(Score) AS BestAnswerScore FROM Posts WHERE PostTypeId = 2 GROUP BY ParentId) AS tmp ON p.Id = tmp.ParentId WHERE p.PostTypeI... | [
22069,
2683,
351,
922,
7429,
13,
41864,
4776,
2837,
1022,
1808,
290,
1266,
3280,
11,
329,
2683,
351,
4633,
4776,
326,
423,
7429,
351,
3967,
4776,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
26595,
11,
45218,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22069,
2683,
351,
922,
7429,
13,
41864,
4776,
2837,
1022,
1808,
290,
1266,
3280,
11,
329,
2683,
351,
4633,
4776,
326,
423,
7429,
351,
3967,
4776,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
26595,
11,
45218,
... |
what were the four most frequently prescribed drugs for patients aged 50s until 4 years ago? | SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 50 AND 59) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY pres... | [
10919,
547,
262,
1440,
749,
6777,
14798,
5010,
329,
3871,
9722,
2026,
82,
1566,
604,
812,
2084,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1440,
749,
6777,
14798,
5010,
329,
3871,
9722,
2026,
82,
1566,
604,
812,
2084,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
3... |
What is the average number of laps with 16 grids? | SELECT AVG("Laps") FROM table_50970 WHERE "Grid" = '16' | [
2061,
318,
262,
2811,
1271,
286,
24590,
351,
1467,
50000,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
29022,
2154,
33411,
366,
41339,
1,
796,
705,
1433,
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,
2811,
1271,
286,
24590,
351,
1467,
50000,
30,
46506,
35224,
7203,
43,
1686,
4943,
16034,
3084,
62,
29022,
2154,
33411,
366,
41339,
1,
796,
705,
1433,
6
] |
show me the flights from COLUMBUS to CHARLOTTE | 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 = 'COLUMBUS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CHARL... | [
12860,
502,
262,
13956,
422,
20444,
5883,
45346,
284,
28521,
43,
29089,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
3160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20444,
5883,
45346,
284,
28521,
43,
29089,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
3160... |
Which city has an IATA of tsa? | SELECT city FROM table_name_69 WHERE iata = "tsa" | [
13828,
1748,
468,
281,
314,
13563,
286,
256,
11400,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3388,
33411,
1312,
1045,
796,
366,
912,
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
] | [
13828,
1748,
468,
281,
314,
13563,
286,
256,
11400,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3388,
33411,
1312,
1045,
796,
366,
912,
64,
1
] |
What was the result when they played the Miami Dolphins with a crowd of 21,881? | SELECT "Result" FROM table_47304 WHERE "Attendance" > '21,881' AND "Opponent" = 'miami dolphins' | [
2061,
373,
262,
1255,
618,
484,
2826,
262,
8437,
21668,
351,
257,
4315,
286,
2310,
11,
3459,
16,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2857,
21288,
33411,
366,
8086,
437,
590,
1,
1875,
705,
2481,
11,
3459,
16,
6,
5357,
366,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
618,
484,
2826,
262,
8437,
21668,
351,
257,
4315,
286,
2310,
11,
3459,
16,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2857,
21288,
33411,
366,
8086,
437,
590,
1,
1875,
705,
2481,
11,
3459,
16,
6,
5357,
366,
2... |
List names of all teams in the basketball competition, ordered by all home scores in descending order. | SELECT team_name FROM basketball_match ORDER BY All_Home DESC | [
8053,
3891,
286,
477,
3466,
287,
262,
9669,
5449,
11,
6149,
416,
477,
1363,
8198,
287,
31491,
1502,
13,
46506,
1074,
62,
3672,
16034,
9669,
62,
15699,
38678,
11050,
1439,
62,
16060,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
3891,
286,
477,
3466,
287,
262,
9669,
5449,
11,
6149,
416,
477,
1363,
8198,
287,
31491,
1502,
13,
46506,
1074,
62,
3672,
16034,
9669,
62,
15699,
38678,
11050,
1439,
62,
16060,
22196,
34
] |
Name of the highest Pick is also a Round greater than 5 and Player as Tom Ivey? | SELECT MAX("Pick") FROM table_6616 WHERE "Round" > '5' AND "Player" = 'tom ivey' | [
5376,
286,
262,
4511,
12346,
318,
635,
257,
10485,
3744,
621,
642,
290,
7853,
355,
4186,
314,
3304,
30,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
2791,
1433,
33411,
366,
22685,
1,
1875,
705,
20,
6,
5357,
366,
14140,
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
] | [
5376,
286,
262,
4511,
12346,
318,
635,
257,
10485,
3744,
621,
642,
290,
7853,
355,
4186,
314,
3304,
30,
46506,
25882,
7203,
31686,
4943,
16034,
3084,
62,
2791,
1433,
33411,
366,
22685,
1,
1875,
705,
20,
6,
5357,
366,
14140,
1,
796,
... |
Which Power (MW) has a Voltage (kV) of 500, and a Country of argentina? | SELECT AVG(power__mw_) FROM table_name_26 WHERE voltage__kv_ = 500 AND country = "argentina" | [
13828,
4333,
357,
14326,
8,
468,
257,
45444,
357,
74,
53,
8,
286,
5323,
11,
290,
257,
12946,
286,
1822,
298,
1437,
30,
46506,
35224,
7,
6477,
834,
76,
86,
62,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
15004,
834,
74,
85,
62,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4333,
357,
14326,
8,
468,
257,
45444,
357,
74,
53,
8,
286,
5323,
11,
290,
257,
12946,
286,
1822,
298,
1437,
30,
46506,
35224,
7,
6477,
834,
76,
86,
62,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
15004,
834,
74,
85,
62,
79... |
What was North Melbourne's score as the home team? | SELECT "Home team score" FROM table_78375 WHERE "Home team" = 'north melbourne' | [
2061,
373,
2258,
14819,
338,
4776,
355,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
3695,
22318,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
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,
373,
2258,
14819,
338,
4776,
355,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
3695,
22318,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
6
] |
Are there proofs in the Tabulae software? | SELECT "Proofs" FROM table_10246 WHERE "Software" = 'tabulae' | [
8491,
612,
39197,
287,
262,
309,
16665,
3609,
3788,
30,
46506,
366,
44683,
82,
1,
16034,
3084,
62,
940,
26912,
33411,
366,
25423,
1,
796,
705,
8658,
377,
3609,
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
] | [
8491,
612,
39197,
287,
262,
309,
16665,
3609,
3788,
30,
46506,
366,
44683,
82,
1,
16034,
3084,
62,
940,
26912,
33411,
366,
25423,
1,
796,
705,
8658,
377,
3609,
6
] |
Who were the opponents in the final where the score was 6 4, 2 6, 6 4, 7 6(3)? | SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)" | [
8241,
547,
262,
7691,
287,
262,
2457,
810,
262,
4776,
373,
718,
604,
11,
362,
718,
11,
718,
604,
11,
767,
718,
7,
18,
19427,
46506,
7691,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
24940,
1731,
4521,
62,
16,
33411,
4776,
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... | [
8241,
547,
262,
7691,
287,
262,
2457,
810,
262,
4776,
373,
718,
604,
11,
362,
718,
11,
718,
604,
11,
767,
718,
7,
18,
19427,
46506,
7691,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
24940,
1731,
4521,
62,
16,
33411,
4776,
62,
... |
Give me a histogram for how many registed students do each course have? List course name and the number of their registered students?, I want to show from low to high by the y-axis. | SELECT course_name, COUNT(*) FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id ORDER BY COUNT(*) | [
23318,
502,
257,
1554,
21857,
329,
703,
867,
4214,
276,
2444,
466,
1123,
1781,
423,
30,
7343,
1781,
1438,
290,
262,
1271,
286,
511,
6823,
2444,
21747,
314,
765,
284,
905,
422,
1877,
284,
1029,
416,
262,
331,
12,
22704,
13,
46506,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
502,
257,
1554,
21857,
329,
703,
867,
4214,
276,
2444,
466,
1123,
1781,
423,
30,
7343,
1781,
1438,
290,
262,
1271,
286,
511,
6823,
2444,
21747,
314,
765,
284,
905,
422,
1877,
284,
1029,
416,
262,
331,
12,
22704,
13,
46506,
17... |
what did patient 3267 pay for their hospital stay until 2104? | SELECT SUM(cost.cost) FROM cost WHERE cost.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3267) AND STRFTIME('%y', cost.chargetime) <= '2104' | [
10919,
750,
5827,
513,
25674,
1414,
329,
511,
4436,
2652,
1566,
362,
13464,
30,
46506,
35683,
7,
15805,
13,
15805,
8,
16034,
1575,
33411,
1575,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
750,
5827,
513,
25674,
1414,
329,
511,
4436,
2652,
1566,
362,
13464,
30,
46506,
35683,
7,
15805,
13,
15805,
8,
16034,
1575,
33411,
1575,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
334... |
What is the highest game whose score was 94-116 | SELECT MAX("Game") FROM table_8341 WHERE "Score" = '94-116' | [
2061,
318,
262,
4511,
983,
3025,
4776,
373,
10048,
12,
18298,
46506,
25882,
7203,
8777,
4943,
16034,
3084,
62,
23,
33660,
33411,
366,
26595,
1,
796,
705,
5824,
12,
18298,
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,
4511,
983,
3025,
4776,
373,
10048,
12,
18298,
46506,
25882,
7203,
8777,
4943,
16034,
3084,
62,
23,
33660,
33411,
366,
26595,
1,
796,
705,
5824,
12,
18298,
6
] |
What CFL Team is Pascal Masson on? | SELECT "CFL Team" FROM table_53914 WHERE "Player" = 'pascal masson' | [
2061,
45239,
4816,
318,
35163,
5674,
261,
319,
30,
46506,
366,
34,
3697,
4816,
1,
16034,
3084,
62,
20,
2670,
1415,
33411,
366,
14140,
1,
796,
705,
79,
27747,
2347,
261,
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,
45239,
4816,
318,
35163,
5674,
261,
319,
30,
46506,
366,
34,
3697,
4816,
1,
16034,
3084,
62,
20,
2670,
1415,
33411,
366,
14140,
1,
796,
705,
79,
27747,
2347,
261,
6
] |
Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings. | SELECT T1.building_address FROM apartment_buildings AS T1 JOIN apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 2 | [
13828,
6832,
423,
19592,
326,
423,
517,
621,
734,
32601,
30,
13786,
502,
262,
9405,
286,
262,
6832,
13,
46506,
309,
16,
13,
16894,
62,
21975,
16034,
7962,
62,
11249,
654,
7054,
309,
16,
32357,
1268,
19592,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
6832,
423,
19592,
326,
423,
517,
621,
734,
32601,
30,
13786,
502,
262,
9405,
286,
262,
6832,
13,
46506,
309,
16,
13,
16894,
62,
21975,
16034,
7962,
62,
11249,
654,
7054,
309,
16,
32357,
1268,
19592,
7054,
309,
17,
6177,
309,
... |
What was the venue that had a friendly match competition? | SELECT venue FROM table_name_49 WHERE competition = "friendly match" | [
2061,
373,
262,
14359,
326,
550,
257,
8030,
2872,
5449,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2920,
33411,
5449,
796,
366,
13120,
2872,
1
] | [
1,
1,
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,
14359,
326,
550,
257,
8030,
2872,
5449,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2920,
33411,
5449,
796,
366,
13120,
2872,
1
] |
What was the original airdate of episode #733? | SELECT "Original airdate" FROM table_3378 WHERE "Episode #" = '733' | [
2061,
373,
262,
2656,
257,
1447,
378,
286,
4471,
1303,
49995,
30,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
2091,
3695,
33411,
366,
23758,
1303,
1,
796,
705,
49995,
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,
373,
262,
2656,
257,
1447,
378,
286,
4471,
1303,
49995,
30,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
2091,
3695,
33411,
366,
23758,
1303,
1,
796,
705,
49995,
6
] |
Who is the manager for FMC Corporation pension fund? | SELECT manager FROM table_name_3 WHERE fund = "fmc corporation pension fund" | [
8241,
318,
262,
4706,
329,
376,
9655,
10501,
13553,
1814,
30,
46506,
4706,
16034,
3084,
62,
3672,
62,
18,
33411,
1814,
796,
366,
69,
23209,
12017,
13553,
1814,
1
] | [
1,
1,
1,
1,
1,
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,
4706,
329,
376,
9655,
10501,
13553,
1814,
30,
46506,
4706,
16034,
3084,
62,
3672,
62,
18,
33411,
1814,
796,
366,
69,
23209,
12017,
13553,
1814,
1
] |
What label released a record on December 19, 2001? | SELECT label FROM table_name_83 WHERE date = "december 19, 2001" | [
2061,
6167,
2716,
257,
1700,
319,
3426,
678,
11,
5878,
30,
46506,
6167,
16034,
3084,
62,
3672,
62,
5999,
33411,
3128,
796,
366,
2934,
3273,
678,
11,
5878,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
6167,
2716,
257,
1700,
319,
3426,
678,
11,
5878,
30,
46506,
6167,
16034,
3084,
62,
3672,
62,
5999,
33411,
3128,
796,
366,
2934,
3273,
678,
11,
5878,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by weekday, I want to rank from low to high by the Y please. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(DEPARTMENT_ID) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
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,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,... |
what is lab test fluid of subject name paul edwards? | SELECT lab.fluid FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Paul Edwards" | [
10919,
318,
2248,
1332,
11711,
286,
2426,
1438,
279,
2518,
1225,
2017,
30,
46506,
2248,
13,
35522,
312,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
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
] | [
10919,
318,
2248,
1332,
11711,
286,
2426,
1438,
279,
2518,
1225,
2017,
30,
46506,
2248,
13,
35522,
312,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
... |
What is the smallest rank with a Lane of 1? | SELECT MIN("Rank") FROM table_69882 WHERE "Lane" = '1' | [
2061,
318,
262,
18197,
4279,
351,
257,
15016,
286,
352,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
3388,
42980,
33411,
366,
43,
1531,
1,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
4279,
351,
257,
15016,
286,
352,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
3388,
42980,
33411,
366,
43,
1531,
1,
796,
705,
16,
6
] |
How many times did Roy Emerson win the Australian Open? | SELECT COUNT("Australian Open") FROM table_23298 WHERE "Player" = 'Roy Emerson' | [
2437,
867,
1661,
750,
9817,
41886,
1592,
262,
6638,
4946,
30,
46506,
327,
28270,
7203,
38036,
4946,
4943,
16034,
3084,
62,
1954,
27728,
33411,
366,
14140,
1,
796,
705,
32027,
41886,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1661,
750,
9817,
41886,
1592,
262,
6638,
4946,
30,
46506,
327,
28270,
7203,
38036,
4946,
4943,
16034,
3084,
62,
1954,
27728,
33411,
366,
14140,
1,
796,
705,
32027,
41886,
6
] |
what's the result with district being louisiana 2 | SELECT result FROM table_1341586_19 WHERE district = "Louisiana 2" | [
10919,
338,
262,
1255,
351,
4783,
852,
21081,
271,
7484,
362,
46506,
1255,
16034,
3084,
62,
19880,
1314,
4521,
62,
1129,
33411,
4783,
796,
366,
32117,
7484,
362,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
1255,
351,
4783,
852,
21081,
271,
7484,
362,
46506,
1255,
16034,
3084,
62,
19880,
1314,
4521,
62,
1129,
33411,
4783,
796,
366,
32117,
7484,
362,
1
] |
calculate the average age of male patients who were admitted to hospital on an urgent basis. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.admission_type = "URGENT" | [
9948,
3129,
378,
262,
2811,
2479,
286,
4257,
3871,
508,
547,
6848,
284,
4436,
319,
281,
18039,
4308,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
324,
3411,
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
] | [
9948,
3129,
378,
262,
2811,
2479,
286,
4257,
3871,
508,
547,
6848,
284,
4436,
319,
281,
18039,
4308,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
324,
3411,
62,... |
Find the number of the dates of the tests taken with result 'Pass', and I want to rank x axis in asc order. | SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" ORDER BY date_test_taken | [
16742,
262,
1271,
286,
262,
9667,
286,
262,
5254,
2077,
351,
1255,
705,
14478,
3256,
290,
314,
765,
284,
4279,
2124,
16488,
287,
10570,
1502,
13,
46506,
3128,
62,
9288,
62,
83,
1685,
11,
327,
28270,
7,
4475,
62,
9288,
62,
83,
1685,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
1271,
286,
262,
9667,
286,
262,
5254,
2077,
351,
1255,
705,
14478,
3256,
290,
314,
765,
284,
4279,
2124,
16488,
287,
10570,
1502,
13,
46506,
3128,
62,
9288,
62,
83,
1685,
11,
327,
28270,
7,
4475,
62,
9288,
62,
83,
1685,
... |
What is the 7:00 feature with entertainment tonight at 7:30? | SELECT "7:00" FROM table_69429 WHERE "7:30" = 'entertainment tonight' | [
2061,
318,
262,
767,
25,
405,
3895,
351,
9739,
9975,
379,
767,
25,
1270,
30,
46506,
366,
22,
25,
405,
1,
16034,
3084,
62,
3388,
11785,
33411,
366,
22,
25,
1270,
1,
796,
705,
298,
1425,
434,
9975,
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,
767,
25,
405,
3895,
351,
9739,
9975,
379,
767,
25,
1270,
30,
46506,
366,
22,
25,
405,
1,
16034,
3084,
62,
3388,
11785,
33411,
366,
22,
25,
1270,
1,
796,
705,
298,
1425,
434,
9975,
6
] |
What is the high grid that has a Time/Retired of +6 laps, and under 69 laps? | SELECT MAX("Grid") FROM table_52193 WHERE "Time/Retired" = '+6 laps' AND "Laps" < '69' | [
2061,
318,
262,
1029,
10706,
326,
468,
257,
3862,
14,
9781,
1202,
286,
1343,
21,
24590,
11,
290,
739,
8644,
24590,
30,
46506,
25882,
7203,
41339,
4943,
16034,
3084,
62,
4309,
24943,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1029,
10706,
326,
468,
257,
3862,
14,
9781,
1202,
286,
1343,
21,
24590,
11,
290,
739,
8644,
24590,
30,
46506,
25882,
7203,
41339,
4943,
16034,
3084,
62,
4309,
24943,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
10,
... |
Who was the home side at glenferrie oval? | SELECT "Home team" FROM table_56426 WHERE "Venue" = 'glenferrie oval' | [
8241,
373,
262,
1363,
1735,
379,
1278,
268,
2232,
5034,
41186,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
20,
2414,
2075,
33411,
366,
37522,
518,
1,
796,
705,
4743,
268,
2232,
5034,
41186,
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
] | [
8241,
373,
262,
1363,
1735,
379,
1278,
268,
2232,
5034,
41186,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
20,
2414,
2075,
33411,
366,
37522,
518,
1,
796,
705,
4743,
268,
2232,
5034,
41186,
6
] |
since 2 years ago, had patient 006-7325 had any allergies? | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-7325')) AND DATETIME(allergy.allergytime) >= DATETIME(CURRENT_TIME(), '-2 ye... | [
20777,
362,
812,
2084,
11,
550,
5827,
3571,
21,
12,
4790,
1495,
550,
597,
36665,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
362,
812,
2084,
11,
550,
5827,
3571,
21,
12,
4790,
1495,
550,
597,
36665,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,... |
Which Partner has a Date of june 18, 1989? | SELECT "Partner" FROM table_5573 WHERE "Date" = 'june 18, 1989' | [
13828,
35532,
468,
257,
7536,
286,
474,
1726,
1248,
11,
11104,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
2816,
4790,
33411,
366,
10430,
1,
796,
705,
73,
1726,
1248,
11,
11104,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
35532,
468,
257,
7536,
286,
474,
1726,
1248,
11,
11104,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
2816,
4790,
33411,
366,
10430,
1,
796,
705,
73,
1726,
1248,
11,
11104,
6
] |
how many days since the first time patient 030-42006 was diagnosed in this hospital encounter with bone fracture(s) - thoracic spine? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-42006'... | [
4919,
867,
1528,
1201,
262,
717,
640,
5827,
657,
1270,
12,
19,
13330,
373,
14641,
287,
428,
4436,
8791,
351,
9970,
31846,
7,
82,
8,
532,
41899,
330,
291,
19656,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
1201,
262,
717,
640,
5827,
657,
1270,
12,
19,
13330,
373,
14641,
287,
428,
4436,
8791,
351,
9970,
31846,
7,
82,
8,
532,
41899,
330,
291,
19656,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,... |
What is the id of the department with the least number of staff? | SELECT department_id FROM staff_department_assignments GROUP BY department_id ORDER BY COUNT(*) LIMIT 1 | [
2061,
318,
262,
4686,
286,
262,
5011,
351,
262,
1551,
1271,
286,
3085,
30,
46506,
5011,
62,
312,
16034,
3085,
62,
10378,
1823,
62,
562,
570,
902,
44441,
11050,
5011,
62,
312,
38678,
11050,
327,
28270,
7,
28104,
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
] | [
2061,
318,
262,
4686,
286,
262,
5011,
351,
262,
1551,
1271,
286,
3085,
30,
46506,
5011,
62,
312,
16034,
3085,
62,
10378,
1823,
62,
562,
570,
902,
44441,
11050,
5011,
62,
312,
38678,
11050,
327,
28270,
7,
28104,
27564,
2043,
352
] |
How many years was the individual winner from the United States was Tiger Woods? | SELECT COUNT(year) FROM table_name_75 WHERE country = "united states" AND individual = "tiger woods" | [
2437,
867,
812,
373,
262,
1981,
8464,
422,
262,
1578,
1829,
373,
17030,
16483,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
1981,
796,
366,
83,
8254,
16479,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
262,
1981,
8464,
422,
262,
1578,
1829,
373,
17030,
16483,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2425,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
1981,
796,
366,
83,
8254,
16479,
1
] |
What is the result of the game when the competition was a friendly match, and the Score was 1 1? | SELECT "Result" FROM table_49948 WHERE "Competition" = 'friendly match' AND "Score" = '1 – 1' | [
2061,
318,
262,
1255,
286,
262,
983,
618,
262,
5449,
373,
257,
8030,
2872,
11,
290,
262,
15178,
373,
352,
352,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
28324,
2780,
33411,
366,
7293,
15620,
1,
796,
705,
13120,
2872,
6,
5357,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
286,
262,
983,
618,
262,
5449,
373,
257,
8030,
2872,
11,
290,
262,
15178,
373,
352,
352,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
28324,
2780,
33411,
366,
7293,
15620,
1,
796,
705,
13120,
2872,
6,
5357,
366,
... |
How many different counts of the votes for Bush are there in the county where he got 69.7% of the votes? | SELECT COUNT(bush_number) FROM table_2401326_1 WHERE bush_percentage = "69.7%" | [
2437,
867,
1180,
9853,
286,
262,
5690,
329,
5511,
389,
612,
287,
262,
7968,
810,
339,
1392,
8644,
13,
22,
4,
286,
262,
5690,
30,
46506,
327,
28270,
7,
50231,
62,
17618,
8,
16034,
3084,
62,
1731,
30273,
2075,
62,
16,
33411,
24484,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
9853,
286,
262,
5690,
329,
5511,
389,
612,
287,
262,
7968,
810,
339,
1392,
8644,
13,
22,
4,
286,
262,
5690,
30,
46506,
327,
28270,
7,
50231,
62,
17618,
8,
16034,
3084,
62,
1731,
30273,
2075,
62,
16,
33411,
24484,
... |
What is the A-side for catalog 902? | SELECT "A-side" FROM table_64258 WHERE "Catalog number" = '902' | [
2061,
318,
262,
317,
12,
1589,
329,
18388,
860,
2999,
30,
46506,
366,
32,
12,
1589,
1,
16034,
3084,
62,
2414,
25600,
33411,
366,
49015,
1271,
1,
796,
705,
24,
2999,
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,
317,
12,
1589,
329,
18388,
860,
2999,
30,
46506,
366,
32,
12,
1589,
1,
16034,
3084,
62,
2414,
25600,
33411,
366,
49015,
1271,
1,
796,
705,
24,
2999,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of phone_number and employee_id . | SELECT PHONE_NUMBER, EMPLOYEE_ID 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,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
3072,
62,
17618,
290,
6538,
62,
312,
764,
46506,
9370,
11651,
62,
41359,
13246,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
3072,
62,
17618,
290,
6538,
62,
312,
764,
46506,
9370,
11651,
62,
41359,
13246,
... |
Return a bar chart on how many documents are there of each type?, list by the Y from high to low. | SELECT Document_Type_Code, COUNT(*) FROM Documents GROUP BY Document_Type_Code ORDER BY COUNT(*) DESC | [
13615,
257,
2318,
8262,
319,
703,
867,
4963,
389,
612,
286,
1123,
2099,
21747,
1351,
416,
262,
575,
422,
1029,
284,
1877,
13,
46506,
16854,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
33267,
44441,
11050,
16854,
62,
6030,
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
] | [
13615,
257,
2318,
8262,
319,
703,
867,
4963,
389,
612,
286,
1123,
2099,
21747,
1351,
416,
262,
575,
422,
1029,
284,
1877,
13,
46506,
16854,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
16034,
33267,
44441,
11050,
16854,
62,
6030,
62... |
Plot a scatter chart, max(capacity) by mean capacity. | SELECT MAX(capacity), AVG(capacity) FROM classroom GROUP BY building | [
43328,
257,
41058,
8262,
11,
3509,
7,
42404,
8,
416,
1612,
5339,
13,
46506,
25882,
7,
42404,
828,
35224,
7,
42404,
8,
16034,
15806,
44441,
11050,
2615
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
257,
41058,
8262,
11,
3509,
7,
42404,
8,
416,
1612,
5339,
13,
46506,
25882,
7,
42404,
828,
35224,
7,
42404,
8,
16034,
15806,
44441,
11050,
2615
] |
the city 's total number of dwellings as of 2012 . | SELECT SUM("dwellings\n(2012)") FROM table_203_642 | [
1169,
1748,
705,
82,
2472,
1271,
286,
50078,
355,
286,
2321,
764,
46506,
35683,
7203,
67,
4053,
654,
59,
77,
7,
6999,
8,
4943,
16034,
3084,
62,
22416,
62,
41290
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1169,
1748,
705,
82,
2472,
1271,
286,
50078,
355,
286,
2321,
764,
46506,
35683,
7203,
67,
4053,
654,
59,
77,
7,
6999,
8,
4943,
16034,
3084,
62,
22416,
62,
41290
] |
Bar chart of the total number from each country, and could you list by the total number from high to low please? | SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY COUNT(*) DESC | [
10374,
8262,
286,
262,
2472,
1271,
422,
1123,
1499,
11,
290,
714,
345,
1351,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
3387,
30,
46506,
12946,
11,
327,
28270,
7,
28104,
16034,
5424,
527,
44441,
11050,
12946,
38678,
11050,
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
] | [
10374,
8262,
286,
262,
2472,
1271,
422,
1123,
1499,
11,
290,
714,
345,
1351,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
3387,
30,
46506,
12946,
11,
327,
28270,
7,
28104,
16034,
5424,
527,
44441,
11050,
12946,
38678,
11050,
327,
28270,
... |
Please show the different statuses of cities and the average population of cities with each status. | SELECT status, AVG(population) FROM city GROUP BY status | [
5492,
905,
262,
1180,
1185,
2664,
286,
4736,
290,
262,
2811,
3265,
286,
4736,
351,
1123,
3722,
13,
46506,
3722,
11,
35224,
7,
39748,
8,
16034,
1748,
44441,
11050,
3722
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5492,
905,
262,
1180,
1185,
2664,
286,
4736,
290,
262,
2811,
3265,
286,
4736,
351,
1123,
3722,
13,
46506,
3722,
11,
35224,
7,
39748,
8,
16034,
1748,
44441,
11050,
3722
] |
What are all the employees without a department number? | SELECT * FROM employees WHERE department_id = "null" | [
2061,
389,
477,
262,
4409,
1231,
257,
5011,
1271,
30,
46506,
1635,
16034,
4409,
33411,
5011,
62,
312,
796,
366,
8423,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
477,
262,
4409,
1231,
257,
5011,
1271,
30,
46506,
1635,
16034,
4409,
33411,
5011,
62,
312,
796,
366,
8423,
1
] |
who published at ACL 2014 ? | SELECT DISTINCT writes.authorid FROM paper, venue, writes WHERE paper.year = 2014 AND venue.venueid = paper.venueid AND venue.venuename = 'ACL' AND writes.paperid = paper.paperid | [
8727,
3199,
379,
17382,
1946,
5633,
46506,
360,
8808,
1268,
4177,
6797,
13,
9800,
312,
16034,
3348,
11,
14359,
11,
6797,
33411,
3348,
13,
1941,
796,
1946,
5357,
14359,
13,
4080,
312,
796,
3348,
13,
4080,
312,
5357,
14359,
13,
574,
84,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3199,
379,
17382,
1946,
5633,
46506,
360,
8808,
1268,
4177,
6797,
13,
9800,
312,
16034,
3348,
11,
14359,
11,
6797,
33411,
3348,
13,
1941,
796,
1946,
5357,
14359,
13,
4080,
312,
796,
3348,
13,
4080,
312,
5357,
14359,
13,
574,
84,... |
how many hours have passed since the last time patient 6170 during their current hospital visit received a mchc lab test? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', labevents.charttime)) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'mchc') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6170 AND admissions.dis... | [
4919,
867,
2250,
423,
3804,
1201,
262,
938,
640,
5827,
718,
17279,
1141,
511,
1459,
4436,
3187,
2722,
257,
285,
354,
66,
2248,
1332,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2250,
423,
3804,
1201,
262,
938,
640,
5827,
718,
17279,
1141,
511,
1459,
4436,
3187,
2722,
257,
285,
354,
66,
2248,
1332,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532... |
What is the largest crowd when melbourne plays at home? | SELECT MAX(crowd) FROM table_name_98 WHERE home_team = "melbourne" | [
2061,
318,
262,
4387,
4315,
618,
7758,
12544,
5341,
379,
1363,
30,
46506,
25882,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
1363,
62,
15097,
796,
366,
17694,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4387,
4315,
618,
7758,
12544,
5341,
379,
1363,
30,
46506,
25882,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
1363,
62,
15097,
796,
366,
17694,
12544,
1
] |
provide the number of patients whose gender is f and drug name is dextrose 50%? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.drug = "Dextrose 50%" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
2563,
1438,
318,
390,
742,
13698,
2026,
4,
30,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
2563,
1438,
318,
390,
742,
13698,
2026,
4,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,... |
has patient 009-13409 undergone any procedure until 4 years ago? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-13409')) AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(... | [
10134,
5827,
3571,
24,
12,
1485,
29416,
29900,
597,
8771,
1566,
604,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
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... | [
10134,
5827,
3571,
24,
12,
1485,
29416,
29900,
597,
8771,
1566,
604,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16... |
What are MKT 322 's course prerequisite requirements ? | SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.pre_course_id WHERE COURSE_0.department = 'MKT' AND COURSE_0.number =... | [
2061,
389,
20553,
51,
38831,
705,
82,
1781,
43119,
5359,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
16,
13,
10378,
1823,
11,
37384,
5188,
62,
16,
13,
3672,
11,
37384,
5188,
62,
16,
13,
17618,
16034,
1781,
7054,
37384,
5188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20553,
51,
38831,
705,
82,
1781,
43119,
5359,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
16,
13,
10378,
1823,
11,
37384,
5188,
62,
16,
13,
3672,
11,
37384,
5188,
62,
16,
13,
17618,
16034,
1781,
7054,
37384,
5188,
... |
Is the Rudyard Depot Museum on the Dinosaur Trail? | SELECT "On Dinosaur Trail?" FROM table_35682 WHERE "Name" = 'rudyard depot museum' | [
3792,
262,
17421,
9413,
30884,
9594,
319,
262,
47808,
13069,
30,
46506,
366,
2202,
47808,
13069,
1701,
16034,
3084,
62,
2327,
43950,
33411,
366,
5376,
1,
796,
705,
81,
463,
9413,
43369,
13257,
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
] | [
3792,
262,
17421,
9413,
30884,
9594,
319,
262,
47808,
13069,
30,
46506,
366,
2202,
47808,
13069,
1701,
16034,
3084,
62,
2327,
43950,
33411,
366,
5376,
1,
796,
705,
81,
463,
9413,
43369,
13257,
6
] |
What is the name of the company that has a Group's equity shareholding percentage, as of March 10th, 2010, of 100%, as well as a Principal activity of Airline? | SELECT "Company" FROM table_75187 WHERE "Group's Equity Shareholding (10 March 2010)" = '100%' AND "Principal activities" = 'airline' | [
2061,
318,
262,
1438,
286,
262,
1664,
326,
468,
257,
4912,
338,
13598,
2648,
19216,
5873,
11,
355,
286,
2805,
838,
400,
11,
3050,
11,
286,
1802,
7441,
355,
880,
355,
257,
32641,
3842,
286,
3701,
1370,
30,
46506,
366,
39154,
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... | [
2061,
318,
262,
1438,
286,
262,
1664,
326,
468,
257,
4912,
338,
13598,
2648,
19216,
5873,
11,
355,
286,
2805,
838,
400,
11,
3050,
11,
286,
1802,
7441,
355,
880,
355,
257,
32641,
3842,
286,
3701,
1370,
30,
46506,
366,
39154,
1,
16034... |
What was the home team for the 2nd leg of the match having an aggregate of 2-3? | SELECT "Home (2nd leg)" FROM table_38615 WHERE "Aggregate" = '2-3' | [
2061,
373,
262,
1363,
1074,
329,
262,
362,
358,
1232,
286,
262,
2872,
1719,
281,
19406,
286,
362,
12,
18,
30,
46506,
366,
16060,
357,
17,
358,
1232,
16725,
16034,
3084,
62,
21734,
1314,
33411,
366,
46384,
49373,
1,
796,
705,
17,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
329,
262,
362,
358,
1232,
286,
262,
2872,
1719,
281,
19406,
286,
362,
12,
18,
30,
46506,
366,
16060,
357,
17,
358,
1232,
16725,
16034,
3084,
62,
21734,
1314,
33411,
366,
46384,
49373,
1,
796,
705,
17,
12,... |
What party is Marie-Dominique Simonet part of? | SELECT party FROM table_name_97 WHERE name = "marie-dominique simonet" | [
2061,
2151,
318,
20492,
12,
43417,
2350,
11288,
316,
636,
286,
30,
46506,
2151,
16034,
3084,
62,
3672,
62,
5607,
33411,
1438,
796,
366,
3876,
494,
12,
3438,
259,
2350,
985,
36823,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2151,
318,
20492,
12,
43417,
2350,
11288,
316,
636,
286,
30,
46506,
2151,
16034,
3084,
62,
3672,
62,
5607,
33411,
1438,
796,
366,
3876,
494,
12,
3438,
259,
2350,
985,
36823,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.