How many {filming location} are for {Saving Private Ryan} ?
At how many locations was Saving Private Ryan filmed?
How many filming location were there for Saving Private Ryan?
SELECT ( COUNT ( ?e ) AS ?c ) { resource:Saving_Private_Ryan property:filming_location ?e }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q165817> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P915> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q165817 wdt:P915 ?obj }
7