what is the {series ordinal} for {Nanette Fabray} has {given name} as {Ruby} ?
Nanette Fabray is Ruby in what series?
In what series does Nanette Fabray play a character called Ruby?
SELECT ?g WHERE { ?s property:series_ordinal ?g . ?s property:given_name resource:Ruby . resource:Nanette_Fabray property:given_name ?s }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1291104> .
?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/Q1061262> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

SELECT ?value WHERE { wd:Q1291104 p:P735 ?s . ?s ps:P735 wd:Q1061262 . ?s pq:P1545 ?value}