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