What is {location} of {Lewis and Clark Expedition} that is {end time} is {1806-7-3} ?
Give the location at which the Lewis and Clark expedition ended on July 3, 1806.
Where did the Lewis and Clark Expedition end in July 3, 1806?
SELECT ?i WHERE { FILTER ( CONTAINS ( YEAR ( ?o ) , '1806' ) ) . ?n property:location ?i . ?n property:end_time ?o . resource:The_Lewis_and_Clark_Expedition property:location ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q505802> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P276> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1806-7-3>
} 

SELECT ?obj WHERE { wd:Q505802 p:P276 ?s . ?s ps:P276 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1806')) }