Question: Does Richard Nixon or Barbara Walters have more children?
Choices:
James E. Reilly
William Henry Harrison
Paul Simon
Sylvester Stallone
Simon Cowell
Max Fleischer
Richard Gere
Richard Nixon
Barbara Walters
Rahul Dev Burman
Program:
function: Find
inputs: Richard Nixon
function: Find
inputs: Barbara Walters
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Nixon" .  } UNION { ?e <pred:name> "Barbara Walters" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Richard Nixon