POC for querying related records.

Related to #116