Question: Will Smith, nicknamed The Fresh Prince, is cast as which Men in Black 3 character?
Choices:
Princess Irulan
Eric Taylor
Éamon de Valera
Zaphod Beeblebrox
Agent J
Chandler Bing
Professor Lewis
Gus Fring
Kato
Jackie Burkhart
Answer: Agent J
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Men in Black 3" . ?e_2 <pred:name> "Will Smith" . ?e_2 <nickname> ?pv . ?pv <pred:value> "The Fresh Prince" . ?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: Men in Black 3
function: Find
inputs: Will Smith
function: FilterStr
dependencies: 1
inputs: nickname
The Fresh Prince
function: QueryRelationQualifier
dependencies: 0
2
inputs: cast member
character role