What is {local dialing code} of {Cần Thơ} that is {end time} is {2017-7-16} ?
Name the area code of Cần Thơ in July 16th 2017?
What was the area code of Cần Thơ in July 16th 2017?
SELECT ?a WHERE { resource:Cần_Thơ property:local_dialing_code ?t . ?t property:end_time ?h . FILTER ( CONTAINS ( YEAR ( ?h ) , '2017' ) ) . ?t property:local_dialing_code ?a }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q216075> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P473> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2017-7-16>
} 

SELECT ?obj WHERE { wd:Q216075 p:P473 ?s . ?s ps:P473 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2017')) }