what is the {series ordinal} for {William Lyon Mackenzie King} has {position held} as {Prime Minister of Canada} ?
Where does Prime Minister Mackenzie King fall in the line of Canadian leaders?
What was the ordinal series for William Lyon Mackenzie King during his position held as Prime Minister of Canada?
SELECT ?a WHERE { resource:William_Lyon_Mackenzie_King property:position_held ?a . ?a property:position_held resource:Prime_Minister_of_Canada . ?a property:series_ordinal ?a }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128633> .
?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/Q839078> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

SELECT ?value WHERE { wd:Q128633 p:P39 ?s . ?s ps:P39 wd:Q839078 . ?s pq:P1545 ?value}