uses HAVING IN() as opposed to HAVING LIKE % to calculate object ownership in search queries