What is the {Population I star} for {child astronomical body} of {Jupiter}
What is the total number of stars in the galaxy that contains the planet Jupiter?
How many stars are in the same galaxy as Jupiter?
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Population_I_star . ?h property:child_astronomical_body resource:Jupiter }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P398> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q319> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3592493> } 
 select distinct ?sbj where { ?sbj wdt:P398 wd:Q319 . ?sbj wdt:P31 wd:Q3592493 } 
Sun