How many {heritage designation} are for {Sydney Opera House} ?
For the Sydney Opera House, how many heritage designations are there?
How many heritage designations are there for the Sydney Opera House?
SELECT ( COUNT ( ?r ) AS ?c ) { resource:Sydney_Opera_House property:heritage_designation ?r }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q45178> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1435> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q45178 wdt:P1435 ?obj }
7