Question: What territorial entity is Beverly Hills, where the writer Fritz Lang died?
Choices: Rhine Province
Martinique
Kingdom of Lombardy–Venetia
British Columbia
Indiana
California
Rome
New York
Ramenki District
England
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Fritz Lang" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "writer" . ?e_2 <pred:name> "Beverly Hills" . ?e_1 <place_of_death> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_death> ; <pred:fact_t> ?e_2 ] <located_in_the_administrative_territorial_entity> ?qpv .  }
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Fritz Lang
function: And
dependencies: 1
2
function: Find
inputs: Beverly Hills
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of death
located in the administrative territorial entity
Answer: California