How many {color} are to/by {brown} ?
Which is the number of colors that are next to brown?
How many colors are next to brown
SELECT ( COUNT ( ?y ) AS ?z ) { ?y property:color resource:brown }
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/P462> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q47071 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P462 wd:Q47071 }
349