condition on query when format_jadwal is null.