Question: Who is heavier: Ronaldo (CANTIC-ID a10750460) or Lamar Odom?
Choices:
Simon Cowell
Paul Simon
James E. Reilly
Sylvester Stallone
Max Fleischer
Rahul Dev Burman
David Byrne
Lamar Odom
Richard Gere
Ronaldo
Program:
function: Find
inputs: Ronaldo
function: FilterStr
dependencies: 0
inputs: CANTIC-ID
a10750460
function: Find
inputs: Lamar Odom
function: SelectBetween
dependencies: 1
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ronaldo" . ?e <CANTIC-ID> ?pv_1 . ?pv_1 <pred:value> "a10750460" . } UNION { ?e <pred:name> "Lamar Odom" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lamar Odom