What is {military rank} of {George Washington} that is {start time} is {1796-7-4} ?
Which was the military rank of George Washington between 1774 and 1796?
What was George Washington's military rank between 1774 and 1796?
SELECT ?r WHERE { resource:George_Washington property:military_rank ?r . FILTER ( CONTAINS ( YEAR ( ?f ) , '1796' ) ) . ?r property:start_time ?f . ?r property:military_rank ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P410> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1796-7-4>
} 

SELECT ?obj WHERE { wd:Q23 p:P410 ?s . ?s ps:P410 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1796')) }