instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which prerequisites do BIOLCHEM 673 and 995 have ? | SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE (COURSE_1.number = 673 OR COURSE_1.number = 995) AND COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.depar... | [
13828,
662,
34075,
466,
20068,
3535,
3398,
3620,
718,
4790,
290,
860,
3865,
423,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
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... | [
13828,
662,
34075,
466,
20068,
3535,
3398,
3620,
718,
4790,
290,
860,
3865,
423,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
62,
15,
13,
10378,
1823,
11,
37384,
5188,
62,
15,
13,
3672,
11,
37384,
5188,
62,
15,
13,
17618,
16034,
... |
Which Round has a Player of dan chicoine, and a Pick larger than 23? | SELECT AVG(round) FROM table_name_65 WHERE player = "dan chicoine" AND pick > 23 | [
13828,
10485,
468,
257,
7853,
286,
46078,
442,
3713,
500,
11,
290,
257,
12346,
4025,
621,
2242,
30,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
2137,
796,
366,
25604,
442,
3713,
500,
1,
5357,
2298,
1875,
2242
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10485,
468,
257,
7853,
286,
46078,
442,
3713,
500,
11,
290,
257,
12346,
4025,
621,
2242,
30,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
2137,
796,
366,
25604,
442,
3713,
500,
1,
5357,
2298,
1875,
2242
] |
For the Temple Square station, what is the park & ride lot name? | SELECT park_and_ride_lot FROM table_name_53 WHERE station_name = "temple square" | [
1890,
262,
10857,
9276,
4429,
11,
644,
318,
262,
3952,
1222,
6594,
1256,
1438,
30,
46506,
3952,
62,
392,
62,
13154,
62,
26487,
16034,
3084,
62,
3672,
62,
4310,
33411,
4429,
62,
3672,
796,
366,
11498,
1154,
6616,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
10857,
9276,
4429,
11,
644,
318,
262,
3952,
1222,
6594,
1256,
1438,
30,
46506,
3952,
62,
392,
62,
13154,
62,
26487,
16034,
3084,
62,
3672,
62,
4310,
33411,
4429,
62,
3672,
796,
366,
11498,
1154,
6616,
1
] |
provide the number of patients whose diagnoses short title is sepsis and lab test fluid is cerebrospinal fluid (csf)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Sepsis" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
384,
862,
271,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
384,
862,
271,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,... |
What is the country of origin of the aircraft with a registration s5-hpb? | SELECT origin FROM table_name_67 WHERE registration = "s5-hpb" | [
2061,
318,
262,
1499,
286,
8159,
286,
262,
6215,
351,
257,
9352,
264,
20,
12,
24831,
65,
30,
46506,
8159,
16034,
3084,
62,
3672,
62,
3134,
33411,
9352,
796,
366,
82,
20,
12,
24831,
65,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
286,
8159,
286,
262,
6215,
351,
257,
9352,
264,
20,
12,
24831,
65,
30,
46506,
8159,
16034,
3084,
62,
3672,
62,
3134,
33411,
9352,
796,
366,
82,
20,
12,
24831,
65,
1
] |
Can you draw the trend of how many date in locaton to over the date in locaton to?, order Date_in_Locaton_To in ascending order please. | SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Date_in_Locaton_To ORDER BY Date_in_Locaton_To | [
6090,
345,
3197,
262,
5182,
286,
703,
867,
3128,
287,
1179,
13951,
284,
625,
262,
3128,
287,
1179,
13951,
284,
21747,
1502,
7536,
62,
259,
62,
33711,
13951,
62,
2514,
287,
41988,
1502,
3387,
13,
46506,
7536,
62,
259,
62,
33711,
13951,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3197,
262,
5182,
286,
703,
867,
3128,
287,
1179,
13951,
284,
625,
262,
3128,
287,
1179,
13951,
284,
21747,
1502,
7536,
62,
259,
62,
33711,
13951,
62,
2514,
287,
41988,
1502,
3387,
13,
46506,
7536,
62,
259,
62,
33711,
13951,... |
what is the imprint when the title is owari no chronicle (ahead series)? | SELECT imprint FROM table_name_22 WHERE title = "owari no chronicle (ahead series)" | [
10919,
318,
262,
29122,
618,
262,
3670,
318,
12334,
2743,
645,
16199,
1548,
357,
38204,
2168,
19427,
46506,
29122,
16034,
3084,
62,
3672,
62,
1828,
33411,
3670,
796,
366,
322,
2743,
645,
16199,
1548,
357,
38204,
2168,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
29122,
618,
262,
3670,
318,
12334,
2743,
645,
16199,
1548,
357,
38204,
2168,
19427,
46506,
29122,
16034,
3084,
62,
3672,
62,
1828,
33411,
3670,
796,
366,
322,
2743,
645,
16199,
1548,
357,
38204,
2168,
16725
] |
What is the latest year joined with a Conference championships of 5, and an Institution of university of north carolina? | SELECT MAX(joined) FROM table_name_84 WHERE conference_championships = 5 AND institution = "university of north carolina" | [
2061,
318,
262,
3452,
614,
5399,
351,
257,
8785,
27459,
286,
642,
11,
290,
281,
29426,
286,
6403,
286,
5093,
1097,
47196,
30,
46506,
25882,
7,
46416,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
4495,
62,
354,
4350,
5748,
796,
642,
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
] | [
2061,
318,
262,
3452,
614,
5399,
351,
257,
8785,
27459,
286,
642,
11,
290,
281,
29426,
286,
6403,
286,
5093,
1097,
47196,
30,
46506,
25882,
7,
46416,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
4495,
62,
354,
4350,
5748,
796,
642,
53... |
creatinine clearance < 60 ml / min / m2. | SELECT * FROM table_train_225 WHERE creatinine_clearance_cl < 60 | [
20123,
259,
500,
19745,
1279,
3126,
25962,
1220,
949,
1220,
285,
17,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
18182,
33411,
1827,
259,
500,
62,
20063,
590,
62,
565,
1279,
3126
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20123,
259,
500,
19745,
1279,
3126,
25962,
1220,
949,
1220,
285,
17,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
18182,
33411,
1827,
259,
500,
62,
20063,
590,
62,
565,
1279,
3126
] |
Can I take 611 and 539 as I need to leave for work at 5:00 everyday ? | SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE (course.number = 611 OR course.number = 539) AND course_offering.end_time > '17:00:00' AND semester.semester = 'WN' AND semester.year = ... | [
6090,
314,
1011,
718,
1157,
290,
642,
2670,
355,
314,
761,
284,
2666,
329,
670,
379,
642,
25,
405,
10908,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
314,
1011,
718,
1157,
290,
642,
2670,
355,
314,
761,
284,
2666,
329,
670,
379,
642,
25,
405,
10908,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,... |
How Close Am I to Unsung Hero Badge (Including 10 days requirement)?. Zero and non-zero accepted count. Self-accepted answers do not count. | SELECT COUNT(a.Id) AS "accepted_answers", SUM(CASE WHEN a.Score = 0 THEN 0 ELSE 1 END) AS "scored_answers", SUM(CASE WHEN a.Score = 0 THEN 1 ELSE 0 END) AS "unscored_answers", SUM(CASE WHEN a.Score = 0 THEN 1 ELSE 0 END) * 1000 / COUNT(a.Id) / 10.0 AS "percentage_unscored" FROM Posts AS q INNER JOIN Posts AS a ON a.Id ... | [
2437,
13872,
1703,
314,
284,
791,
9854,
8757,
44308,
357,
818,
6360,
838,
1528,
9079,
19427,
13,
12169,
290,
1729,
12,
22570,
6292,
954,
13,
12189,
12,
13635,
276,
7429,
466,
407,
954,
13,
46506,
327,
28270,
7,
64,
13,
7390,
8,
7054... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
13872,
1703,
314,
284,
791,
9854,
8757,
44308,
357,
818,
6360,
838,
1528,
9079,
19427,
13,
12169,
290,
1729,
12,
22570,
6292,
954,
13,
12189,
12,
13635,
276,
7429,
466,
407,
954,
13,
46506,
327,
28270,
7,
64,
13,
7390,
8,
7054... |
What is the model for Thor's Hammer which is listed as operating? | SELECT model FROM table_name_16 WHERE status = "operating" AND name = "thor's hammer" | [
2061,
318,
262,
2746,
329,
13002,
338,
18278,
543,
318,
5610,
355,
5361,
30,
46506,
2746,
16034,
3084,
62,
3672,
62,
1433,
33411,
3722,
796,
366,
3575,
803,
1,
5357,
1438,
796,
366,
400,
273,
338,
15554,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2746,
329,
13002,
338,
18278,
543,
318,
5610,
355,
5361,
30,
46506,
2746,
16034,
3084,
62,
3672,
62,
1433,
33411,
3722,
796,
366,
3575,
803,
1,
5357,
1438,
796,
366,
400,
273,
338,
15554,
1
] |
Which class has fewer than 89 points and the Honda team later than 1987? | SELECT "Class" FROM table_35202 WHERE "Points" < '89' AND "Team" = 'honda' AND "Year" > '1987' | [
13828,
1398,
468,
7380,
621,
9919,
2173,
290,
262,
20059,
1074,
1568,
621,
12923,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
2327,
19004,
33411,
366,
40710,
1,
1279,
705,
4531,
6,
5357,
366,
15592,
1,
796,
705,
71,
13533,
6,
5357,
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
] | [
13828,
1398,
468,
7380,
621,
9919,
2173,
290,
262,
20059,
1074,
1568,
621,
12923,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
2327,
19004,
33411,
366,
40710,
1,
1279,
705,
4531,
6,
5357,
366,
15592,
1,
796,
705,
71,
13533,
6,
5357,
36... |
What region is the city of Philadelphia located in? | SELECT "Region" FROM table_31693 WHERE "City" = 'philadelphia' | [
2061,
3814,
318,
262,
1748,
286,
8857,
5140,
287,
30,
46506,
366,
47371,
1,
16034,
3084,
62,
33400,
6052,
33411,
366,
14941,
1,
796,
705,
28864,
8273,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3814,
318,
262,
1748,
286,
8857,
5140,
287,
30,
46506,
366,
47371,
1,
16034,
3084,
62,
33400,
6052,
33411,
366,
14941,
1,
796,
705,
28864,
8273,
6
] |
had patient 7165's arterial bp [systolic] until 04/2105 been ever less than 164.0? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7165)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systo... | [
18108,
5827,
767,
20986,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
1566,
8702,
14,
17,
13348,
587,
1683,
1342,
621,
25307,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
5827,
767,
20986,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
1566,
8702,
14,
17,
13348,
587,
1683,
1342,
621,
25307,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
... |
What is the number of patients born before 2069 with preferred language english. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "ENGL" AND demographic.dob_year < "2069" | [
2061,
318,
262,
1271,
286,
3871,
4642,
878,
1160,
3388,
351,
9871,
3303,
46932,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
1677,
8763,
1,
5357,
16728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
3871,
4642,
878,
1160,
3388,
351,
9871,
3303,
46932,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
1677,
8763,
1,
5357,
16728,... |
Which state is Tehachapi Pass Wind Farm located in? | SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm" | [
13828,
1181,
318,
1665,
71,
620,
15042,
6251,
3086,
11272,
5140,
287,
30,
46506,
1181,
62,
15234,
924,
16034,
3084,
62,
3672,
62,
4761,
33411,
2344,
62,
43323,
796,
366,
660,
71,
620,
15042,
1208,
2344,
5318,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1181,
318,
1665,
71,
620,
15042,
6251,
3086,
11272,
5140,
287,
30,
46506,
1181,
62,
15234,
924,
16034,
3084,
62,
3672,
62,
4761,
33411,
2344,
62,
43323,
796,
366,
660,
71,
620,
15042,
1208,
2344,
5318,
1
] |
What is the pick number of the player whose college is Florida State? | SELECT "Pick #" FROM table_19482 WHERE "College" = 'Florida State' | [
2061,
318,
262,
2298,
1271,
286,
262,
2137,
3025,
4152,
318,
4744,
1812,
30,
46506,
366,
31686,
1303,
1,
16034,
3084,
62,
1129,
40149,
33411,
366,
38951,
1,
796,
705,
31135,
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
] | [
2061,
318,
262,
2298,
1271,
286,
262,
2137,
3025,
4152,
318,
4744,
1812,
30,
46506,
366,
31686,
1303,
1,
16034,
3084,
62,
1129,
40149,
33411,
366,
38951,
1,
796,
705,
31135,
1812,
6
] |
What was the result of the game in week 4? | SELECT "Result" FROM table_49182 WHERE "Week" = '4' | [
2061,
373,
262,
1255,
286,
262,
983,
287,
1285,
604,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2920,
24294,
33411,
366,
20916,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
983,
287,
1285,
604,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2920,
24294,
33411,
366,
20916,
1,
796,
705,
19,
6
] |
Find Gaps in Post IDs. Sample for SO Question 3788552 SQL interview question | SELECT low, high FROM (SELECT Id, low FROM (SELECT n1.Id AS ID, MIN(n2.Id) + 1 AS low FROM Posts AS n1 INNER JOIN Posts AS n2 ON n1.Id < n2.Id WHERE n1.Id < 5000 AND n2.Id < 5000 GROUP BY n1.Id) AS t WHERE t.low NOT IN (SELECT Id FROM Posts) AND t.low < (SELECT MAX(Id) FROM Posts)) AS t INNER JOIN (SELECT Id - 1 AS ID,... | [
16742,
402,
1686,
287,
2947,
32373,
13,
27565,
329,
12809,
18233,
5214,
3459,
40427,
16363,
2720,
1808,
46506,
1877,
11,
1029,
16034,
357,
46506,
5121,
11,
1877,
16034,
357,
46506,
299,
16,
13,
7390,
7054,
4522,
11,
20625,
7,
77,
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... | [
16742,
402,
1686,
287,
2947,
32373,
13,
27565,
329,
12809,
18233,
5214,
3459,
40427,
16363,
2720,
1808,
46506,
1877,
11,
1029,
16034,
357,
46506,
5121,
11,
1877,
16034,
357,
46506,
299,
16,
13,
7390,
7054,
4522,
11,
20625,
7,
77,
17,
... |
What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot? | SELECT "Viewers (in millions)" FROM table_21813 WHERE "Ranking" = '#51' AND "Timeslot" = 'Tuesday 9:00 p.m.' | [
2061,
318,
790,
1988,
329,
10209,
329,
12759,
1303,
4349,
329,
262,
3431,
860,
25,
405,
279,
13,
76,
13,
1661,
26487,
30,
46506,
366,
7680,
364,
357,
259,
5242,
16725,
16034,
3084,
62,
28727,
1485,
33411,
366,
49,
15230,
1,
796,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
790,
1988,
329,
10209,
329,
12759,
1303,
4349,
329,
262,
3431,
860,
25,
405,
279,
13,
76,
13,
1661,
26487,
30,
46506,
366,
7680,
364,
357,
259,
5242,
16725,
16034,
3084,
62,
28727,
1485,
33411,
366,
49,
15230,
1,
796,
705... |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a line chart about the change of department_id over hire_date . | SELECT HIRE_DATE, DEPARTMENT_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,
1627,
8262,
546,
262,
1487,
286,
5011,
62,
312,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
1627,
8262,
546,
262,
1487,
286,
5011,
62,
312,
625,
11078,
62,
4475,
764,
46506,
36210,
2200,
62,
35,
6158,
11,
... |
Who is the candidate in the 2012 election? | SELECT candidate FROM table_name_50 WHERE election = "2012" | [
8241,
318,
262,
4540,
287,
262,
2321,
3071,
30,
46506,
4540,
16034,
3084,
62,
3672,
62,
1120,
33411,
3071,
796,
366,
6999,
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,
4540,
287,
262,
2321,
3071,
30,
46506,
4540,
16034,
3084,
62,
3672,
62,
1120,
33411,
3071,
796,
366,
6999,
1
] |
Which wicket had 580 runs? | SELECT wicket FROM table_name_85 WHERE runs = "580" | [
13828,
266,
9715,
550,
41234,
4539,
30,
46506,
266,
9715,
16034,
3084,
62,
3672,
62,
5332,
33411,
4539,
796,
366,
39322,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
266,
9715,
550,
41234,
4539,
30,
46506,
266,
9715,
16034,
3084,
62,
3672,
62,
5332,
33411,
4539,
796,
366,
39322,
1
] |
What is the location of the institution barton college | SELECT location FROM table_11658094_1 WHERE institution = "Barton College" | [
2061,
318,
262,
4067,
286,
262,
9901,
30539,
261,
4152,
46506,
4067,
16034,
3084,
62,
1157,
2996,
1795,
5824,
62,
16,
33411,
9901,
796,
366,
33,
41328,
5535,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4067,
286,
262,
9901,
30539,
261,
4152,
46506,
4067,
16034,
3084,
62,
1157,
2996,
1795,
5824,
62,
16,
33411,
9901,
796,
366,
33,
41328,
5535,
1
] |
What's the total number of points that the rank is less than 5 and has Tiago Splitter? | SELECT COUNT("Points") FROM table_44999 WHERE "Name" = 'tiago splitter' AND "Rank" < '5' | [
2061,
338,
262,
2472,
1271,
286,
2173,
326,
262,
4279,
318,
1342,
621,
642,
290,
468,
16953,
3839,
13341,
1967,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
2598,
17032,
33411,
366,
5376,
1,
796,
705,
20259,
3839,
4328,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
2173,
326,
262,
4279,
318,
1342,
621,
642,
290,
468,
16953,
3839,
13341,
1967,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
2598,
17032,
33411,
366,
5376,
1,
796,
705,
20259,
3839,
4328,
... |
Who directed the episode for s02 e08? | SELECT "Directed by" FROM table_20711 WHERE "Broadcast Order" = 'S02 E08' | [
8241,
7924,
262,
4471,
329,
264,
2999,
304,
2919,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
22745,
1157,
33411,
366,
30507,
2701,
8284,
1,
796,
705,
50,
2999,
412,
2919,
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
] | [
8241,
7924,
262,
4471,
329,
264,
2999,
304,
2919,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
22745,
1157,
33411,
366,
30507,
2701,
8284,
1,
796,
705,
50,
2999,
412,
2919,
6
] |
Which home team is ranked no. 7 by tie no.? | SELECT "Home team" FROM table_36057 WHERE "Tie no" = '7' | [
13828,
1363,
1074,
318,
10307,
645,
13,
767,
416,
9839,
645,
40791,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
15277,
3553,
33411,
366,
51,
494,
645,
1,
796,
705,
22,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1363,
1074,
318,
10307,
645,
13,
767,
416,
9839,
645,
40791,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
15277,
3553,
33411,
366,
51,
494,
645,
1,
796,
705,
22,
6
] |
patient 19428 had any potassium chlor 10mq today? | SELECT COUNT(*) > 0 FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'potassiu... | [
26029,
30483,
2078,
550,
597,
33156,
20207,
838,
76,
80,
1909,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
62,
312,
3268,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26029,
30483,
2078,
550,
597,
33156,
20207,
838,
76,
80,
1909,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
62,
312,
3268,
357,
... |
In the game with the venue of mcg, what was the attendance? | SELECT "Crowd" FROM table_11515 WHERE "Venue" = 'mcg' | [
818,
262,
983,
351,
262,
14359,
286,
36650,
70,
11,
644,
373,
262,
14858,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
15363,
1314,
33411,
366,
37522,
518,
1,
796,
705,
23209,
70,
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
] | [
818,
262,
983,
351,
262,
14359,
286,
36650,
70,
11,
644,
373,
262,
14858,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
15363,
1314,
33411,
366,
37522,
518,
1,
796,
705,
23209,
70,
6
] |
How many faculty members do we have for each gender? Draw a bar chart, and I want to order by the names in asc please. | SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY Sex | [
2437,
867,
12829,
1866,
466,
356,
423,
329,
1123,
5279,
30,
15315,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
3891,
287,
10570,
3387,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
44441,
11050,
14419,
38678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12829,
1866,
466,
356,
423,
329,
1123,
5279,
30,
15315,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
3891,
287,
10570,
3387,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
44441,
11050,
14419,
38678,
... |
what are patient 14502's changes in arterial bp mean last measured on the last intensive care unit visit compared to the second to last value measured on the last intensive care unit 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 = 14502) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | [
10919,
389,
5827,
1478,
35126,
338,
2458,
287,
30675,
498,
275,
79,
1612,
938,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
30,
46506,
357,
46506,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
5827,
1478,
35126,
338,
2458,
287,
30675,
498,
275,
79,
1612,
938,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
30,
46506,
357,
46506,
82... |
Show the smallest enrollment of each state using a bar chart. | SELECT state, MIN(enr) FROM College GROUP BY state | [
15307,
262,
18197,
20753,
286,
1123,
1181,
1262,
257,
2318,
8262,
13,
46506,
1181,
11,
20625,
7,
268,
81,
8,
16034,
5535,
44441,
11050,
1181
] | [
1,
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,
18197,
20753,
286,
1123,
1181,
1262,
257,
2318,
8262,
13,
46506,
1181,
11,
20625,
7,
268,
81,
8,
16034,
5535,
44441,
11050,
1181
] |
what is 2011 when the rank is less than 8 and the water park is ocean world? | SELECT SUM(2011) FROM table_name_58 WHERE rank < 8 AND water_park = "ocean world" | [
10919,
318,
2813,
618,
262,
4279,
318,
1342,
621,
807,
290,
262,
1660,
3952,
318,
9151,
995,
30,
46506,
35683,
7,
9804,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
4279,
1279,
807,
5357,
1660,
62,
20928,
796,
366,
78,
5829,
995,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2813,
618,
262,
4279,
318,
1342,
621,
807,
290,
262,
1660,
3952,
318,
9151,
995,
30,
46506,
35683,
7,
9804,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
4279,
1279,
807,
5357,
1660,
62,
20928,
796,
366,
78,
5829,
995,
1
] |
What is Works Number, when Number is 55? | SELECT works_number FROM table_name_44 WHERE number = "55" | [
2061,
318,
10933,
7913,
11,
618,
7913,
318,
5996,
30,
46506,
2499,
62,
17618,
16034,
3084,
62,
3672,
62,
2598,
33411,
1271,
796,
366,
2816,
1
] | [
1,
1,
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,
10933,
7913,
11,
618,
7913,
318,
5996,
30,
46506,
2499,
62,
17618,
16034,
3084,
62,
3672,
62,
2598,
33411,
1271,
796,
366,
2816,
1
] |
What is the Score on January 23? | SELECT "Score" FROM table_46084 WHERE "Date" = 'january 23' | [
2061,
318,
262,
15178,
319,
3269,
2242,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34716,
5705,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
2242,
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,
318,
262,
15178,
319,
3269,
2242,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34716,
5705,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
2242,
6
] |
What date did the Mountaineers score 27 points and their opponent scored more that 7? | SELECT date FROM table_name_82 WHERE points_against > 7 AND points_for = 27 | [
2061,
3128,
750,
262,
5628,
5718,
364,
4776,
2681,
2173,
290,
511,
6125,
7781,
517,
326,
767,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
6469,
33411,
2173,
62,
32826,
1875,
767,
5357,
2173,
62,
1640,
796,
2681
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
750,
262,
5628,
5718,
364,
4776,
2681,
2173,
290,
511,
6125,
7781,
517,
326,
767,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
6469,
33411,
2173,
62,
32826,
1875,
767,
5357,
2173,
62,
1640,
796,
2681
] |
What is the least amount in each season? | SELECT MIN(no_in_season) FROM table_29273390_1 | [
2061,
318,
262,
1551,
2033,
287,
1123,
1622,
30,
46506,
20625,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
1959,
1983,
2091,
3829,
62,
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
] | [
2061,
318,
262,
1551,
2033,
287,
1123,
1622,
30,
46506,
20625,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
1959,
1983,
2091,
3829,
62,
16
] |
Provide the number of patients whose primary disease is aortic valve insufficiency/aortic valve replacment/sda and who died in or before year 2164. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" AND demographic.dod_year <= "2164.0" | [
15946,
485,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
257,
419,
291,
22580,
1035,
1648,
19777,
14,
64,
419,
291,
22580,
2186,
330,
434,
14,
82,
6814,
290,
508,
3724,
287,
393,
878,
614,
362,
23237,
13,
46506,
327,
28270,
7,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15946,
485,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
257,
419,
291,
22580,
1035,
1648,
19777,
14,
64,
419,
291,
22580,
2186,
330,
434,
14,
82,
6814,
290,
508,
3724,
287,
393,
878,
614,
362,
23237,
13,
46506,
327,
28270,
7,
35,
... |
For mid-hill zone what is the altitude? | SELECT mid_hill_zone FROM table_10638523_1 WHERE particulars_and_characteristics = "Altitude" | [
1890,
3095,
12,
12639,
6516,
644,
318,
262,
20334,
30,
46506,
3095,
62,
12639,
62,
11340,
16034,
3084,
62,
15801,
27203,
1954,
62,
16,
33411,
45596,
62,
392,
62,
22769,
3969,
796,
366,
29161,
3984,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3095,
12,
12639,
6516,
644,
318,
262,
20334,
30,
46506,
3095,
62,
12639,
62,
11340,
16034,
3084,
62,
15801,
27203,
1954,
62,
16,
33411,
45596,
62,
392,
62,
22769,
3969,
796,
366,
29161,
3984,
1
] |
Finding tag by excerpt contents. | SELECT t.TagName, p.Body, t.Count FROM Tags AS t INNER JOIN Posts AS p ON t.ExcerptPostId = p.Id WHERE p.Body LIKE '' ORDER BY t.Count DESC | [
36276,
7621,
416,
20911,
10154,
13,
46506,
256,
13,
24835,
5376,
11,
279,
13,
25842,
11,
256,
13,
12332,
16034,
44789,
7054,
256,
3268,
21479,
32357,
1268,
12043,
7054,
279,
6177,
256,
13,
3109,
17040,
6307,
7390,
796,
279,
13,
7390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36276,
7621,
416,
20911,
10154,
13,
46506,
256,
13,
24835,
5376,
11,
279,
13,
25842,
11,
256,
13,
12332,
16034,
44789,
7054,
256,
3268,
21479,
32357,
1268,
12043,
7054,
279,
6177,
256,
13,
3109,
17040,
6307,
7390,
796,
279,
13,
7390,
... |
What is the lowest attendance on September 3, 1972? | SELECT MIN(attendance) FROM table_name_52 WHERE date = "september 3, 1972" | [
2061,
318,
262,
9016,
14858,
319,
2693,
513,
11,
16101,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
325,
457,
1491,
513,
11,
16101,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
14858,
319,
2693,
513,
11,
16101,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
325,
457,
1491,
513,
11,
16101,
1
] |
What player is a cornerback? | SELECT player FROM table_name_57 WHERE position = "cornerback" | [
2061,
2137,
318,
257,
26683,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3553,
33411,
2292,
796,
366,
10215,
1008,
1891,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2137,
318,
257,
26683,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
3553,
33411,
2292,
796,
366,
10215,
1008,
1891,
1
] |
What is the sum of Metres wiht a Feet that's smaller than 196? | SELECT COUNT("Metres") FROM table_35790 WHERE "Feet" < '196' | [
2061,
318,
262,
2160,
286,
3395,
411,
45967,
4352,
257,
43391,
326,
338,
4833,
621,
28817,
30,
46506,
327,
28270,
7203,
9171,
411,
4943,
16034,
3084,
62,
2327,
37750,
33411,
366,
14304,
316,
1,
1279,
705,
25272,
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,
2160,
286,
3395,
411,
45967,
4352,
257,
43391,
326,
338,
4833,
621,
28817,
30,
46506,
327,
28270,
7203,
9171,
411,
4943,
16034,
3084,
62,
2327,
37750,
33411,
366,
14304,
316,
1,
1279,
705,
25272,
6
] |
Tell me the partner for outcome of winner and score of 7-6 (7) 5-7 10-7 | SELECT "Partner" FROM table_4423 WHERE "Outcome" = 'winner' AND "Score" = '7-6 (7) 5-7 10-7' | [
24446,
502,
262,
5212,
329,
8055,
286,
8464,
290,
4776,
286,
767,
12,
21,
357,
22,
8,
642,
12,
22,
838,
12,
22,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
2598,
1954,
33411,
366,
7975,
2958,
1,
796,
705,
39791,
6,
5357,
366,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5212,
329,
8055,
286,
8464,
290,
4776,
286,
767,
12,
21,
357,
22,
8,
642,
12,
22,
838,
12,
22,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
2598,
1954,
33411,
366,
7975,
2958,
1,
796,
705,
39791,
6,
5357,
366,
26... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and manufacturer , and group by attribute headquarter, and sort bars from low to high order. | 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 | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
3297,
9210,
422,
1877,
284,
1029,
1502,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
3297,
9210,
422,
1877,
284,
1029,
1502,
13,
46506,
309,
16,
... |
What is the abbreviation for the college pronounced 'k k daigakk '? | SELECT abbreviation FROM table_11390711_4 WHERE pronouciation = "Kōkū Daigakkō" | [
2061,
318,
262,
28873,
47625,
329,
262,
4152,
16293,
705,
74,
479,
12379,
328,
461,
74,
705,
30,
46506,
28873,
47625,
16034,
3084,
62,
1157,
2670,
2998,
1157,
62,
19,
33411,
9668,
280,
17269,
796,
366,
42,
13090,
74,
20317,
9637,
328,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28873,
47625,
329,
262,
4152,
16293,
705,
74,
479,
12379,
328,
461,
74,
705,
30,
46506,
28873,
47625,
16034,
3084,
62,
1157,
2670,
2998,
1157,
62,
19,
33411,
9668,
280,
17269,
796,
366,
42,
13090,
74,
20317,
9637,
328,... |
What average Wins has Losses 2, and Draws less than 0? | SELECT AVG(wins) FROM table_name_92 WHERE loses = 2 AND draws < 0 | [
2061,
2811,
24423,
468,
22014,
274,
362,
11,
290,
15315,
82,
1342,
621,
657,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
14754,
796,
362,
5357,
14293,
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,
1,
1,
1,
1,
1,
1
] | [
2061,
2811,
24423,
468,
22014,
274,
362,
11,
290,
15315,
82,
1342,
621,
657,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
5892,
33411,
14754,
796,
362,
5357,
14293,
1279,
657
] |
What is the average match when the singapore armed forces played away against perak fa (malaysia)? | SELECT AVG("Match") FROM table_50268 WHERE "Home/Away" = 'away' AND "Opponent team" = 'perak fa (malaysia)' | [
2061,
318,
262,
2811,
2872,
618,
262,
1702,
11656,
6936,
3386,
2826,
1497,
1028,
583,
461,
24685,
357,
7617,
592,
544,
19427,
46506,
35224,
7203,
23850,
4943,
16034,
3084,
62,
1120,
25022,
33411,
366,
16060,
14,
32,
1014,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
2872,
618,
262,
1702,
11656,
6936,
3386,
2826,
1497,
1028,
583,
461,
24685,
357,
7617,
592,
544,
19427,
46506,
35224,
7203,
23850,
4943,
16034,
3084,
62,
1120,
25022,
33411,
366,
16060,
14,
32,
1014,
1,
796,
705,
... |
Who won the event with a top prize of $2,434,061? | SELECT "Name" FROM table_14975 WHERE "Prize" = '$2,434,061' | [
8241,
1839,
262,
1785,
351,
257,
1353,
11596,
286,
720,
17,
11,
47101,
11,
3312,
16,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
19442,
2425,
33411,
366,
34487,
2736,
1,
796,
705,
3,
17,
11,
47101,
11,
3312,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
1839,
262,
1785,
351,
257,
1353,
11596,
286,
720,
17,
11,
47101,
11,
3312,
16,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
19442,
2425,
33411,
366,
34487,
2736,
1,
796,
705,
3,
17,
11,
47101,
11,
3312,
16,
6
] |
Dump your own posts as Graph. Dump your own posts, e.g. for backup purposes. | SELECT * FROM Posts WHERE OwnerUserId = @UserID | [
35,
931,
534,
898,
6851,
355,
29681,
13,
360,
931,
534,
898,
6851,
11,
304,
13,
70,
13,
329,
11559,
4959,
13,
46506,
1635,
16034,
12043,
33411,
23853,
12982,
7390,
796,
2488,
12982,
2389
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35,
931,
534,
898,
6851,
355,
29681,
13,
360,
931,
534,
898,
6851,
11,
304,
13,
70,
13,
329,
11559,
4959,
13,
46506,
1635,
16034,
12043,
33411,
23853,
12982,
7390,
796,
2488,
12982,
2389
] |
What was the earliest week the team played the chicago cardinals in front of less than 25,312? | SELECT MIN("Week") FROM table_32924 WHERE "Opponent" = 'chicago cardinals' AND "Attendance" < '25,312' | [
2061,
373,
262,
14555,
1285,
262,
1074,
2826,
262,
442,
4549,
2657,
6897,
287,
2166,
286,
1342,
621,
1679,
11,
27970,
30,
46506,
20625,
7203,
20916,
4943,
16034,
3084,
62,
37967,
1731,
33411,
366,
27524,
3471,
1,
796,
705,
354,
4549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14555,
1285,
262,
1074,
2826,
262,
442,
4549,
2657,
6897,
287,
2166,
286,
1342,
621,
1679,
11,
27970,
30,
46506,
20625,
7203,
20916,
4943,
16034,
3084,
62,
37967,
1731,
33411,
366,
27524,
3471,
1,
796,
705,
354,
4549,
... |
who had the earliest reign ? | SELECT "temple name" FROM table_204_465 ORDER BY "period of reign" LIMIT 1 | [
8727,
550,
262,
14555,
13580,
5633,
46506,
366,
11498,
1154,
1438,
1,
16034,
3084,
62,
18638,
62,
42018,
38678,
11050,
366,
41007,
286,
13580,
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
] | [
8727,
550,
262,
14555,
13580,
5633,
46506,
366,
11498,
1154,
1438,
1,
16034,
3084,
62,
18638,
62,
42018,
38678,
11050,
366,
41007,
286,
13580,
1,
27564,
2043,
352
] |
What are the different main industries for all companies? | SELECT DISTINCT main_industry FROM company | [
2061,
389,
262,
1180,
1388,
11798,
329,
477,
2706,
30,
46506,
360,
8808,
1268,
4177,
1388,
62,
23213,
563,
16034,
1664
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1180,
1388,
11798,
329,
477,
2706,
30,
46506,
360,
8808,
1268,
4177,
1388,
62,
23213,
563,
16034,
1664
] |
tell me the three most common intakes in 2100? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE STRFTIME('%y', inputevents_cv.charttime) = '2100' GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 3) | [
33331,
502,
262,
1115,
749,
2219,
42219,
287,
38123,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,
287,
79,
1133,
85,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1115,
749,
2219,
42219,
287,
38123,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,
287,
79,
1133,
85,
... |
What Mountain Pass has an Elevation of 10,001 feet 3048 m? | SELECT "Mountain Pass" FROM table_74814 WHERE "Elevation" = '10,001 feet 3048 m' | [
2061,
9638,
6251,
468,
281,
37881,
341,
286,
838,
11,
8298,
3625,
1542,
2780,
285,
30,
46506,
366,
44,
18635,
6251,
1,
16034,
3084,
62,
48246,
1415,
33411,
366,
36,
2768,
341,
1,
796,
705,
940,
11,
8298,
3625,
1542,
2780,
285,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
9638,
6251,
468,
281,
37881,
341,
286,
838,
11,
8298,
3625,
1542,
2780,
285,
30,
46506,
366,
44,
18635,
6251,
1,
16034,
3084,
62,
48246,
1415,
33411,
366,
36,
2768,
341,
1,
796,
705,
940,
11,
8298,
3625,
1542,
2780,
285,
6
] |
Return a bar chart about the distribution of Nationality and the amount of Nationality , and group by attribute Nationality, list Y-axis in asc order. | SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality ORDER BY COUNT(Nationality) | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
2351,
414,
290,
262,
2033,
286,
2351,
414,
837,
290,
1448,
416,
11688,
2351,
414,
11,
1351,
575,
12,
22704,
287,
10570,
1502,
13,
46506,
2351,
414,
11,
327,
28270,
7,
16186,
414,
8,
16034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
2351,
414,
290,
262,
2033,
286,
2351,
414,
837,
290,
1448,
416,
11688,
2351,
414,
11,
1351,
575,
12,
22704,
287,
10570,
1502,
13,
46506,
2351,
414,
11,
327,
28270,
7,
16186,
414,
8,
16034... |
give me the number of patients whose ethnicity is white - russian and diagnoses short title is acute respiratry failure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND diagnoses.short_title = "Acute respiratry failure" | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
2330,
532,
374,
31562,
290,
40567,
1790,
3670,
318,
14352,
21483,
265,
563,
5287,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
2330,
532,
374,
31562,
290,
40567,
1790,
3670,
318,
14352,
21483,
265,
563,
5287,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... |
What is the score when the points are larger than 74 and the game is 57? | SELECT "Score" FROM table_39727 WHERE "Points" > '74' AND "Game" = '57' | [
2061,
318,
262,
4776,
618,
262,
2173,
389,
4025,
621,
8915,
290,
262,
983,
318,
7632,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
33372,
1983,
33411,
366,
40710,
1,
1875,
705,
4524,
6,
5357,
366,
8777,
1,
796,
705,
3553,
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
] | [
2061,
318,
262,
4776,
618,
262,
2173,
389,
4025,
621,
8915,
290,
262,
983,
318,
7632,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
33372,
1983,
33411,
366,
40710,
1,
1875,
705,
4524,
6,
5357,
366,
8777,
1,
796,
705,
3553,
6
] |
Who was the GTO winning team when the TO winning team was #84 Camaro? | SELECT "GTO Winning Team" FROM table_852 WHERE "TO Winning Team" = '#84 Camaro' | [
8241,
373,
262,
7963,
46,
5442,
1074,
618,
262,
5390,
5442,
1074,
373,
1303,
5705,
7298,
12022,
30,
46506,
366,
38,
10468,
40983,
4816,
1,
16034,
3084,
62,
23,
4309,
33411,
366,
10468,
40983,
4816,
1,
796,
705,
2,
5705,
7298,
12022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7963,
46,
5442,
1074,
618,
262,
5390,
5442,
1074,
373,
1303,
5705,
7298,
12022,
30,
46506,
366,
38,
10468,
40983,
4816,
1,
16034,
3084,
62,
23,
4309,
33411,
366,
10468,
40983,
4816,
1,
796,
705,
2,
5705,
7298,
12022,
... |
Opponent of @ atlanta flames had what game? | SELECT "Game" FROM table_5076 WHERE "Opponent" = '@ atlanta flames' | [
27524,
3471,
286,
2488,
379,
75,
4910,
16209,
550,
644,
983,
30,
46506,
366,
8777,
1,
16034,
3084,
62,
1120,
4304,
33411,
366,
27524,
3471,
1,
796,
705,
31,
379,
75,
4910,
16209,
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
] | [
27524,
3471,
286,
2488,
379,
75,
4910,
16209,
550,
644,
983,
30,
46506,
366,
8777,
1,
16034,
3084,
62,
1120,
4304,
33411,
366,
27524,
3471,
1,
796,
705,
31,
379,
75,
4910,
16209,
6
] |
HTML5 thread volume, page views, unique OPs by month. | SELECT COUNT(*) AS Volume, SUM(ViewCount) AS PageViews, COUNT(DISTINCT OwnerUserId) AS UniqueOPs, TIME_TO_STR(P.CreationDate, '%Y') AS "year", TIME_TO_STR(P.CreationDate, '%m') AS Month FROM Posts AS P WHERE (Tags LIKE '%<html5%' OR Tags LIKE '%<html-canvas>%' OR Tags LIKE '%<xhtml5>%') AND PostTypeId = 1 AND Community... | [
28656,
20,
4704,
6115,
11,
2443,
5009,
11,
3748,
440,
12016,
416,
1227,
13,
46506,
327,
28270,
7,
28104,
7054,
14701,
11,
35683,
7,
7680,
12332,
8,
7054,
7873,
7680,
82,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
23853,
12982,
7390,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
28656,
20,
4704,
6115,
11,
2443,
5009,
11,
3748,
440,
12016,
416,
1227,
13,
46506,
327,
28270,
7,
28104,
7054,
14701,
11,
35683,
7,
7680,
12332,
8,
7054,
7873,
7680,
82,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
23853,
12982,
7390,
8... |
Compare tag usage over time. | SELECT * FROM (SELECT p.Id, t.TagName, YEAR(p.CreationDate) AS "year" FROM Tags AS t JOIN PostTags AS pt ON pt.TagId = t.Id JOIN Posts AS p ON pt.PostId = p.Id) AS a PIVOT(COUNT(Id) FOR TagName IN ('##tags##')) AS p ORDER BY year | [
41488,
7621,
8748,
625,
640,
13,
46506,
1635,
16034,
357,
46506,
279,
13,
7390,
11,
256,
13,
24835,
5376,
11,
32914,
7,
79,
13,
12443,
341,
10430,
8,
7054,
366,
1941,
1,
16034,
44789,
7054,
256,
32357,
1268,
2947,
36142,
7054,
42975,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7621,
8748,
625,
640,
13,
46506,
1635,
16034,
357,
46506,
279,
13,
7390,
11,
256,
13,
24835,
5376,
11,
32914,
7,
79,
13,
12443,
341,
10430,
8,
7054,
366,
1941,
1,
16034,
44789,
7054,
256,
32357,
1268,
2947,
36142,
7054,
42975,
... |
How many episode air dates are there for auditioning city Rio De Janeiro? | SELECT COUNT("Episode Air Date") FROM table_29665 WHERE "Audition City" = 'Rio de Janeiro' | [
2437,
867,
4471,
1633,
9667,
389,
612,
329,
31678,
278,
1748,
15338,
1024,
42799,
30,
46506,
327,
28270,
7203,
23758,
3701,
7536,
4943,
16034,
3084,
62,
1959,
36879,
33411,
366,
16353,
653,
2254,
1,
796,
705,
49,
952,
390,
42799,
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
] | [
2437,
867,
4471,
1633,
9667,
389,
612,
329,
31678,
278,
1748,
15338,
1024,
42799,
30,
46506,
327,
28270,
7203,
23758,
3701,
7536,
4943,
16034,
3084,
62,
1959,
36879,
33411,
366,
16353,
653,
2254,
1,
796,
705,
49,
952,
390,
42799,
6
] |
Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting | SELECT tour FROM table_14496232_2 WHERE mens_singles = "Chen Jin" AND womens_doubles = "Zhang Yawen Zhao Tingting" | [
5376,
262,
4205,
618,
285,
641,
25287,
318,
269,
831,
474,
259,
290,
1116,
641,
21938,
318,
1976,
33255,
331,
707,
268,
1976,
23778,
256,
278,
889,
46506,
4205,
16034,
3084,
62,
1415,
37747,
24339,
62,
17,
33411,
285,
641,
62,
12215,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4205,
618,
285,
641,
25287,
318,
269,
831,
474,
259,
290,
1116,
641,
21938,
318,
1976,
33255,
331,
707,
268,
1976,
23778,
256,
278,
889,
46506,
4205,
16034,
3084,
62,
1415,
37747,
24339,
62,
17,
33411,
285,
641,
62,
12215,
... |
Can you tell me the lowest Races that has the Team Name of piquet gp, and the Points larger than 24? | SELECT MIN("Races") FROM table_44592 WHERE "Team Name" = 'piquet gp' AND "Points" > '24' | [
6090,
345,
1560,
502,
262,
9016,
45134,
326,
468,
262,
4816,
6530,
286,
279,
1557,
316,
27809,
11,
290,
262,
11045,
4025,
621,
1987,
30,
46506,
20625,
7203,
49,
2114,
4943,
16034,
3084,
62,
43489,
5892,
33411,
366,
15592,
6530,
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
] | [
6090,
345,
1560,
502,
262,
9016,
45134,
326,
468,
262,
4816,
6530,
286,
279,
1557,
316,
27809,
11,
290,
262,
11045,
4025,
621,
1987,
30,
46506,
20625,
7203,
49,
2114,
4943,
16034,
3084,
62,
43489,
5892,
33411,
366,
15592,
6530,
1,
796... |
Who was the winner after 2011? | SELECT "Winner" FROM table_50231 WHERE "Year" > '2011' | [
8241,
373,
262,
8464,
706,
2813,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
1120,
25667,
33411,
366,
17688,
1,
1875,
705,
9804,
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
] | [
8241,
373,
262,
8464,
706,
2813,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
1120,
25667,
33411,
366,
17688,
1,
1875,
705,
9804,
6
] |
how many total courthouses have there been in mississippi ? | SELECT COUNT("courthouse") FROM table_204_87 | [
4919,
867,
2472,
1093,
400,
11370,
423,
612,
587,
287,
2051,
747,
12715,
5633,
46506,
327,
28270,
7203,
43220,
23931,
4943,
16034,
3084,
62,
18638,
62,
5774
] | [
1,
1,
1,
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,
2472,
1093,
400,
11370,
423,
612,
587,
287,
2051,
747,
12715,
5633,
46506,
327,
28270,
7203,
43220,
23931,
4943,
16034,
3084,
62,
18638,
62,
5774
] |
What are the names of the technicians that are assigned to repair machines with more point values than 70, and count them by a bar chart | SELECT Name, COUNT(Name) FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.Machine_ID = T2.Machine_ID JOIN technician AS T3 ON T1.technician_id = T3.technician_id WHERE T2.value_points > 70 GROUP BY Name | [
2061,
389,
262,
3891,
286,
262,
33519,
326,
389,
8686,
284,
9185,
8217,
351,
517,
966,
3815,
621,
4317,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
9185,
62,
562,
16747,
7054,
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... | [
2061,
389,
262,
3891,
286,
262,
33519,
326,
389,
8686,
284,
9185,
8217,
351,
517,
966,
3815,
621,
4317,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
9185,
62,
562,
16747,
7054,
309,
16,
... |
What is the lowest Euro for a ticket with a price per valid day of & 34? | SELECT MIN("Price in Euro") FROM table_32774 WHERE "Price per Valid Day" = '& 34' | [
2061,
318,
262,
9016,
1898,
329,
257,
7846,
351,
257,
2756,
583,
4938,
1110,
286,
1222,
4974,
30,
46506,
20625,
7203,
18124,
287,
1898,
4943,
16034,
3084,
62,
34159,
4524,
33411,
366,
18124,
583,
48951,
3596,
1,
796,
705,
5,
4974,
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
] | [
2061,
318,
262,
9016,
1898,
329,
257,
7846,
351,
257,
2756,
583,
4938,
1110,
286,
1222,
4974,
30,
46506,
20625,
7203,
18124,
287,
1898,
4943,
16034,
3084,
62,
34159,
4524,
33411,
366,
18124,
583,
48951,
3596,
1,
796,
705,
5,
4974,
6
] |
What position does the Cincinnati Bengals' player have? | SELECT position FROM table_12165999_1 WHERE afl_team = "Cincinnati Bengals" | [
2061,
2292,
857,
262,
16137,
24037,
6,
2137,
423,
30,
46506,
2292,
16034,
3084,
62,
1065,
20986,
17032,
62,
16,
33411,
257,
2704,
62,
15097,
796,
366,
34,
15130,
24037,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2292,
857,
262,
16137,
24037,
6,
2137,
423,
30,
46506,
2292,
16034,
3084,
62,
1065,
20986,
17032,
62,
16,
33411,
257,
2704,
62,
15097,
796,
366,
34,
15130,
24037,
1
] |
Show the number of documents for different budget type description in a bar chart, and I want to order by the y-axis in asc. | SELECT Budget_Type_Description, COUNT(Budget_Type_Description) FROM Documents_with_Expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_Code = T2.Budget_Type_Code GROUP BY Budget_Type_Description ORDER BY COUNT(Budget_Type_Description) | [
15307,
262,
1271,
286,
4963,
329,
1180,
4466,
2099,
6764,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
331,
12,
22704,
287,
10570,
13,
46506,
15401,
62,
6030,
62,
11828,
11,
327,
28270,
7,
33,
29427,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
1271,
286,
4963,
329,
1180,
4466,
2099,
6764,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
331,
12,
22704,
287,
10570,
13,
46506,
15401,
62,
6030,
62,
11828,
11,
327,
28270,
7,
33,
29427,
62,
6030,
62,
... |
count the number of patients whose diagnoses long title is tietze's disease and drug type is base? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Tietze's disease" AND prescriptions.drug_type = "BASE" | [
9127,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
256,
1155,
2736,
338,
4369,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
890,
3670,
318,
256,
1155,
2736,
338,
4369,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
405... |
Show the company name with the number of gas station by a bar chart. | SELECT Company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.Company_ID = T2.Company_ID GROUP BY T1.Company_ID | [
15307,
262,
1664,
1438,
351,
262,
1271,
286,
3623,
4429,
416,
257,
2318,
8262,
13,
46506,
5834,
11,
327,
28270,
7,
28104,
16034,
4429,
62,
39722,
7054,
309,
16,
32357,
1268,
1664,
7054,
309,
17,
6177,
309,
16,
13,
39154,
62,
2389,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
1664,
1438,
351,
262,
1271,
286,
3623,
4429,
416,
257,
2318,
8262,
13,
46506,
5834,
11,
327,
28270,
7,
28104,
16034,
4429,
62,
39722,
7054,
309,
16,
32357,
1268,
1664,
7054,
309,
17,
6177,
309,
16,
13,
39154,
62,
2389,
7... |
how many patients whose primary disease is cerebral aneurysm/sda and drug route is ih? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND prescriptions.route = "IH" | [
4919,
867,
3871,
3025,
4165,
4369,
318,
31169,
281,
23365,
893,
76,
14,
82,
6814,
290,
2563,
6339,
318,
1312,
71,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
4165,
4369,
318,
31169,
281,
23365,
893,
76,
14,
82,
6814,
290,
2563,
6339,
318,
1312,
71,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
How many draws have french as the language, with a place less than 1? | SELECT SUM("Draw") FROM table_59933 WHERE "Language" = 'french' AND "Place" < '1' | [
2437,
867,
14293,
423,
48718,
355,
262,
3303,
11,
351,
257,
1295,
1342,
621,
352,
30,
46506,
35683,
7203,
25302,
4943,
16034,
3084,
62,
43452,
2091,
33411,
366,
32065,
1,
796,
705,
69,
3532,
6,
5357,
366,
27271,
1,
1279,
705,
16,
6
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
14293,
423,
48718,
355,
262,
3303,
11,
351,
257,
1295,
1342,
621,
352,
30,
46506,
35683,
7203,
25302,
4943,
16034,
3084,
62,
43452,
2091,
33411,
366,
32065,
1,
796,
705,
69,
3532,
6,
5357,
366,
27271,
1,
1279,
705,
16,
6
... |
What was St Kilda's away team score? | SELECT "Away team score" FROM table_51766 WHERE "Home team" = 'st kilda' | [
2061,
373,
520,
509,
27281,
338,
1497,
1074,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
48170,
2791,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
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,
520,
509,
27281,
338,
1497,
1074,
4776,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
48170,
2791,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
6
] |
out of total number of patients on urgent admission, how many of them were asian? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.ethnicity = "ASIAN" | [
448,
286,
2472,
1271,
286,
3871,
319,
18039,
13938,
11,
703,
867,
286,
606,
547,
355,
666,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
448,
286,
2472,
1271,
286,
3871,
319,
18039,
13938,
11,
703,
867,
286,
606,
547,
355,
666,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
... |
since 2104 patient 61527 had been prescribed meropenem? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 61527) AND prescriptions.drug = 'meropenem' AND STRFTIME('%y', prescriptions.startdate) >= '2104' | [
20777,
362,
13464,
5827,
718,
1314,
1983,
550,
587,
14798,
4017,
9654,
368,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13464,
5827,
718,
1314,
1983,
550,
587,
14798,
4017,
9654,
368,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
... |
what is the cheapest flight from BOSTON to BWI | SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, fare, flight, flight_fare WHERE (airport.airport_code = 'BWI' AND city.city_code = airport_service.city_code AND city.city_name = 'BOSTON' AND flight.from_airport = airport_service.airport_code AND flight.to_airport = airport.airport_code) AND fare.o... | [
10919,
318,
262,
28918,
5474,
422,
347,
10892,
1340,
284,
37869,
24352,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
14505,
11,
5474,
11,
5474,
62,
9496,
33411,
357,
958,
634,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28918,
5474,
422,
347,
10892,
1340,
284,
37869,
24352,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
14505,
11,
5474,
11,
5474,
62,
9496,
33411,
357,
958,
634,... |
what is the number of pieces where the person is charley hoffman | SELECT COUNT("Reset points") FROM table_30553 WHERE "Player" = 'Charley Hoffman' | [
10919,
318,
262,
1271,
286,
5207,
810,
262,
1048,
318,
1149,
1636,
289,
2364,
805,
46506,
327,
28270,
7203,
4965,
316,
2173,
4943,
16034,
3084,
62,
1270,
48096,
33411,
366,
14140,
1,
796,
705,
12441,
1636,
29010,
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
] | [
10919,
318,
262,
1271,
286,
5207,
810,
262,
1048,
318,
1149,
1636,
289,
2364,
805,
46506,
327,
28270,
7203,
4965,
316,
2173,
4943,
16034,
3084,
62,
1270,
48096,
33411,
366,
14140,
1,
796,
705,
12441,
1636,
29010,
6
] |
What are the names and years released for the movies with the top 3 highest ratings? | SELECT T2.title, T2.year FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid ORDER BY T1.stars DESC LIMIT 3 | [
2061,
389,
262,
3891,
290,
812,
2716,
329,
262,
6918,
351,
262,
1353,
513,
4511,
10109,
30,
46506,
309,
17,
13,
7839,
11,
309,
17,
13,
1941,
16034,
7955,
7054,
309,
16,
32357,
1268,
3807,
7054,
309,
17,
6177,
309,
16,
13,
13602,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
290,
812,
2716,
329,
262,
6918,
351,
262,
1353,
513,
4511,
10109,
30,
46506,
309,
17,
13,
7839,
11,
309,
17,
13,
1941,
16034,
7955,
7054,
309,
16,
32357,
1268,
3807,
7054,
309,
17,
6177,
309,
16,
13,
13602,
7... |
Labs are part of how many classes at the upper level ? | SELECT COUNT(DISTINCT course.course_id) FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_lab = 'Y' AND program_course.category LIKE '%ULCS%' | [
43,
8937,
389,
636,
286,
703,
867,
6097,
379,
262,
6727,
1241,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
8,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
43,
8937,
389,
636,
286,
703,
867,
6097,
379,
262,
6727,
1241,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
8,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
... |
What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136? | SELECT MIN("Games") FROM table_40606 WHERE "Name" = 'travis watson' AND "Rebounds" < '136' | [
2061,
318,
262,
9016,
5776,
11,
618,
6530,
318,
19804,
14959,
11,
290,
618,
15652,
3733,
318,
1342,
621,
21056,
30,
46506,
20625,
7203,
24474,
4943,
16034,
3084,
62,
1821,
33206,
33411,
366,
5376,
1,
796,
705,
83,
16956,
266,
13506,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
5776,
11,
618,
6530,
318,
19804,
14959,
11,
290,
618,
15652,
3733,
318,
1342,
621,
21056,
30,
46506,
20625,
7203,
24474,
4943,
16034,
3084,
62,
1821,
33206,
33411,
366,
5376,
1,
796,
705,
83,
16956,
266,
13506,
6... |
how many married patients have had percutaneous [endoscopic] gastrostomy [peg] procedure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.long_title = "Percutaneous [endoscopic] gastrostomy [PEG]" | [
4919,
867,
6405,
3871,
423,
550,
583,
8968,
11655,
685,
437,
48228,
60,
21956,
23341,
9145,
685,
22071,
60,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6405,
3871,
423,
550,
583,
8968,
11655,
685,
437,
48228,
60,
21956,
23341,
9145,
685,
22071,
60,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
90... |
Who is the away team for tie no 15? | SELECT "Away team" FROM table_27163 WHERE "Tie no" = '15' | [
8241,
318,
262,
1497,
1074,
329,
9839,
645,
1315,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
1983,
24136,
33411,
366,
51,
494,
645,
1,
796,
705,
1314,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
1497,
1074,
329,
9839,
645,
1315,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
1983,
24136,
33411,
366,
51,
494,
645,
1,
796,
705,
1314,
6
] |
In what Week was the Attendance 39,923? | SELECT SUM(week) FROM table_name_71 WHERE attendance = "39,923" | [
818,
644,
6119,
373,
262,
46502,
590,
5014,
11,
24,
1954,
30,
46506,
35683,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
14858,
796,
366,
2670,
11,
24,
1954,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
6119,
373,
262,
46502,
590,
5014,
11,
24,
1954,
30,
46506,
35683,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
14858,
796,
366,
2670,
11,
24,
1954,
1
] |
What is the total number of January ( C) temperatures when the July ( C) temperatures were 22/13? | SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "22/13" | [
2061,
318,
262,
2472,
1271,
286,
3269,
357,
327,
8,
10101,
618,
262,
2901,
357,
327,
8,
10101,
547,
2534,
14,
1485,
30,
46506,
327,
28270,
7,
13881,
2838,
834,
8,
7054,
22074,
66,
62,
16034,
3084,
62,
17,
23664,
62,
16,
33411,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3269,
357,
327,
8,
10101,
618,
262,
2901,
357,
327,
8,
10101,
547,
2534,
14,
1485,
30,
46506,
327,
28270,
7,
13881,
2838,
834,
8,
7054,
22074,
66,
62,
16034,
3084,
62,
17,
23664,
62,
16,
33411,
474... |
For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars. | SELECT DISTINCT T3.name, T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name | [
1890,
597,
7955,
810,
262,
1438,
286,
37823,
318,
262,
976,
355,
262,
3437,
286,
262,
3807,
11,
1441,
262,
37823,
1438,
11,
3807,
3670,
11,
290,
1271,
286,
5788,
13,
46506,
360,
8808,
1268,
4177,
309,
18,
13,
3672,
11,
309,
17,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
597,
7955,
810,
262,
1438,
286,
37823,
318,
262,
976,
355,
262,
3437,
286,
262,
3807,
11,
1441,
262,
37823,
1438,
11,
3807,
3670,
11,
290,
1271,
286,
5788,
13,
46506,
360,
8808,
1268,
4177,
309,
18,
13,
3672,
11,
309,
17,
13... |
What is the Home team score for Geelong, whereby the Away team has a score of 18.13 (121)? | SELECT "Home team score" FROM table_54420 WHERE "Away team score" = '18.13 (121)' | [
2061,
318,
262,
5995,
1074,
4776,
329,
2269,
21537,
11,
23482,
262,
21986,
1074,
468,
257,
4776,
286,
1248,
13,
1485,
357,
19244,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
47576,
1238,
33411,
366,
32,
1014,
1074,
4776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5995,
1074,
4776,
329,
2269,
21537,
11,
23482,
262,
21986,
1074,
468,
257,
4776,
286,
1248,
13,
1485,
357,
19244,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
47576,
1238,
33411,
366,
32,
1014,
1074,
4776,
... |
what is the country when the player is bill nary? | SELECT country FROM table_name_7 WHERE player = "bill nary" | [
10919,
318,
262,
1499,
618,
262,
2137,
318,
2855,
299,
560,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
22,
33411,
2137,
796,
366,
35546,
299,
560,
1
] | [
1,
1,
1,
1,
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,
1499,
618,
262,
2137,
318,
2855,
299,
560,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
22,
33411,
2137,
796,
366,
35546,
299,
560,
1
] |
how many airbases have helipads ? | SELECT COUNT("name") FROM table_204_102 WHERE "helipads" > 0 | [
4919,
867,
1633,
65,
1386,
423,
932,
541,
5643,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
15377,
33411,
366,
2978,
541,
5643,
1,
1875,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
1633,
65,
1386,
423,
932,
541,
5643,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
15377,
33411,
366,
2978,
541,
5643,
1,
1875,
657
] |
when has patient 006-232560 been given bicarbonate test for the last time since 08/2104? | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-232560')) AND lab.labname = 'bicarbonate' AND STRFTIME('%y-%m', lab.labresultti... | [
12518,
468,
5827,
3571,
21,
12,
1954,
1495,
1899,
587,
1813,
275,
291,
42084,
378,
1332,
329,
262,
938,
640,
1201,
8487,
14,
17,
13464,
30,
46506,
2248,
13,
23912,
20274,
2435,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
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... | [
12518,
468,
5827,
3571,
21,
12,
1954,
1495,
1899,
587,
1813,
275,
291,
42084,
378,
1332,
329,
262,
938,
640,
1201,
8487,
14,
17,
13464,
30,
46506,
2248,
13,
23912,
20274,
2435,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3... |
Name the volume line for number 8 | SELECT "Volume line" FROM table_2070 WHERE "#" = '8' | [
5376,
262,
6115,
1627,
329,
1271,
807,
46506,
366,
31715,
1627,
1,
16034,
3084,
62,
1238,
2154,
33411,
25113,
1,
796,
705,
23,
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
] | [
5376,
262,
6115,
1627,
329,
1271,
807,
46506,
366,
31715,
1627,
1,
16034,
3084,
62,
1238,
2154,
33411,
25113,
1,
796,
705,
23,
6
] |
Name the score for march 8 | SELECT score FROM table_30049462_8 WHERE date = "March 8" | [
5376,
262,
4776,
329,
9960,
807,
46506,
4776,
16034,
3084,
62,
6200,
2920,
39997,
62,
23,
33411,
3128,
796,
366,
16192,
807,
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,
4776,
329,
9960,
807,
46506,
4776,
16034,
3084,
62,
6200,
2920,
39997,
62,
23,
33411,
3128,
796,
366,
16192,
807,
1
] |
What is the time of the Ghantoot Racing and Polo Club? | SELECT "Time" FROM table_34433 WHERE "Ground" = 'ghantoot racing and polo club' | [
2061,
318,
262,
640,
286,
262,
11972,
415,
1025,
14954,
290,
49341,
6289,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
33535,
2091,
33411,
366,
35539,
1,
796,
705,
456,
415,
1025,
11717,
290,
755,
78,
3430,
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,
640,
286,
262,
11972,
415,
1025,
14954,
290,
49341,
6289,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
33535,
2091,
33411,
366,
35539,
1,
796,
705,
456,
415,
1025,
11717,
290,
755,
78,
3430,
6
] |
What is the name of the player who is a wr and has a weight of 197? | SELECT name FROM table_name_83 WHERE position = "wr" AND weight = 197 | [
2061,
318,
262,
1438,
286,
262,
2137,
508,
318,
257,
1319,
290,
468,
257,
3463,
286,
29903,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
5999,
33411,
2292,
796,
366,
18351,
1,
5357,
3463,
796,
29903
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
318,
257,
1319,
290,
468,
257,
3463,
286,
29903,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
5999,
33411,
2292,
796,
366,
18351,
1,
5357,
3463,
796,
29903
] |
What was CHris Amon's highest lap when his grid was 4? | SELECT MAX("Laps") FROM table_52649 WHERE "Driver" = 'chris amon' AND "Grid" < '4' | [
2061,
373,
5870,
2442,
42109,
338,
4511,
14779,
618,
465,
10706,
373,
604,
30,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
48531,
2920,
33411,
366,
32103,
1,
796,
705,
354,
2442,
716,
261,
6,
5357,
366,
41339,
1,
1279,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
5870,
2442,
42109,
338,
4511,
14779,
618,
465,
10706,
373,
604,
30,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
48531,
2920,
33411,
366,
32103,
1,
796,
705,
354,
2442,
716,
261,
6,
5357,
366,
41339,
1,
1279,
705,
... |
what is the admission time and icu stay id of the patient id 74032? | SELECT demographic.admittime, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "74032" | [
10919,
318,
262,
13938,
640,
290,
14158,
84,
2652,
4686,
286,
262,
5827,
4686,
767,
1821,
2624,
30,
46506,
16728,
13,
324,
20124,
524,
11,
34092,
13,
291,
436,
323,
62,
312,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
13938,
640,
290,
14158,
84,
2652,
4686,
286,
262,
5827,
4686,
767,
1821,
2624,
30,
46506,
16728,
13,
324,
20124,
524,
11,
34092,
13,
291,
436,
323,
62,
312,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
... |
How many years was their W/L/D record 13:10:0? | SELECT COUNT("Chairman") FROM table_24780 WHERE "W: L: D" = '13:10:0' | [
2437,
867,
812,
373,
511,
370,
14,
43,
14,
35,
1700,
1511,
25,
940,
25,
15,
30,
46506,
327,
28270,
7203,
43189,
805,
4943,
16034,
3084,
62,
23753,
1795,
33411,
366,
54,
25,
406,
25,
360,
1,
796,
705,
1485,
25,
940,
25,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
812,
373,
511,
370,
14,
43,
14,
35,
1700,
1511,
25,
940,
25,
15,
30,
46506,
327,
28270,
7203,
43189,
805,
4943,
16034,
3084,
62,
23753,
1795,
33411,
366,
54,
25,
406,
25,
360,
1,
796,
705,
1485,
25,
940,
25,
15,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.