what is the {mother} for {Philip III of France} has {child} as {Louis, Count of Évreux} ?
Who's son was Louis, Count of Evreux?
Who was Louis, Count of Evreux's mother?
SELECT ?f WHERE { ?l property:child resource:Louis,_Count_of_Évreux . resource:Philip_III_of_France property:child ?l . ?l property:mother ?f }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q172203> .
?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/Q352940> .
?statement <http://www.wikidata.org/entity/P25> ?value. 
} 

SELECT ?value WHERE { wd:Q172203 p:P40 ?s . ?s ps:P40 wd:Q352940 . ?s pq:P25 ?value}