refactor cinemas schedule query