What is the {record company} for {record label} of {Peter Gabriel}
[]
Which record company owns the record label for Peter Gabriel?
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:record_company . resource:Peter_Gabriel property:record_label ?c }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q175195> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P264> . ?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/Q2442401> } 
 select distinct ?obj where { wd:Q175195 wdt:P264 ?obj . ?obj wdt:P31 wd:Q2442401 } 