How many {patron saint} are to/by {Thomas the Apostle} ?
How many patron saints of Thomas the Apostle are there?
Tell me the number of patron saints of Thomas the Apostle.
SELECT ( COUNT ( ?a ) AS ?p ) { ?a property:patron_saint resource:Thomas_the_Apostle }
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/P417> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q43669 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P417 wd:Q43669 }
25