Writing Queries with the UNION Operator