Some support for runtime query building.