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