Question: How is Rosemary Harris, who received a Carnegie Medal, related to the writing profession?
Choices:
located on astronomical location
child astronomical body
occupation
production company
licensed to broadcast to
architect
language of work or name
mother
place of origin (Switzerland)
place of publication
Program:
function: Find
inputs: Carnegie Medal
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Rosemary Harris
function: And
dependencies: 1
2
function: Find
inputs: writer
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Rosemary Harris" . ?e_1 <award_received> ?e_3 . ?e_3 <pred:name> "Carnegie Medal" . ?e_2 <pred:name> "writer" . ?e_1 ?p ?e_2 .  }
Answer: occupation