Question: Which movie made more at the box office, Star Wars: Episode I – The Phantom Menace or The Parent Trap (the one that has Brian Keith as a cast member)?
Choices:
G-Force
Star Wars: Episode I – The Phantom Menace
The Flintstones
The Flintstones in Viva Rock Vegas
The Parent Trap
National Treasure: Book of Secrets
John Carter
Alvin and the Chipmunks: Chipwrecked
The Muppets
Holes
Program:
function: Find
inputs: Star Wars: Episode I – The Phantom Menace
function: Find
inputs: Brian Keith
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Parent Trap
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Wars: Episode I – The Phantom Menace" .  } UNION { ?e <pred:name> "The Parent Trap" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Brian Keith" .   } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Star Wars: Episode I – The Phantom Menace