Write SQL query to solve given problem: How many employees whose performance is poor have a salary of over $50,000 per year?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(*) FROM employee WHERE performance = 'Poor' AND CAST(REPLACE(SUBSTR(salary, 4), ',', '') AS REAL) > 50000