filter: Respect filter priorities
filter: Respect filter priorities

This adds parenthesis to the generated SQL queries where appropriate.

https://bugzilla.gnome.org/show_bug.cgi?id=740701

GNOME/gom,GNOME/gom