What is {partner} of {Rose McGowan} that is {end time} is {2009-1-1} ?
Which was the partner of Rose McGowan at the end of 2009?
Who was Rose McGowan with at the end of 2009?
SELECT ?g WHERE { resource:Rose_McGowan property:unmarried_partner ?f . FILTER ( CONTAINS ( YEAR ( ?d ) , '2009' ) ) . ?f property:end_time ?d . ?f property:unmarried_partner ?g }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q211040> .
?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> <2009-1-1>
} 

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