Question: Who has more children, Aamir Khan or Dick Cheney?
Choices:
Sylvester Stallone
Richard Gere
Simon Cowell
Dick Cheney
Rahul Dev Burman
William Henry Harrison
James E. Reilly
Paul Simon
David Byrne
Aamir Khan
Program:
function: Find
inputs: Aamir Khan
function: Find
inputs: Dick Cheney
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aamir Khan" .  } UNION { ?e <pred:name> "Dick Cheney" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Dick Cheney