How many {work location} are for {Jan Brueghel the Elder} ?
Where did Jan Brueghel the Elder work?
In which locations did Jan Brueghel the Elder work?
SELECT ( COUNT ( ?k ) AS ?v ) { resource:Jan_Brueghel_the_Elder property:work_location ?k }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q209050> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q209050 wdt:P937 ?obj }
8