What is {position held} of {Cyril Ramaphosa} that is {start time} is {2018-2-15} ?
What position was held by Cyril Ramaphosa in the year 2018?
For what Cyril Ramaphosa was in position held in the year 2018?
SELECT ?t WHERE { FILTER ( CONTAINS ( YEAR ( ?p ) , '2018' ) ) . ?u property:start_time ?p . resource:Matamela_Cyril_Ramaphosa property:position_held ?u . ?u property:position_held ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1148669> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <2018-2-15>
} 

SELECT ?obj WHERE { wd:Q1148669 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'2018')) }