Question: Shia LaBeouf was cast in what role on Transformers: Dark of the Moon, filmed in Los Angeles?
Choices: Crazy Cat Lady
Ben
Allie Earp
John Paul Jones
William Shatner
Sam Witwicky
Danica Talos
Olympias
Michael Collins
Foggy Nelson
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Transformers: Dark of the Moon" . ?e_1 <filming_location> ?e_3 . ?e_3 <pred:name> "Los Angeles" . ?e_2 <pred:name> "Shia LaBeouf" . ?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: Los Angeles
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Transformers: Dark of the Moon
function: And
dependencies: 1
2
function: Find
inputs: Shia LaBeouf
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
Answer: Sam Witwicky