Question: What is the role of the Solar System, the parent astronomical body of the Sun (whose distance from Earth is 1 astronomical unit)?
Choices:
composer
animation studio
community
lead vocalist
television producer
declaration of independence
Thonburi Kingdom
Sukhothai Kingdom
screenwriter
primary body
Program:
function: Find
inputs: Sun
function: FilterNum
dependencies: 0
inputs: distance from Earth
1 astronomical unit
=
function: Find
inputs: Solar System
function: QueryRelationQualifier
dependencies: 1
2
inputs: parent astronomical body
subject has role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Sun" . ?e_1 <distance_from_Earth> ?pv . ?pv <pred:unit> "astronomical unit" . ?pv <pred:value> "1"^^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 .  }
Answer: primary body