Question: What is the name of Mary McDonnell´s character in Battlestar Galactica (the one with 75 episodes)?
Choices:
Johnny English
Marshall Eriksen
Elmer Fudd
Laura Roslin
Meriadoc Brandybuck
Robert F. Kennedy
Cosmo Kramer
D'Artagnan
Grand Moff Tarkin
King Arthur
Answer: Laura Roslin
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Battlestar Galactica" . ?e_1 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "75"^^xsd:double . ?e_2 <pred:name> "Mary McDonnell" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: Battlestar Galactica
function: FilterNum
dependencies: 0
inputs: number of episodes
75
=
function: Find
inputs: Mary McDonnell
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
character role