what is the {end time} for {Thaksin Shinawatra} has {spouse} as {Potjaman Na Pombejra} ?
When did Thaksin shinawatra and Potjaman Na Pombejra end their relationship?
When did the relationship between Thaksin shinawatra and Potjaman Na Pombejra come to an end?
SELECT ?h WHERE { resource:Thaksin_Shinawatra property:spouse ?t . ?t property:spouse resource:Potjaman_Na_Pombejra . ?t property:end_time ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q164373> .
?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> <http://wikidata.dbpedia.org/resource/Q4925511> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q164373 p:P26 ?s . ?s ps:P26 wd:Q4925511 . ?s pq:P582 ?value}