Question: What position is held by Elizabeth II, who heads the UK?
Choices:
United States Secretary of State
Director of Central Intelligence
astronaut
president of the French Republic
university teacher
President of the Republic of China
Chairman of the Communist Party of China
Artists and repertoire
queen regnant
county seat
Answer: queen regnant
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "United Kingdom" . ?e_2 <pred:name> "Elizabeth II" . ?e_1 <head_of_state> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <head_of_state> ; <pred:fact_t> ?e_2 ] <position_held> ?qpv .  }
Program:
function: Find
inputs: United Kingdom
function: Find
inputs: Elizabeth II
function: QueryRelationQualifier
dependencies: 0
1
inputs: head of state
position held