ZEPPELIN-115 fix zql parsing

ZQL parser does not correctly handle pipe in some case.
issue described here [ZEPPELIN-115](https://zeppelin-project.atlassian.net/browse/ZEPPELIN-115).