Did {Apollo} {child} {Deiphobus} and {Borysthenis} ?
Are Deiphobus and Borysthenis Apollo's children?
Is Apollo's child Deiphobus and Borysthenis?
ASK WHERE { resource:Apollo property:child resource:Deiphobus . resource:Apollo property:child resource:Borysthenis }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37340> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P40> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q736813>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37340> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P40> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4946887>. } 
ASK WHERE { wd:Q37340 wdt:P40 wd:Q736813 . wd:Q37340 wdt:P40 wd:Q4946887 }