What is the {general election} with the {MAX(ballots cast)} whose {successful candidate} is {Thomas Playford}  ?
When did Thomas Playford get the highest number of ballots?
What election has the highest ballots for Thomas Playford?
SELECT ?p WHERE { ?p property:ballots_cast ?h . ?p rdf:type ontology:general_election . ?p property:successful_candidate resource:Thomas_Playford }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1076105>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q1076105 . ?ent wdt:P1868 ?obj . ?ent wdt:P991 wd:Q528382 } ORDER BY DESC(?obj)LIMIT 5 