what is the {series ordinal} for {Peter the Great} has {spouse} as {Eudoxia Lopukhina} ?
In which serial ordinal was Eudoxia Lopukhina was spouse of Peter the Great?
SELECT ?value WHERE { wd:Q8479 p:P26 ?s . ?s ps:P26 wd:Q240145 . ?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/Q8479> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q240145> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

in which serial ordinal was peter the great married to eudoxia lopukhina