Question: Who has more children, Taraji P. Henson or Shakira (the one that is famous for synth-pop)?
Choices:
Rahul Dev Burman
Sylvester Stallone
William Henry Harrison
Shakira
Taraji P. Henson
Richard Gere
Simon Cowell
Max Fleischer
Paul Simon
James E. Reilly
Answer: Shakira
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Taraji P. Henson" .  } UNION { ?e <pred:name> "Shakira" . ?e_1 <famous_people> ?e . ?e_1 <pred:name> "synth-pop" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Taraji P. Henson
function: Find
inputs: synth-pop
function: Relate
dependencies: 1
inputs: famous people
forward
function: Find
inputs: Shakira
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater