Question: How many civil wars are a significant event that happened in the United States of America or belong to the country of Romania (that has a diplomatic relationship with Serbia)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "civil war" .  { ?e_1 <significant_event> ?e . ?e_1 <pred:name> "United States of America" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Romania" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Serbia" .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: significant event
forward
function: FilterConcept
dependencies: 1
inputs: civil war
function: Find
inputs: Serbia
function: Relate
dependencies: 3
inputs: diplomatic relation
backward
function: Find
inputs: Romania
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: civil war
function: Or
dependencies: 2
8
function: Count
dependencies: 9