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