you should use QtFuzzyLite to help you with such kind of issues.
The problems you have are:
(1) the first rule starts with
is instead of
(2) the fuzzy operators (AND, OR) are case sensitive, and in fuzzylite you utilize “and” and “or” instead of their upper-case operators.