What is {spouse} of {Millard Fillmore} that is {start time} is {1858-2-10} ?
Who was Millard Fillmore's spouse in 1858?
Who was the spouse of Millard Fillmore in the year 1858?
SELECT ?f WHERE { ?u property:spouse ?f . FILTER ( CONTAINS ( YEAR ( ?x ) , '1858' ) ) . ?u property:start_time ?x . resource:Millard_Fillmore property:spouse ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12306> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1858-2-10>
} 

SELECT ?obj WHERE { wd:Q12306 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1858')) }