Question: Which one, Ursula K. Le Guin or Margot Kidder, has a greater number of children?
Choices:
Simon Cowell
Ursula K. Le Guin
Richard Gere
Rahul Dev Burman
Margot Kidder
David Byrne
Max Fleischer
William Henry Harrison
Sylvester Stallone
James E. Reilly
Program:
function: Find
inputs: Ursula K. Le Guin
function: Find
inputs: Margot Kidder
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ursula K. Le Guin" .  } UNION { ?e <pred:name> "Margot Kidder" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ursula K. Le Guin