Question: What disease is the medical condition of the person who owns Melancholia (the one was owned by Louis XIV of France from 1685) ?
Choices:
peritonitis
smallpox
epilepsy
cardiac arrest
attention deficit hyperactivity disorder
amyotrophic lateral sclerosis
typhoid fever
gastroesophageal reflux disease
Crohn's disease
prostate cancer
Program:
function: Find
inputs: Louis XIV of France
function: Relate
dependencies: 0
inputs: owner of
forward
function: Find
inputs: Melancholia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: owned by
forward
function: QFilterYear
dependencies: 4
inputs: start time
1685
=
function: FilterConcept
dependencies: 5
inputs: human
function: Relate
dependencies: 6
inputs: medical condition
forward
function: FilterConcept
dependencies: 7
inputs: disease
function: What
dependencies: 8
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "disease" . ?e_1 <medical_condition> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <owned_by> ?e_1 . ?e_2 <pred:name> "Melancholia" . ?e_3 <owner_of> ?e_2 . ?e_3 <pred:name> "Louis XIV of France" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <owned_by> ; <pred:fact_t> ?e_1 ] <start_time> ?qpv . ?qpv <pred:year> 1685 .   }
Answer: smallpox