Question: How many historic counties of England have the official website http://www.lgyh.gov.uk/ or are the narrative location of Wuthering Heights (whose producer is Samuel Z. Arkoff)?
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> "historic county of England" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://www.lgyh.gov.uk/" .  } UNION { ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "Wuthering Heights" . ?e_1 <producer> ?e_2 . ?e_2 <pred:name> "Samuel Z. Arkoff" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.lgyh.gov.uk/
function: FilterConcept
dependencies: 1
inputs: historic county of England
function: Find
inputs: Samuel Z. Arkoff
function: Relate
dependencies: 3
inputs: producer
backward
function: Find
inputs: Wuthering Heights
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: narrative location
forward
function: FilterConcept
dependencies: 7
inputs: historic county of England
function: Or
dependencies: 2
8
function: Count
dependencies: 9