Question: tell me the activity Based On The World is Not Enough (which was shot in Spain) and that has a publication date prior to 2011
Choices:
The World Is Not Enough
Batman
Battleship
Terminator 2: Judgment Day
Shrek Forever After
Star Wars: The Clone Wars
music video game
American Idol
Guitar Hero 5
G.I. Joe: The Rise of Cobra
Answer: The World Is Not Enough
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" . ?e <based_on> ?e_1 . ?e_1 <pred:name> "The World Is Not Enough" . ?e_1 <filming_location> ?e_2 . ?e_2 <pred:name> "Spain" .  ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2011 ) .  }
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: The World Is Not Enough
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: activity
function: FindAll
function: FilterYear
dependencies: 6
inputs: publication date
2011
<
function: FilterConcept
dependencies: 7
inputs: activity
function: And
dependencies: 5
8
function: What
dependencies: 9