render() now supports queries