Question: How many subscribers are there on UniversityOfHongKong, the subreddit of a university where James Wong Jim studied (the academic degree of this statement is Doctor of Philosophy) ?
Choices:
91852
149061
632995
117198
1131
2884409
72329
8
333782
58826
Answer: 8
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "university" . ?e_1 <educated_at> ?e . ?e_1 <pred:name> "James Wong Jim" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <educated_at> ; <pred:fact_t> ?e ] <academic_degree> ?qpv_1 . ?qpv_1 <pred:value> "Doctor of Philosophy" . ?e <subreddit> ?pv . ?pv <pred:value> "UniversityOfHongKong" . [ <pred:fact_h> ?e ; <pred:fact_r> <subreddit> ; <pred:fact_t> ?pv ] <number_of_subscribers> ?qpv .  }
Program:
function: Find
inputs: James Wong Jim
function: Relate
dependencies: 0
inputs: educated at
forward
function: QFilterStr
dependencies: 1
inputs: academic degree
Doctor of Philosophy
function: FilterConcept
dependencies: 2
inputs: university
function: QueryAttrQualifier
dependencies: 3
inputs: subreddit
UniversityOfHongKong
number of subscribers