How many {edition or translation of} are to/by {Diary of Anne Frank} ?
Which is the number of editions or translations of the Diary of Anne Frank?
How many editions or translations of the Diary of Anne Frank are there?
SELECT ( COUNT ( ?j ) AS ?u ) { ?j property:edition_or_translation_of resource:Diary_of_Anne_Frank }
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/P629> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q6911 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P629 wd:Q6911 }
9