Patch for mica query term code to include OntologyTerms