codes of relationship query for project REVEAL