Omit descendants when not need in ncmp inventory queries