Question: Who weighs more, John Adams (the one that is the citizen of Canada) or Jim Brown (the one whose height is 185 centimetre)?
Choices:
William Henry Harrison
Max Fleischer
Paul Simon
Simon Cowell
David Byrne
Richard Gere
John Adams
Jim Brown
Sylvester Stallone
James E. Reilly
Answer: Jim Brown
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Adams" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Canada" . } UNION { ?e <pred:name> "Jim Brown" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "185"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: Jim Brown
function: FilterNum
dependencies: 4
inputs: height
185 centimetre
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater