How many {genre} are for {Rear Window} ?
Which is the genre of Rear Window?
What genre is Rear Window?
SELECT ( COUNT ( ?a ) AS ?o ) { resource:Rear_Window property:genre ?a }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34414> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P136> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q34414 wdt:P136 ?obj }
5