what is the {series ordinal} for {Jennifer Lopez} has {given name} as {Lynn} ?
Name the television show, in which Jennifer Lopez played a character named Lynn?.
In what television show did Jennifer Lopez play a character named Lynn?
SELECT ?a WHERE { ?j property:given_name resource:Lynn . ?j property:series_ordinal ?a . resource:Jennifer_Lopez property:given_name ?j }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q40715> .
?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/Q3841018> .
?statement <http://www.wikidata.org/entity/P1545> ?value. 
} 

SELECT ?value WHERE { wd:Q40715 p:P735 ?s . ?s ps:P735 wd:Q3841018 . ?s pq:P1545 ?value}