a block to query an ontology