Question: What was the role of John Rhys-Davies in The Lord of the Rings: The Fellowship of the Ring (the one that was nominated for MTV Movie Award for Best Villain)?
Choices:
Jerry Seinfeld
Olive Oyl
Dario
Gimli
Maria von Trapp
Kevin Bernard
David Hasselhoff
Steve Phelps
Fat Lady
Frodo Baggins
Answer: Gimli
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Lord of the Rings: The Fellowship of the Ring" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "MTV Movie Award for Best Villain" . ?e_2 <pred:name> "John Rhys-Davies" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: MTV Movie Award for Best Villain
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Lord of the Rings: The Fellowship of the Ring
function: And
dependencies: 1
2
function: Find
inputs: John Rhys-Davies
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role