What is the {FA Cup Final} with the {MAX(attendance)} whose {sport} is {association football}  ?
What is the highest attendance for the FA Cup Final for football sports?
What is the FA Cup Final with the highest attendance for football sports?
SELECT ?z WHERE { ?z property:attendance ?g . ?z property:sport resource:association_football . ?z rdf:type ontology:FA_Cup_Final }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q4484477>.

?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/P1110>.
?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/Q2736> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q4484477 . ?ent wdt:P1110 ?obj . ?ent wdt:P641 wd:Q2736 } ORDER BY DESC(?obj)LIMIT 5 
1923 FA Cup Final 1913 FA Cup Final 1905 FA Cup Final 1951 FA Cup Final 1955 FA Cup Final