What is {visitors per year} of {Statue of Liberty} that is {point in time} is {2018-0-0} ?
5
how many visitors did the statue of liberty receive in 2018
SELECT ?o WHERE { FILTER ( CONTAINS ( YEAR ( ?m ) , '2018' ) ) . resource:Statue_of_Liberty property:visitors_per_year ?v . ?v property:point_in_time ?m . ?v property:visitors_per_year ?o }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9202> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1174> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P585> <2018-0-0>
} 

SELECT ?obj WHERE { wd:Q9202 p:P1174 ?s . ?s ps:P1174 ?obj . ?s pq:P585 ?x filter(contains(YEAR(?x),'2018')) }