Advanced search: pretty query for sub metadata done