Hi,
As the error message indicated, UNION ALL is not supported at top level, you need to put it in a sub query, similar to below:
SELECT loc, cnt FROM (
select a.loc as loc, a.cnt13 cnt
from crimeloc13 a
UNION ALL
select b.loc as loc, b.cnt14 as cnt
from crimeloc14 b
) a;