Question: How many provinces of China share a border with the province of China whose country is Qing dynasty, starting 1636?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of China" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "province of China" . ?e_1 <country> ?e_2 . ?e_2 <pred:name> "Qing dynasty" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <country> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:year> 1636 .   }
Program:
function: Find
inputs: Qing dynasty
function: Relate
dependencies: 0
inputs: country
backward
function: QFilterYear
dependencies: 1
inputs: start time
1636
=
function: FilterConcept
dependencies: 2
inputs: province of China
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: province of China
function: Count
dependencies: 5