Add relations query