How many {executive body} are to/by {prefecture} ?
What is the number of executive bodies by prefecture?
How many executive bodies are by prefecture?
SELECT ( COUNT ( ?j ) AS ?o ) { ?j property:executive_body resource:prefecture }
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/P208> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q515716 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P208 wd:Q515716 }
12