what is the {series ordinal} for {Philip V of France} has {child} as {Margaret I, Countess of Burgundy} ?
Which child of Philip V of France is Margaret I, Countess of Burgundy, numerically?
What is the series ordinal of Philip V of France's child Margaret I, Countess of Burgundy?
SELECT ?y WHERE { ?n property:series_ordinal ?y . resource:Philip_V_of_France property:child ?n . ?n property:child resource:Margaret_I,_Countess_of_Burgundy }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8433> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P40> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q261999> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

SELECT ?value WHERE { wd:Q8433 p:P40 ?s . ?s ps:P40 wd:Q261999 . ?s pq:P1545 ?value}