Handle single inheritance in forward query but not in backward query.