Question: How many forms of government have a diplomatic relation with the USA?
Choices:
25
26
27
28
29
30
31
32
33
34
Answer: 33
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "form of government" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: FilterConcept
dependencies: 1
inputs: form of government
function: Count
dependencies: 2