Each of the following expressions has a mistake in the syntax. Identify the mistake and write out the correct analysis syntax.
1) Goal: If the Attribute1 value multiplied by 50 is greater than a threshold of 200 then output 1. If it is less than or equal to 200 then output 0.
2) Goal: Output the addition of 2 attribute values
3) Goal: Provide a rolling sum of an attribute's values that have come in over the last 10 minutes
4) Goal: Output the number 4 if Attribute1 shows a value of ON, otherwise output 0