Question: How many civil wars are the main subject of Alfie, which has Marisa Tomei as a cast member?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "civil war" . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Alfie" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Marisa Tomei" .   }
Program:
function: Find
inputs: Marisa Tomei
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Alfie
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: civil war
function: Count
dependencies: 5
Answer: 0