What is {country} of {Heraklion} that is {latest date} is {961-0-0} ?
Give me the latest date of the country of Heraklion in 961-0-0.
What is the latest date of the country of Heraklion in 961-0-0?
SELECT ?f WHERE { FILTER ( CONTAINS ( ?o , '961-0-0' ) ) . ?u property:latest_date ?o . resource:Heraklion property:country ?u . ?u property:country ?f }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q160544> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P1326> <961-0-0>
} 

SELECT ?obj WHERE { wd:Q160544 p:P17 ?s . ?s ps:P17 ?obj . ?s pq:P1326 ?x filter(contains(?x , '961-0-0')) }