Question: Does Beauty and the Beast (that is a famous work of Emma Watson) or The Parent Trap (whose composer is Alan Silvestri) have the lower box office?
Choices: G-Force
John Carter
The Flintstones in Viva Rock Vegas
National Treasure: Book of Secrets
Beauty and the Beast
Holes
Old Dogs
The Parent Trap
The Muppets
Alvin and the Chipmunks: Chipwrecked
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beauty and the Beast" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "Emma Watson" .   } UNION { ?e <pred:name> "The Parent Trap" . ?e <composer> ?e_2 . ?e_2 <pred:name> "Alan Silvestri" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Emma Watson
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Find
inputs: Alan Silvestri
function: Relate
dependencies: 4
inputs: composer
backward
function: Find
inputs: The Parent Trap
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: box office
less
Answer: The Parent Trap