Question: What is the academic degree of John Logan, the major in a military, that he got at University of Queensland ?
Choices:
Bachelor of General Studies
Bachelor of Arts
not completed
Bachelor of Fine Arts
Master of Fine Arts
doctorate
Master of Laws
Bachelor of Laws
Master of Education
Master of Business Administration
Answer: Bachelor of Laws
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Logan" . ?e_1 <military_rank> ?e_3 . ?e_3 <pred:name> "major" . ?e_2 <pred:name> "University of Queensland" . ?e_1 <educated_at> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <educated_at> ; <pred:fact_t> ?e_2 ] <academic_degree> ?qpv .  }
Program:
function: Find
inputs: major
function: Relate
dependencies: 0
inputs: military rank
backward
function: Find
inputs: John Logan
function: And
dependencies: 1
2
function: Find
inputs: University of Queensland
function: QueryRelationQualifier
dependencies: 3
4
inputs: educated at
academic degree