Added dataset and project support for refining tags
Passing in ids from previous query instead of subquery