Question: Who has more children, Emily Mortimer or Jimmy Carter (the one that is a cast member of Live Free or Die Hard)?
Choices: David Byrne
Simon Cowell
Emily Mortimer
Jimmy Carter
Max Fleischer
William Henry Harrison
James E. Reilly
Richard Gere
Rahul Dev Burman
Sylvester Stallone
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Emily Mortimer" .  } UNION { ?e <pred:name> "Jimmy Carter" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Live Free or Die Hard" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Emily Mortimer
function: Find
inputs: Live Free or Die Hard
function: Relate
dependencies: 1
inputs: cast member
forward
function: Find
inputs: Jimmy Carter
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
Answer: Jimmy Carter