change ProcessPattern resource_type results into QuerySets