what is the {latest date} for {İzmir} has {country} as {Kingdom of Greece} ?
When did Greece declare Izmir?
What was the date when İzmir was declared Kingdom of Greece?
SELECT ?j WHERE { ?p property:latest_date ?j . ?p property:country resource:Kingdom_of_Greece . resource:İzmir property:country ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35997> .
?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> <http://wikidata.dbpedia.org/resource/Q209065> .
?statement <http://www.wikidata.org/entity/P1326> ?value. 
} 

SELECT ?value WHERE { wd:Q35997 p:P17 ?s . ?s ps:P17 wd:Q209065 . ?s pq:P1326 ?value}