Question: How many countries are the birthplace of John Hughes (who was born in Wales) or have a population of under 4100000000?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: Find
inputs: Wales
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: John Hughes
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: country
function: FindAll
function: FilterNum
dependencies: 6
inputs: population
4100000000
<
function: FilterConcept
dependencies: 7
inputs: country
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "John Hughes" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Wales" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "4100000000"^^xsd:double ) .  } }
Answer: 6