prefix oio: prefix owl: SELECT ?cls ?xref WHERE { ?cls a owl:Class ; oio:hasDbXref ?xref }