What is the {common name} with the {MAX(maximum frequency of audible sound)} whose {subclass of} is {domesticated animal}  ?
What is the common name of the subclass of a the domesticated animal that makes an audible noise with the loudest maximum frequency?
What is the common name with the loudest maximum frequency of audible sound that is a subclass of a domesticated animal?
SELECT ?q WHERE { ?q rdf:type ontology:domesticated_animal . ?q property:maximum_frequency_of_audible_sound ?a . ?q rdf:type ontology:common_name }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q502895>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P3465>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P279> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q622852> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q502895 . ?ent wdt:P3465 ?obj . ?ent wdt:P279 wd:Q622852 } ORDER BY DESC(?obj)LIMIT 5 