What is {partner} of {Demi Lovato} that is {end time} is {2016-6-3} ?
In 2016, what relationship did Demi Lovato end?
Who did Demi Lovato break-up with in 2016?
SELECT ?j WHERE { resource:Demi_Lovato property:unmarried_partner ?r . ?r property:unmarried_partner ?j . ?r property:end_time ?h . FILTER ( CONTAINS ( YEAR ( ?h ) , '2016' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41173> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P451> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2016-6-3>
} 

SELECT ?obj WHERE { wd:Q41173 p:P451 ?s . ?s ps:P451 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2016')) }