For those of us who does not speak Prolog, there is an easier way to configure your submit rules in Gerrit. The Quality gate wizard lets you to set up your submit rules in less than 3 minutes.