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