Question: What is the relationship between Hugh Grant (the one that is educated at University of Edinburgh) and agriculture?
Choices:
currency
broadcast by
native language
manufacturer
has cause
field of work
official color
history of topic
use
source of material
Program:
function: Find
inputs: University of Edinburgh
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Hugh Grant
function: And
dependencies: 1
2
function: Find
inputs: agriculture
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hugh Grant" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "University of Edinburgh" . ?e_2 <pred:name> "agriculture" . ?e_1 ?p ?e_2 .  }
Answer: field of work