What is the {field gun} with the {MAX(effective firing range)} whose {instance of} is {field gun}  ?
What is the field gun with the longest firing range called?
What field gun has the longest firing range?
SELECT ?l WHERE { ?l rdf:type ontology:field_gun . ?l property:effective_firing_range ?y . ?l rdf:type ontology:field_gun }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1330892>.

?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/P4176>.
?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/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1330892> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q1330892 . ?ent wdt:P4176 ?obj . ?ent wdt:P31 wd:Q1330892 } ORDER BY DESC(?obj)LIMIT 5 
BL 60-pounder 7.7 cm FK 16 QF 18-pounder 4.7-inch Gun M1906