SELECT count(y.name) as num_countries,u.`#text` as religion
FROM geo.world x, x.mondial.country y,
CASE WHEN is_array(y.religions) THEN y.religions
ELSE [y.religions] END u
where y.religions is not missing
group by u.`#text`
order by num_countries desc;
--Duration of all jobs: 0.296 sec
评论