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