What is the {smartphone model} with the {MAX(maximum size or capacity)} whose {brand} is {Motorola}  ?
Which model of Motorola smart phone has the highest maximum size and capacity?
What is the smartphone model with the highest maximum size or capacity whose brand is Motorola?
SELECT ?q WHERE { ?q rdf:type ontology:smartphone_model . ?q property:brand resource:Motorola . ?q property:maximum_size_or_capacity ?l }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q19723451>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q19723451 . ?ent wdt:P3559 ?obj . ?ent wdt:P1716 wd:Q259011 } ORDER BY DESC(?obj)LIMIT 5 