what is the {series ordinal} for {John Flamsteed} has {position held} as {Astronomer Royal} ?
What postion did John Flamsteed held as a Astronomer Royal?
SELECT ?value WHERE { wd:Q242388 p:P39 ?s . ?s ps:P39 wd:Q369877 . ?s pq:P1545 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q242388> .
?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/Q369877> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

Which was the position that John Flamsteed held as a Astronomer Royal?