Question: Manhattan, a BAFTA nominee for Best Actress in a Leading Role, is related in what way to romantic comedy?
Choices:
has cause
language used
different from
office held by head of state
model item
symptoms
nutrient
genre
office held by head of the organisation
office held by head of government
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Manhattan" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "BAFTA Award for Best Actress in a Leading Role" . ?e_2 <pred:name> "romantic comedy" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: BAFTA Award for Best Actress in a Leading Role
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Manhattan
function: And
dependencies: 1
2
function: Find
inputs: romantic comedy
function: QueryRelation
dependencies: 3
4