Maybe a "querybuilder" package?