Question: How is the movie New Year's Eve, which had Hilary Swank as a cast member, related to the romantic comedy genre?
Choices:
territory overlaps
voice actor
hair color
genre
instrumentation
distribution
taxon rank
continent
penalty
designed by
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "New Year's Eve" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Hilary Swank" . ?e_2 <pred:name> "romantic comedy" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Hilary Swank
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: New Year's Eve
function: And
dependencies: 1
2
function: Find
inputs: romantic comedy
function: QueryRelation
dependencies: 3
4