Question: Donald Trump, born 1946-06-14, was which number in the series that held the office of President of the United States?
Choices: 73
29
41
19
97
9
11
34
45
21
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Donald Trump" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1946-06-14"^^xsd:date . ?e_2 <pred:name> "President of the United States" . ?e_1 <position_held> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <position_held> ; <pred:fact_t> ?e_2 ] <series_ordinal> ?qpv .  }
Program:
function: Find
inputs: Donald Trump
function: FilterDate
dependencies: 0
inputs: date of birth
1946-06-14
=
function: Find
inputs: President of the United States
function: QueryRelationQualifier
dependencies: 1
2
inputs: position held
series ordinal
Answer: 45