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