Question: What number of church buildings have a modern architecture style or have patron saint John Ritter, who attended the University of Southern California?
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> "church building" .  { ?e <patron_saint> ?e_1 . ?e_1 <pred:name> "John Ritter" . ?e_1 <educated_at> ?e_2 . ?e_2 <pred:name> "University of Southern California" .  } UNION { ?e <architectural_style> ?e_1 . ?e_1 <pred:name> "modern architecture" .  } }
Program:
function: Find
inputs: University of Southern California
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Ritter
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: patron saint
backward
function: FilterConcept
dependencies: 4
inputs: church building
function: Find
inputs: modern architecture
function: Relate
dependencies: 6
inputs: architectural style
backward
function: FilterConcept
dependencies: 7
inputs: church building
function: Or
dependencies: 5
8
function: Count
dependencies: 9