What is {given name} of {Richard Pryor} that is {series ordinal} is {4} ?
Richard Pryor's fourth series was called what?
What is the name of Richard Pryor's fourth series?
SELECT ?z WHERE { ?l property:series_ordinal ?j . FILTER ( CONTAINS ( ?j , '4' ) ) . resource:Richard_Pryor property:given_name ?l . ?l property:given_name ?z }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q294912> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P1545> <4>
} 

SELECT ?obj WHERE { wd:Q294912 p:P735 ?s . ?s ps:P735 ?obj . ?s pq:P1545 ?x filter(contains(?x , '4')) }