Question: How many religious buildings have the significant event activity whose Library of Congress Classification is TH?
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> "religious building" . ?e <significant_event> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "activity" . ?e_1 <Library_of_Congress_Classification> ?pv . ?pv <pred:value> "TH" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Library of Congress Classification
TH
function: FilterConcept
dependencies: 1
inputs: activity
function: Relate
dependencies: 2
inputs: significant event
backward
function: FilterConcept
dependencies: 3
inputs: religious building
function: Count
dependencies: 4