Question: Who is the head of state of Puerto Rico (the one whose population is 3781101), which is headed by President of the United States?
Choices:
4296175137
PEBAM
1946
12
WSN111
2111.2
5059953
Donald Trump
youth association football
Barack Obama
Answer: Donald Trump
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Puerto Rico" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "3781101"^^xsd:double . ?e_2 <pred:name> "President of the United States" . ?e_1 <office_held_by_head_of_government> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <office_held_by_head_of_government> ; <pred:fact_t> ?e_2 ] <head_of_state> ?qpv .  }
Program:
function: Find
inputs: Puerto Rico
function: FilterNum
dependencies: 0
inputs: population
3781101
=
function: Find
inputs: President of the United States
function: QueryRelationQualifier
dependencies: 1
2
inputs: office held by head of government
head of state