what is the {mother} for {Will Smith} has {child} as {Willow Smith} ?
What is the name of the woman who mothered Willow Smith, with Will Smith?
who is the {mother} for {Will Smith} that has {child} as {Willow Smith} ?
SELECT ?m WHERE { ?p property:child resource:Willow_Smith . resource:Will_Smith property:child ?p . ?p property:mother ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q40096> .
?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> <http://wikidata.dbpedia.org/resource/Q298209> .
?statement <http://www.wikidata.org/entity/P25> ?value. 
} 

SELECT ?value WHERE { wd:Q40096 p:P40 ?s . ?s ps:P40 wd:Q298209 . ?s pq:P25 ?value}