Adds early filtering support.

Introduces some basic relational filtering support and query parameterization.