Question: For John Logan (the one that has the occupation of military officer), what is the academic degree for his University of Queensland education?
Choices:
Master of Laws
Doctor of Medicine
bachelor's degree
Bachelor of Laws
Bachelor of General Studies
Juris Doctor
not completed
Master of Arts
doctorate
Master of Fine Arts
Answer: Bachelor of Laws
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Logan" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "military officer" . ?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: military officer
function: Relate
dependencies: 0
inputs: occupation
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