What is the {weapon model} with the {MAX(rate of fire)} whose {subclass of} is {naval artillery}  ?
What weapon has the highest rate of fire in naval artillery?
What is the weapon model with the maximum rate of fire whose subclass of is naval artillery?
SELECT ?h WHERE { ?h property:rate_of_fire ?v . ?h rdf:type ontology:naval_artillery . ?h rdf:type ontology:weapon_model }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q15142894>.

?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/P3792>.
?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/Q511450> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q15142894 . ?ent wdt:P3792 ?obj . ?ent wdt:P279 wd:Q511450 } ORDER BY DESC(?obj)LIMIT 5 
AK-725 70-K 4.5 inch Mark 8