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