What is {kids} of {Shiva}, that has {life partner} is {Devasena} ?
Who are the kids of Shiva whose life accomplice is Devasena?
Who are the kids of Shiva whose life partner is Devasena?
SELECT ?g WHERE { resource:Shiva property:child ?g . ?g property:spouse resource:Devasena }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11378> . ?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> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q27957747> . }
SELECT ?answer WHERE { wd:Q11378 wdt:P40 ?answer . ?answer wdt:P26 wd:Q27957747}