Replaces the raw-SQL-text preview/output with real data tables, and
fixes duplicate-output when a student's own SQL is itself a SELECT.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Extends the existing language-agnostic /format endpoint with a sql
branch so the "整理" button works for the new SQL language too.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Lets students select a preset teaching table, write SQL against it,
and see the resulting table state via the existing Judge0 pipeline.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>