What is {spouse} of {Kelsey Grammer} and {place of marriage}
what is the place called where kelly grammer and her spouse got married and who did she marry?
Who is Kelsey Grammer's spouse and where did they get married?
SELECT ?n ?g WHERE { ?t property:place_of_marriage ?n . . ?t property:spouse ?g . resource:Kelsey_Grammer property:spouse ?t }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q196560> . ?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/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q196560 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P2842 ?value1 . }