Question: Who is taller: Chris Cooper, at 180 cm, or Israel, a Spanish citizen?
Choices:
Simon Cowell
Paul Simon
Chris Cooper
Sylvester Stallone
Max Fleischer
David Byrne
James E. Reilly
Israel
William Henry Harrison
Richard Gere
Answer: Chris Cooper
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Cooper" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "180"^^xsd:double . } UNION { ?e <pred:name> "Israel" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Spain" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chris Cooper
function: FilterNum
dependencies: 0
inputs: height
180 centimetre
=
function: Find
inputs: Spain
function: Relate
dependencies: 2
inputs: country of citizenship
backward
function: Find
inputs: Israel
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: height
greater