Question: Tell me who has more kids, Alanis Morissette or Kirstie Alley.
Choices:
Simon Cowell
Alanis Morissette
David Byrne
Kirstie Alley
Rahul Dev Burman
Richard Gere
Sylvester Stallone
Paul Simon
James E. Reilly
William Henry Harrison
Program:
function: Find
inputs: Kirstie Alley
function: Find
inputs: Alanis Morissette
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kirstie Alley" .  } UNION { ?e <pred:name> "Alanis Morissette" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kirstie Alley