What is {given name} of {J. D. Salinger} that is {series ordinal} is {2} ?
What is J. D. Salinger's second name?
What is the second given name of J. D. Salinger?
SELECT ?r WHERE { ?k property:series_ordinal ?h . resource:J._D._Salinger property:given_name ?k . FILTER ( CONTAINS ( ?h , '2' ) ) . ?k property:given_name ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q79904> .
?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> <2>
} 

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