Create a subjects hierachy with cql queries for OpenSearch