modificat query of state in service event si service_event_states