Question: How many states have a diplomatic relation with Libya?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Libya" .   }
Program:
function: Find
inputs: Libya
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 1
inputs: state
function: Count
dependencies: 2