What is {shares border with} of {Pays de la Loire} that is {end time} is {2015-12-31} ?
Who did Pays de la Loire share it's border with in 2016?
Where was Pays de la Loire shares border with on 2015-12-31?
SELECT ?y WHERE { FILTER ( CONTAINS ( YEAR ( ?b ) , '2015' ) ) . ?s property:end_time ?b . ?s property:shares_border_with ?y . resource:Pays_de_la_Loire property:shares_border_with ?s }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16994> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2015-12-31>
} 

SELECT ?obj WHERE { wd:Q16994 p:P47 ?s . ?s ps:P47 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2015')) }