Question: Which one, Melora Hardin or James K. Polk, has a greater number of children?
Choices:
Rahul Dev Burman
James E. Reilly
Sylvester Stallone
Richard Gere
Max Fleischer
James K. Polk
Paul Simon
Melora Hardin
William Henry Harrison
Simon Cowell
Program:
function: Find
inputs: Melora Hardin
function: Find
inputs: James K. Polk
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Melora Hardin" .  } UNION { ?e <pred:name> "James K. Polk" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Melora Hardin