Add sxql example
Simplify example generation
Update templates and generation code, add internal and external links