How many {hair color} are to/by {purple} ?
What is the name of the person with purple hair?
Who is the person with the hair color {purple} ?
SELECT ( COUNT ( ?d ) AS ?t ) { ?d property:hair_color resource:purple }
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/P1884> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q3257809 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1884 wd:Q3257809 }
0