what is the {series ordinal} for {Hiram Johnson} has {position held} as {Governor of California} ?
What number governor of California was Hiram Johnson?
Hiram Johnson was what number of Governor of California?
SELECT ?v WHERE { resource:Hiram_Johnson property:position_held ?d . ?d property:position_held resource:Governor_of_California . ?d property:series_ordinal ?v }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q143644> .
?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/Q887010> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

SELECT ?value WHERE { wd:Q143644 p:P39 ?s . ?s ps:P39 wd:Q887010 . ?s pq:P1545 ?value}