Question: Which has more box office, Back to the Future Part II or Around the World in 80 Days starring Ian McNeice?
Choices:
Around the World in 80 Days
The Flintstones in Viva Rock Vegas
John Carter
G-Force
Old Dogs
Back to the Future Part II
The Muppets
Holes
Alvin and the Chipmunks: Chipwrecked
The Flintstones
Answer: Around the World in 80 Days
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Back to the Future Part II" .  } UNION { ?e <pred:name> "Around the World in 80 Days" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ian McNeice" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Back to the Future Part II
function: Find
inputs: Ian McNeice
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Around the World in 80 Days
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater