Question: Which movie cost more to make, West Side Story (the one that is shot in New York City) or The Spy Who Loved Me (the one whose official website is http://www.mgm.com/view/Movie/1891/The-Spy-who-loved-Me/)?
Choices:
Pleasantville
The Fifth Element
Curse of the Golden Flower
The Spy Who Loved Me
A Prairie Home Companion
Training Day
The Towering Inferno
Talk to Her
The Hunchback of Notre Dame
West Side Story
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: West Side Story
function: And
dependencies: 1
2
function: Find
inputs: The Spy Who Loved Me
function: FilterStr
dependencies: 4
inputs: official website
http://www.mgm.com/view/Movie/1891/The-Spy-who-loved-Me/
function: SelectBetween
dependencies: 3
5
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "West Side Story" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "New York City" . } UNION { ?e <pred:name> "The Spy Who Loved Me" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.mgm.com/view/Movie/1891/The-Spy-who-loved-Me/" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Spy Who Loved Me