Note that these are CONSTRUCT queries designed to create a small Jena model for export as a whole after a series of queries has been run.  The PERSON_URI variable is substituted by VIVO at runtime.

PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX obo: <http://purl.obolibrary.org/obo/>

CONSTRUCT {
     ?course ?property ?object .
} WHERE {
     PERSON_URI obo:RO_0000053 ?teacherRole .
     ?teacherRole a core:TeacherRole .
     ?teacherRole obo:BFO_0000054  ?course .
     ?course ?property ?object .
}