What is the {human} with the {MAX(Elo rating)} whose {sport} is {chess}  ?
What human has the highest Elo rating in chess?
What is the human with the highest Elo rating whose sport is chess?
SELECT ?s WHERE { ?s property:Elo_rating ?c . ?s property:sport resource:chess . ?s rdf:type ontology:human }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q5 . ?ent wdt:P1087 ?obj . ?ent wdt:P641 wd:Q718 } ORDER BY DESC(?obj)LIMIT 5 
Magnus Carlsen Magnus Carlsen Magnus Carlsen Magnus Carlsen Magnus Carlsen