To query on the relationship records of primary contacts:

  1. Create a relationship query.
  2. On the Criteria tab, select Individual, Contact Type equals Primary.
 

To query on organizations with a primary contact:

  1. Create a constituent or an organization query.
  2. On the Criteria tab, select Relationships, Contacts, Contact Type equals Primary.
 

To query on organizations without a primary contact:

  1. Create a constituent or an organization query.
  2. On the Criteria tab, select Relationships, Contacts, Contact Type does not equal Primary.