Question: What number of written work from the UK or has Leonardo da Vinci as a character?
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> "written work" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e <characters> ?e_1 . ?e_1 <pred:name> "Leonardo da Vinci" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: written work
function: Find
inputs: Leonardo da Vinci
function: Relate
dependencies: 3
inputs: characters
backward
function: FilterConcept
dependencies: 4
inputs: written work
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2