Updated query 11 and function comments