create query that compares address field database entity id with the current node id