Question: What film production company is located in San Francisco (the one that is the headquarter location of University of California, San Francisco) and produce movies as product or material?
Choices:
Constantin Film
Fine Line Features
Lucasfilm
United Artists
Paramount Pictures
Screen Gems
Touchstone Pictures
Warner Bros.
The Weinstein Company
Hollywood Pictures
Program:
function: Find
inputs: University of California, San Francisco
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: San Francisco
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: location of formation
backward
function: FilterConcept
dependencies: 4
inputs: film production company
function: Find
inputs: film
function: Relate
dependencies: 6
inputs: product or material produced
backward
function: FilterConcept
dependencies: 7
inputs: film production company
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film production company" . ?e <location_of_formation> ?e_1 . ?e_1 <pred:name> "San Francisco" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "University of California, San Francisco" .  ?e <product_or_material_produced> ?e_3 . ?e_3 <pred:name> "film" .  }
Answer: Lucasfilm