Question: What is the relationship between John Spencer (the one that was born in Glasgow) and association football manager?
Choices:
librettist
sports season of league or competition
occupation
this taxon is source of
collection
office contested
source of material
culture
language used
shares border with
Program:
function: Find
inputs: Glasgow
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: John Spencer
function: And
dependencies: 1
2
function: Find
inputs: association football manager
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Spencer" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Glasgow" . ?e_2 <pred:name> "association football manager" . ?e_1 ?p ?e_2 .  }
Answer: occupation