Question: How many crimes belong to the field of work of an organization David Petraeus works for?
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> "crime" . ?e_1 <field_of_work> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "organization" . ?e_2 <employer> ?e_1 . ?e_2 <pred:name> "David Petraeus" .   }
Program:
function: Find
inputs: David Petraeus
function: Relate
dependencies: 0
inputs: employer
forward
function: FilterConcept
dependencies: 1
inputs: organization
function: Relate
dependencies: 2
inputs: field of work
forward
function: FilterConcept
dependencies: 3
inputs: crime
function: Count
dependencies: 4
Answer: 1