Question: Who was the first wife of the architect who designed Al0Masjid an-Nabawi?
Answer(s):
answer: Khadīja bint Khuwaylid

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:architecture.architect.structures_designed ns:m.024902 . 
?c ns:people.person.spouse_s ?y .
?y ns:people.marriage.spouse ?x .
?y ns:people.marriage.type_of_union ns:m.04ztj .
?y ns:people.marriage.from ?sk0 .
}
ORDER BY xsd:datetime(?sk0)
LIMIT 1