What is the {composer} and the {librettist} of {West_Side_Story} ?
Who is the composer and librettist for West Side Story?
Who is the composer and librettist for West Side Story?
SELECT ?h ?c WHERE { resource:West_Side_Story property:composer ?h . resource:West_Side_Story property:librettist ?c }
 SELECT ?ans_1 ?ans_2 WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q669010> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P86> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_1. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q669010> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P87> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?ans_2. } 
SELECT ?ans_1 ?ans_2 WHERE { wd:Q669010 wdt:P86 ?ans_1 . wd:Q669010 wdt:P87 ?ans_2 }
Leonard Bernstein Arthur Laurents