@RomanPerekhrest My query is actually more complex and it is easier to use
.query()
however I am having problem with the column being cast as int or text.