Question: What academic degree did John Carter (the one that has the occupation of judge) receive after being educated at the University of Texas School of Law?
Choices:
Bachelor of Engineering
Master of Arts
Bachelor of Science
Doctor of Medicine
Juris Doctor
Bachelor of Laws
undergraduate degree
Master of Laws
doctorate
Bachelor of General Studies
Program:
function: Find
inputs: judge
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Carter
function: And
dependencies: 1
2
function: Find
inputs: University of Texas School of Law
function: QueryRelationQualifier
dependencies: 3
4
inputs: educated at
academic degree
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "John Carter" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "judge" . ?e_2 <pred:name> "University of Texas School of Law" . ?e_1 <educated_at> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <educated_at> ; <pred:fact_t> ?e_2 ] <academic_degree> ?qpv .  }
Answer: Juris Doctor