Question: Gordon Brown, of the Church of Scotland faith, was which number in the series of UK Prime Ministers?
Choices: 171
74
40
5
25
22
6
26
12
175
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Gordon Brown" . ?e_1 <religion> ?e_3 . ?e_3 <pred:name> "Church of Scotland" . ?e_2 <pred:name> "Prime Minister of the United Kingdom" . ?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: Church of Scotland
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Gordon Brown
function: And
dependencies: 1
2
function: Find
inputs: Prime Minister of the United Kingdom
function: QueryRelationQualifier
dependencies: 3
4
inputs: position held
series ordinal
Answer: 74