Question: Which have more weight Robert Taylor (the one whose height is 181 centimeter) or David Beckham?
Choices:
James E. Reilly
Max Fleischer
Robert Taylor
Simon Cowell
Sylvester Stallone
William Henry Harrison
Rahul Dev Burman
David Beckham
David Byrne
Richard Gere
Program:
function: Find
inputs: Robert Taylor
function: FilterNum
dependencies: 0
inputs: height
181 centimetre
=
function: Find
inputs: David Beckham
function: SelectBetween
dependencies: 1
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Robert Taylor" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "181"^^xsd:double . } UNION { ?e <pred:name> "David Beckham" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robert Taylor