This version is old school.
Please find jQuery plugins on npm.
dataset filter rules jQuery plugin
jui_filter_rules is a jQuery plugin, useful to create or set filter rules as JSON object and get the relevant WHERE SQL. Fully configurable. Localization support. Bootstrap support.