What is {position held} of {Jacob Zuma} that is {series ordinal} is {4} ?
What position does Jacob Zuma, whose series ordinal is 4, hold?
What is the position held by Jacob Zuma whose series ordinal is 4?
SELECT ?q WHERE { FILTER ( ?a = 4 ) . ?j property:position_held ?q . resource:Jacob_Zuma property:position_held ?j . ?j property:series_ordinal ?a }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57282> .
?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/P1545> <4>
} 

SELECT ?obj WHERE { wd:Q57282 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1545 ?x filter(contains(?x , '4')) }