Implement nested querying for HasOne relationship.