Question: Who is taller: DMX, or Mauricio Pinilla who wears sports number 51?
Choices:
William Henry Harrison
DMX
Rahul Dev Burman
David Byrne
James E. Reilly
Max Fleischer
Simon Cowell
Sylvester Stallone
Richard Gere
Mauricio Pinilla
Program:
function: Find
inputs: DMX
function: Find
inputs: Mauricio Pinilla
function: FilterStr
dependencies: 1
inputs: sport number
51
function: SelectBetween
dependencies: 0
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "DMX" . } UNION { ?e <pred:name> "Mauricio Pinilla" . ?e <sport_number> ?pv_1 . ?pv_1 <pred:value> "51" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mauricio Pinilla