Question: What is the connection between California (the one that is the filming location of Anchorman: The Legend of Ron Burgundy) to state senator?
Choices: cause of death
author
country
nominated for
subject has role
edition or translation of
has contributing factor
software engine
office held by head of government
family name
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "California" . ?e_3 <filming_location> ?e_1 . ?e_3 <pred:name> "Anchorman: The Legend of Ron Burgundy" . ?e_2 <pred:name> "state senator" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Anchorman: The Legend of Ron Burgundy
function: Relate
dependencies: 0
inputs: filming location
forward
function: Find
inputs: California
function: And
dependencies: 1
2
function: Find
inputs: state senator
function: QueryRelation
dependencies: 3
4
Answer: office held by head of government