1. In the query output Individuals > Individual Import ID and Relation Code
  2. Sort the query by Relation Code
  3. Export the query results to a csv file
  4. Copy the import IDs in the "Individual Relation Individual Import ID" column that correspond to a parent relation code
  5. Use these to create a constituent query on the criteria of Constituent Information > Import ID by copying and pasting multiple values at the same time using the One of operator