What is {child} of {Charlemagne} and {mother}
Who is the child of Charlemagne and who is their mother?
Who is the child of Charlemagne and who is their mother?
SELECT ?a ?y WHERE { ?y property:mother ?a . . resource:Charlemagne property:child ?y . ?y property:child ?y }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3044> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P40> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q3044 p:P40 ?s . ?s ps:P40 ?obj . ?s pq:P25 ?value1 . }