Check the result of a math expression in mysql
Because SQL differentiates code and data reasonably well in the syntax function like the following is required:
CREATE OR REPLACE FUNCTION test(a int, op char(1), b int)
   RETURNS INT DETERMINISTIC RETURN
CASE op
WHEN '+' THEN a + b
WHEN '*' THEN a * b
WHEN '/' THEN a / b
WHEN '-' THEN a - b
END

once you have that you can use a query:
select a, op, b, c
from maths
where test(a,op,b) = c

ref: fiddle