Changed Waterline-Sequel queries to be compliant with OrientDB SQL type