Question: What male-given name equals the given name of Leonard Cohen (the series ordinal of this statement is 2)?
Choices:
Paul
Christian
Hugo
Gary
August
Bobby
Frederick
Alexander
Ray
Norman
Answer: Norman
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "male given name" . ?e_1 <given_name> ?e . ?e_1 <pred:name> "Leonard Cohen" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <given_name> ; <pred:fact_t> ?e ] <series_ordinal> ?qpv . ?qpv <pred:value> "2" .  }
Program:
function: Find
inputs: Leonard Cohen
function: Relate
dependencies: 0
inputs: given name
forward
function: QFilterStr
dependencies: 1
inputs: series ordinal
2
function: FilterConcept
dependencies: 2
inputs: male given name
function: What
dependencies: 3