What is {spouse} and {location} of {{Melinda Gates} has {significant event} as {marriage}}
Who is Melinda Gates' spouse and where did they get married?
Who is Melinda Gates' spouse and where did they get married?
SELECT ?g ?b WHERE { ?e property:location ?b . resource:Melinda_Gates property:significant_event ?e . ?e property:significant_event resource:marriage . ?e property:spouse ?g }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q463877> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P793> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q8445>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q463877 p:P793 ?s . ?s ps:P793 wd:Q8445 . ?s pq:P26 ?value1 . ?s pq:P276 ?value2 }