fix to SQL parser (and-or prioroty)
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop
added test cases for sql parser