fixed typed query