Question: Which has more cost, psychological horror The Ring or Shortbus?
Choices:
The Fifth Element
Shortbus
The Hunchback of Notre Dame
Talk to Her
The Ring
Rebecca
Curse of the Golden Flower
Training Day
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: psychological horror
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Ring
function: And
dependencies: 1
2
function: Find
inputs: Shortbus
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Ring" . ?e <genre> ?e_1 . ?e_1 <pred:name> "psychological horror" .   } UNION { ?e <pred:name> "Shortbus" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Ring