Question: How many unitary states were founded by Second Polish Republic, or are the places where Tom Scott, the audio engineer, works?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Second Polish Republic
function: Relate
dependencies: 0
inputs: founded by
backward
function: FilterConcept
dependencies: 1
inputs: unitary state
function: Find
inputs: audio engineer
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: Tom Scott
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: work location
forward
function: FilterConcept
dependencies: 7
inputs: unitary state
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "unitary state" .  { ?e <founded_by> ?e_1 . ?e_1 <pred:name> "Second Polish Republic" .  } UNION { ?e_1 <work_location> ?e . ?e_1 <pred:name> "Tom Scott" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "audio engineer" .  } }
Answer: 1