How many {parent astronomical body} are to/by {Large Magellanic Cloud} ?
For the Large Magellanic Cloud, how many parent astronomical conditions are there?
How many parent astronomical conditions are for the {Large Magellanic Cloud} ?
SELECT ( COUNT ( ?t ) AS ?r ) { ?t property:parent_astronomical_body resource:Large_Magellanic_Cloud }
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/P397> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q49957 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P397 wd:Q49957 }
3