Answering Regular Path Queries Over SQ Ontologies