What is the {smartphone model} with the {MAX(memory capacity)} whose {operating system} is {Android Nougat}  ?
Which Android Nougat OS has the best memory?
Give the name of the most memory capacity smartphone by the Android Nougat operating system?
SELECT ?c WHERE { ?c rdf:type ontology:smartphone_model . ?c property:operating_system resource:Android_Nougat . ?c property:memory_capacity ?g }
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/P2928>.
?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/P306> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q22274379> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q19723451 . ?ent wdt:P2928 ?obj . ?ent wdt:P306 wd:Q22274379 } ORDER BY DESC(?obj)LIMIT 5 
Pixel Fairphone 2