Question: Who has more children, Jennifer Love Hewitt or Olivia d'Abo?
Choices:
Olivia d'Abo
David Byrne
Sylvester Stallone
Rahul Dev Burman
Jennifer Love Hewitt
Richard Gere
Simon Cowell
James E. Reilly
Paul Simon
William Henry Harrison
Program:
function: Find
inputs: Jennifer Love Hewitt
function: Find
inputs: Olivia d'Abo
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jennifer Love Hewitt" .  } UNION { ?e <pred:name> "Olivia d'Abo" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Jennifer Love Hewitt