Queries with Regular Path Expressions