What is the {semi-automatic pistol} with the {MAX(caliber)} ?
What handgun has the largest caliber?
Which is the semi-automatic pistol with highest caliber?
SELECT ?k WHERE { ?k rdf:type ontology:semi-automatic_pistol . ?k property:caliber ?t }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3389302>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P4403>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q3389302 . ?ent wdt:P4403 ?obj } ORDER BY DESC(?obj)LIMIT 5 