Question: What city is the main subject of Casablanca (the one whose release region is United States of America)?
Choices:
Cork
Kingston
Sapporo
Waterford
Casablanca
Abidjan
Fredericton
World War II
Bergen
Kilkenny
Answer: Casablanca
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Casablanca" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Casablanca
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5