survey instance view fixed -- new sql file