What is the {G-type main-sequence star} for {parent astronomical body} of {Jupiter}
Jupiter contains a parent cosmic body with which G-type main-sequence star?
Jupiter has a parent astronomical body with which G-type main-sequence star?
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:G-type_main-sequence_star . resource:Jupiter property:parent_astronomical_body ?n }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q319> . ?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> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5864> } 
 select distinct ?obj where { wd:Q319 wdt:P397 ?obj . ?obj wdt:P31 wd:Q5864 } 
Sun