What is {spouse} of {James Joyce} that is {place of marriage} is {London} ?
Who was James Joyce's London bride?
Who did James Joyce get married to in London?
SELECT ?r WHERE { ?w property:place_of_marriage resource:London . ?w property:spouse ?r . resource:James_Joyce property:spouse ?w }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6882> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P2842> <http://wikidata.dbpedia.org/resource/Q84>
} 

SELECT ?obj WHERE { wd:Q6882 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P2842 wd:Q84 }