Question: What academic degree did Tony Blair get at St. John's College (headquartered in Oxford)?
Choices:
Master of Science
bachelor's degree
Doctor of Medicine
Bachelor of Engineering
Bachelor of Arts
Bachelor of General Studies
Master of Laws
undergraduate degree
master's degree
Bachelor of Science
Answer: Bachelor of Arts
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Tony Blair" . ?e_2 <pred:name> "St John's College" . ?e_2 <headquarters_location> ?e_3 . ?e_3 <pred:name> "Oxford" . ?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: Tony Blair
function: Find
inputs: Oxford
function: Relate
dependencies: 1
inputs: headquarters location
backward
function: Find
inputs: St John's College
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: educated at
academic degree