What is {position held} of {Lee Teng-hui} that is {series ordinal} is {4} ?
Lee Teng-hue the 4th held what position?
What position was Lee Teng-hui the fourth holder of?
SELECT ?k WHERE { ?q property:position_held ?k . resource:Lee_Teng-hui property:position_held ?q . ?q property:series_ordinal ?t . FILTER ( ?t = 4 ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q315528> .
?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:Q315528 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1545 ?x filter(contains(?x , '4')) }