Question: What is the relationship between Footloose (the one whose composer is Kenny Loggins) and drama film?
Choices:
officially opened by
worshipped by
genre
studies
captain
country of origin
basic form of government
filming location
office held by head of government
professorship
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Footloose" . ?e_1 <composer> ?e_3 . ?e_3 <pred:name> "Kenny Loggins" . ?e_2 <pred:name> "drama film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Kenny Loggins
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Footloose
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: QueryRelation
dependencies: 3
4