What is the {referendums in Ireland} with the {MAX(total valid votes)} whose {instance of} is {Amendments to the Constitution of Ireland}  ?
Tell me who got the most votes on the Amendment to the Constitution of Ireland?
Who had the most votes on the Amendment to the Constitution of Ireland?
SELECT ?k WHERE { ?k rdf:type ontology:referendums_in_Ireland . ?k property:total_valid_votes ?i . ?k rdf:type ontology:Amendments_to_the_Constitution_of_Ireland }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q54086790>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q54086790 . ?ent wdt:P1697 ?obj . ?ent wdt:P31 wd:Q467578 } ORDER BY DESC(?obj)LIMIT 5 
Thirty-fourth Amendment of the Constitution of Ireland Twenty-eighth Amendment of the Constitution of Ireland Twenty-seventh Amendment of the Constitution of Ireland Twenty-ninth Amendment of the Constitution of Ireland Thirty-eighth Amendment of the Constitution Bill 2016