Question: What is the role of the Solar System, the parent astronomical body of the Sun (whose temperature is 5000000 kelvin)?
Choices: songwriter
stage name
the liberal state
screenwriter
director
sovereign state
primary body
human settlement
singer
Founder
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Sun" . ?e_1 <temperature> ?pv . ?pv <pred:unit> "kelvin" . ?pv <pred:value> "5000000"^^xsd:double . ?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: Sun
function: FilterNum
dependencies: 0
inputs: temperature
5000000 kelvin
=
function: Find
inputs: Solar System
function: QueryRelationQualifier
dependencies: 1
2
inputs: parent astronomical body
subject has role
Answer: primary body