what is the {series ordinal} for {Edgar Allan Poe} has {given name} as {Allan} ?
Wich number is Edgar Allen Poe's Allan?
What number is Edgar Allan Poe's Allan?
SELECT ?z WHERE { ?f property:given_name resource:Allan . ?f property:series_ordinal ?z . resource:Edgar_Allan_Poe property:given_name ?f }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16867> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P735> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2616573> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

SELECT ?value WHERE { wd:Q16867 p:P735 ?s . ?s ps:P735 wd:Q2616573 . ?s pq:P1545 ?value}