How many {ancestral home} are to/by {Ireland} ?
What is the number of ancestral homes in Ireland?
Ireland  has how many ancestral homes?
SELECT ( COUNT ( ?g ) AS ?i ) { ?g property:ancestral_home resource:Ireland }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P66> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q27 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P66 wd:Q27 }
5