Question: Which one has fewer children, Vanessa Williams or Adam Carolla ?
Choices:
Max Fleischer
Vanessa Williams
James E. Reilly
Richard Gere
Simon Cowell
Rahul Dev Burman
William Henry Harrison
Adam Carolla
David Byrne
Paul Simon
Program:
function: Find
inputs: Vanessa Williams
function: Find
inputs: Adam Carolla
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Vanessa Williams" .  } UNION { ?e <pred:name> "Adam Carolla" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Adam Carolla