What is the {referendums in Ireland} with the {MIN(number of spoilt votes)} whose {follows} is {Eighth Amendment of the Constitution of Ireland}  ?
Which poll in Ireland has the fewest number of invalid votes, following the Eighth Amendment of the Irish Constitution.
Which referendum in Ireland, following the Eighth Amendment of the Constitution of Ireland, has the least amount of spoiled votes?
SELECT ?e WHERE { ?e property:number_of_spoilt_votes ?t . ?e property:follows resource:Eighth_Amendment_of_the_Constitution_of_Ireland . ?e rdf:type ontology:referendums_in_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/P5044>.
?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/P155> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4126745> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q54086790 . ?ent wdt:P5044 ?obj . ?ent wdt:P155 wd:Q4126745} ORDER BY ASC(?obj)LIMIT 5 