How many {legislated by} are to/by {Tokugawa shogunate} ?
Which is the number of legislators in tokugawa shogunate?
how many legislators are in tokugawa shogunate?
SELECT ( COUNT ( ?m ) AS ?d ) { ?m property:legislated_by resource:Tokugawa_Shogunate }
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/P467> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q205662 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P467 wd:Q205662 }
4