How many {patron saint} are for {philosopher} ?
Give me the number of philosopher's that are patron saint's.
How many philosopher's are patron saint's?
SELECT ( COUNT ( ?u ) AS ?t ) { resource:philosopher property:patron_saint ?u }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4964182> .
?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> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q4964182 wdt:P417 ?obj }
4