Question: How is Labyrinth that is a notable work of Jennifer Connelly related to children's film?
Choices:
office held by head of state
religious order
main subject
theme music
public holiday
sponsor
genre
award disciplines or subjects
residence
talk show guest
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Labyrinth" . ?e_3 <notable_work> ?e_1 . ?e_3 <pred:name> "Jennifer Connelly" . ?e_2 <pred:name> "children's film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Jennifer Connelly
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Labyrinth
function: And
dependencies: 1
2
function: Find
inputs: children's film
function: QueryRelation
dependencies: 3
4