Did {Dragon_Ball} {characters} {Son Goku} and {Yamcha} ?
Does Son Goku and Yamcha belong to Dragon Ball characters?
Are Son Guku and Yamcha Dragon Ball characters?
ASK WHERE { resource:Dragon_Ball property:characters resource:Goku . resource:Dragon_Ball property:characters resource:Yamcha }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2020> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P674> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2142>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2020> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P674> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q843345>. } 
ASK WHERE { wd:Q2020 wdt:P674 wd:Q2142 . wd:Q2020 wdt:P674 wd:Q843345 }