Question: Who has fewer children, Jamie Lee Curtis or Harrison Ford (the one that is the spouse of Calista Flockhart)?
Choices:
Simon Cowell
Jamie Lee Curtis
Paul Simon
William Henry Harrison
Sylvester Stallone
Max Fleischer
David Byrne
Rahul Dev Burman
Richard Gere
James E. Reilly
Program:
function: Find
inputs: Jamie Lee Curtis
function: Find
inputs: Calista Flockhart
function: Relate
dependencies: 1
inputs: spouse
forward
function: Find
inputs: Harrison Ford
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jamie Lee Curtis" .  } UNION { ?e <pred:name> "Harrison Ford" . ?e_1 <spouse> ?e . ?e_1 <pred:name> "Calista Flockhart" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jamie Lee Curtis