what is the {series ordinal} for {Ernesto Samper} has {position held} as {Secretary General of the Non-Aligned Movement} ?
As Secretary General of the Non-Aligned Movement, what are the series ordinal of Ernesto Samper?
What are the series ordinal of Ernesto Samper as Secretary General of the Non-Aligned Movement?
SELECT ?i WHERE { ?g property:series_ordinal ?i . ?g property:position_held resource:Secretary_General_of_the_Non-Aligned_Movement . resource:Ernesto_Samper property:position_held ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q365427> .
?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> <http://wikidata.dbpedia.org/resource/Q15647601> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

SELECT ?value WHERE { wd:Q365427 p:P39 ?s . ?s ps:P39 wd:Q15647601 . ?s pq:P1545 ?value}