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