Did {Metallica} {discography} {Megadeth discography}?
Was Megadeth produced by Metallica?
Did Metallica produce Megadeth?
ASK WHERE { resource:Metallica property:discography resource:Megadeth_discography }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q15920> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P358> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1461269>. } 
ASK WHERE { wd:Q15920 wdt:P358 wd:Q1461269 }