what is the {start time} for {Amsterdam} has {instance of} as {settlement} ?
When was the foundation of Amsterdam?
When was Amsterdam founded?
SELECT ?y WHERE { resource:Amsterdam rdf:type ?v . FILTER ( CONTAINS ( ?k , 'http://dbpedia.org/ontology/Settlement' ) ) . ?v rdf:type ?k . ?v property:start_time ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q727> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://dbpedia.org/ontology/Settlement> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q727 p:P31 ?s . ?s ps:P31 ?x filter(contains(?x , 'http://dbpedia.org/ontology/Settlement')) . ?s pq:P580 ?value}