querybuilding test for rekationship types as string