ontology: build query