Question: How many provinces in China are the twinned administrative body of the prefecture of Japan that is the twinned administrative body of Delhi (the start date of this statement is 2007-03-05)?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of China" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "prefecture of Japan" . ?e_1 <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Delhi" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <twinned_administrative_body> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:date> "2007-03-05"^^xsd:date .   }
Program:
function: Find
inputs: Delhi
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: QFilterDate
dependencies: 1
inputs: start time
2007-03-05
=
function: FilterConcept
dependencies: 2
inputs: prefecture of Japan
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: province of China
function: Count
dependencies: 5