Question: What is Jada Pinkett Smith's role in Ali starring Jamie Foxx?
Choices: Aramis
Dr. John Watson
Sonji Roi
Montgomery Scott
Aslan
Peregrin Took
Ray
Ben
Molly Weasley
Jimmy Darmody
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Ali" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jamie Foxx" . ?e_2 <pred:name> "Jada Pinkett Smith" . ?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: Jamie Foxx
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Ali
function: And
dependencies: 1
2
function: Find
inputs: Jada Pinkett Smith
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: Sonji Roi