Xquery and relational databases theory