public static function render(SQL\Aliased $aliased)
    {
        $content = $aliased->getContent();

        if ($content instanceof Query\Select) {
            $content = "(".Select::render($content).")";
        } else {
            $content = Compiler::name($content);
        }

        return Compiler::expression(array(
            $content,
            Compiler::word('AS', Compiler::name($aliased->getAlias()))
        ));
    }