Write SQL query to solve given problem: In years 2011 to 2013, what is the total number of female students in university ID 40?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM(CAST(num_students * pct_female_students AS REAL) / 100) FROM university_year WHERE year BETWEEN 2011 AND 2013 AND university_id = 40