Question: The Sun is the child astronomical body to the astronomical body the Solar System, which serves what function as its parent?
Choices: lead guitarist
civil parish
songwriter
stage name
primary body
honorary member
librarian
chairperson
lead vocalist
director
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Sun" . ?e_3 <child_astronomical_body> ?e_1 . ?e_3 <pred:name> "Solar System" . ?e_2 <pred:name> "Solar System" . ?e_1 <parent_astronomical_body> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <parent_astronomical_body> ; <pred:fact_t> ?e_2 ] <subject_has_role> ?qpv .  }
Program:
function: Find
inputs: Solar System
function: Relate
dependencies: 0
inputs: child astronomical body
forward
function: Find
inputs: Sun
function: And
dependencies: 1
2
function: Find
inputs: Solar System
function: QueryRelationQualifier
dependencies: 3
4
inputs: parent astronomical body
subject has role
Answer: primary body