What is the {human} with the {MAX(national team caps)} whose {sex or gender} is {male}  ?
which gentleman owns the largest amount of national team caps?
Which man has the most national team caps ?
SELECT ?u WHERE { ?u property:sex_or_gender resource:male . ?u rdf:type ontology:human . ?u property:national_team_caps ?b }
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/P1129>.
?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/P21> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q6581097> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q5 . ?ent wdt:P1129 ?obj . ?ent wdt:P21 wd:Q6581097 } ORDER BY DESC(?obj)LIMIT 5 
Tarek Amouri Juan Campomar Lama Tone Mikel Aguirrezabalaga Erik Jensen