How many {illustrator} are to/by {E. H. Shepard} ?
In regards to E.H. Shepard, how many illustrations are there?
How many illustrations are there by E. H. Shepard?
SELECT ( COUNT ( ?r ) AS ?h ) { ?r property:illustrator resource:E._H._Shepard }
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/P110> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q382031 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P110 wd:Q382031 }
5