Question: Which activity is the work domain of farmer George Segal?
Choices:
Transformers
art of sculpture
Battleship
rape
Dark Horse Comics
Batman
2008 Tour de France
art of painting
Harry Potter and the Half-Blood Prince
ballet
Answer: art of painting
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" . ?e_1 <field_of_work> ?e . ?e_1 <pred:name> "George Segal" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "farmer" .   }
Program:
function: Find
inputs: farmer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: George Segal
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: field of work
forward
function: FilterConcept
dependencies: 4
inputs: activity
function: What
dependencies: 5