Import and adapt more text and examples from old version in sql.md.