SITE-975: Updated query generators to support submodel queries by their ref field

- Querying submodels uses a mongo-like dot notation to target specific
  submodels