You can inject SQL into a string literal (&shortcut:ShowIntentionActions; | Inject Language/Reference | <SQL dialect>) and then use coding assistance for SQL.