Question: How many towns whose time of earliest written record is before 1091 or whose WOEID is 31889?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" .  { ?e <time_of_earliest_written_record> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1091 ) .  } UNION { ?e <WOEID> ?pv . ?pv <pred:value> "31889" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: time of earliest written record
1091
<
function: FilterConcept
dependencies: 1
inputs: town
function: FindAll
function: FilterStr
dependencies: 3
inputs: WOEID
31889
function: FilterConcept
dependencies: 4
inputs: town
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2