Question: How many big cities do we recognize whose heritage designation whose Twitter hashtag is PatrimoineMondial (the language of this statement is French) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "big city" . ?e <heritage_designation> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "heritage designation" . ?e_1 <Twitter_hashtag> ?pv . ?pv <pred:value> "PatrimoineMondial" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <Twitter_hashtag> ; <pred:fact_t> ?pv ] <language_of_work_or_name> ?qpv . ?qpv <pred:value> "French" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Twitter hashtag
PatrimoineMondial
function: QFilterStr
dependencies: 1
inputs: language of work or name
French
function: FilterConcept
dependencies: 2
inputs: heritage designation
function: Relate
dependencies: 3
inputs: heritage designation
backward
function: FilterConcept
dependencies: 4
inputs: big city
function: Count
dependencies: 5