Change attribute name of SQL rule (first rule).
Add some tests for invalid select statements.