Added query.xml for rules core