Yalo interview question

identify if a query has errors