Question: Which administrative territorial entity is the site of the headquarters of the Liberal Democrats, as well as the story location of Frenzy?
Choices:
Puerto Rico
City of Westminster
Martinique
Texas
Ramenki District
Quebec
Electorate of Saxony
Kentucky
Virginia
British Raj
Answer: City of Westminster
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Liberal Democrats" . ?e_2 <pred:name> "London" . ?e_3 <narrative_location> ?e_2 . ?e_3 <pred:name> "Frenzy" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <located_in_the_administrative_territorial_entity> ?qpv .  }
Program:
function: Find
inputs: Liberal Democrats
function: Find
inputs: Frenzy
function: Relate
dependencies: 1
inputs: narrative location
forward
function: Find
inputs: London
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
located in the administrative territorial entity