Write SQL query to solve given problem: What is the gender of student1000?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT IIF(T.result = 0, 'female', 'male') AS re FROM ( SELECT COUNT(name) AS result FROM male WHERE name = 'studenT1000' ) T