How many {architectural style} are to/by {Colonial architecture} ?
Give me the number of the architectural styles that are associated with Colonial architecture.
How many architectural styles are associated with Colonial architecture?
SELECT ( COUNT ( ?x ) AS ?b ) { ?x property:architectural_style resource:Colonial_architecture }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P149> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q508475 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P149 wd:Q508475 }
27