Question: What is the connection between South Pacific (the one whose librettist is Joshua Logan) to Richard Rodgers (the one that has the religion atheism)?
Choices:
official religion
has edition
start point
product or material produced
applies to jurisdiction
parent club
significant event
composer
fictional universe described in
medical condition
Answer: composer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "South Pacific" . ?e_1 <librettist> ?e_3 . ?e_3 <pred:name> "Joshua Logan" . ?e_2 <pred:name> "Richard Rodgers" . ?e_2 <religion> ?e_4 . ?e_4 <pred:name> "atheism" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Joshua Logan
function: Relate
dependencies: 0
inputs: librettist
backward
function: Find
inputs: South Pacific
function: And
dependencies: 1
2
function: Find
inputs: atheism
function: Relate
dependencies: 4
inputs: religion
backward
function: Find
inputs: Richard Rodgers
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7