Question: Which agent has a prior-to-1998 inception time and is the X-Men production company, X-Men being the one with Halle Berry in the cast?
Choices:
Sony Pictures
Village Roadshow Pictures
20th Century Fox
20th Century Fox Home Entertainment
Apple
United States Department of State
Silver Pictures
Episcopal Church
Marvel Entertainment
Lions Gate Entertainment
Answer: 20th Century Fox Home Entertainment
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "agent" . ?e_1 <production_company> ?e . ?e_1 <pred:name> "X-Men" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Halle Berry" .  ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1998 ) .  }
Program:
function: Find
inputs: Halle Berry
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: X-Men
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: production company
forward
function: FilterConcept
dependencies: 4
inputs: agent
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1998
<
function: FilterConcept
dependencies: 7
inputs: agent
function: And
dependencies: 5
8
function: What
dependencies: 9