run_inline_query API mismatched Parenthesis in WHERE

How does Looker API decides the parentheses in the WHERE clause of generated SQL in run_inline_query API. I am getting mismatched parenthesis 

0 0 58