Compound Queries

Compound queries are used when you want to combine the results of two other queries to come up with a new set of results. In a compound query, you can combine the queries by adding their results together, subtracting the results of one query from the other, or intersecting the results to find only the accounts or entries that exist in both queries.