What is the {apple cultivar} with the {MAX(shelf life)} ?
What apple has the highest shelf life?
which apple cultivar with highest shelf life?
SELECT ?m WHERE { ?m property:shelf_life ?s . ?m rdf:type ontology:apple_cultivar }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q15731356>.
?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/P4218>.
?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:Q15731356 . ?ent wdt:P4218 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Korichnoye Polosatoye Korichnoye Polosatoye July Red Quinte