Question: Who weighs more, Hensley Meulens or Carlos Ruiz (the one whose birth name is Carlos Humberto Ruiz Gutiérrez)?
Choices:
Carlos Ruiz
Rahul Dev Burman
Hensley Meulens
Max Fleischer
Sylvester Stallone
Richard Gere
Paul Simon
William Henry Harrison
Simon Cowell
James E. Reilly
Program:
function: Find
inputs: Hensley Meulens
function: Find
inputs: Carlos Ruiz
function: FilterStr
dependencies: 1
inputs: birth name
Carlos Humberto Ruiz Gutiérrez
function: SelectBetween
dependencies: 0
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hensley Meulens" . } UNION { ?e <pred:name> "Carlos Ruiz" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Carlos Humberto Ruiz Gutiérrez" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Hensley Meulens