Question: Who has more children, Jon Favreau, who began his career in 1992, or Warren G. Harding, who died after a myocardial infarction?
Choices:
Warren G. Harding
David Byrne
Paul Simon
Rahul Dev Burman
James E. Reilly
Simon Cowell
Sylvester Stallone
Richard Gere
William Henry Harrison
Jon Favreau
Answer: Jon Favreau
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jon Favreau" . ?e <work_period_(start)> ?pv_1 . ?pv_1 <pred:year> 1992 . } UNION { ?e <pred:name> "Warren G. Harding" . ?e <cause_of_death> ?e_1 . ?e_1 <pred:name> "myocardial infarction" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Jon Favreau
function: FilterYear
dependencies: 0
inputs: work period (start)
1992
=
function: Find
inputs: myocardial infarction
function: Relate
dependencies: 2
inputs: cause of death
backward
function: Find
inputs: Warren G. Harding
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of children
greater