* fix: add table join for querying on a localised field in relationship fields * chore: add int tests in relationships