Question: Who is taller, Marilyn Monroe (the one whose Libris-URI is mkz13rj52m3g5cn) or Brigitte Nielsen?
Choices:
James E. Reilly
Max Fleischer
Richard Gere
Marilyn Monroe
Brigitte Nielsen
Sylvester Stallone
Paul Simon
David Byrne
Rahul Dev Burman
William Henry Harrison
Program:
function: Find
inputs: Marilyn Monroe
function: FilterStr
dependencies: 0
inputs: Libris-URI
mkz13rj52m3g5cn
function: Find
inputs: Brigitte Nielsen
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marilyn Monroe" . ?e <Libris-URI> ?pv_1 . ?pv_1 <pred:value> "mkz13rj52m3g5cn" . } UNION { ?e <pred:name> "Brigitte Nielsen" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Brigitte Nielsen