Question: Who played the role of Elizabeth Swan in Pirates of the Caribbean: The Curse of the Black Pearl?
Choices:
Richard Gere
Johnny Depp
Jonathan Pryce
Keira Knightley
David Byrne
Rahul Dev Burman
Geoffrey Rush
William Henry Harrison
Sylvester Stallone
Max Fleischer
Program:
function: Find
inputs: Pirates of the Caribbean: The Curse of the Black Pearl
function: Relate
dependencies: 0
inputs: cast member
forward
function: QFilterStr
dependencies: 1
inputs: character role
Elizabeth Swann
function: FilterConcept
dependencies: 2
inputs: human
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Pirates of the Caribbean: The Curse of the Black Pearl" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Elizabeth Swann" .  }
Answer: Keira Knightley