support for inheritance query