bugfix union queries: merge result sets instead of concat
bugfix & rename expand-prefixes as expand-pname