Question: Who has more children, Edward Burns or George Washington (the one whose height is 74 inch)?
Choices:
Richard Gere
David Byrne
Rahul Dev Burman
Max Fleischer
Paul Simon
James E. Reilly
William Henry Harrison
Edward Burns
Simon Cowell
Sylvester Stallone
Program:
function: Find
inputs: Edward Burns
function: Find
inputs: George Washington
function: FilterNum
dependencies: 1
inputs: height
74 inch
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Edward Burns" . } UNION { ?e <pred:name> "George Washington" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "74"^^xsd:double . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Edward Burns