How many {National Heritage List for England number} are for {Windsor Castle} ?
Is Windsor Castle on the English National Heritage List?
What's the National Heritage List for England for Windsor Castle?
SELECT ( COUNT ( ?s ) AS ?d ) { resource:Windsor_Castle property:National_Heritage_List_for_England_number ?s }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42646> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1216> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q42646 wdt:P1216 ?obj }
2