Updated the tick model file with where clause