SQL Restrictions Evaluator