name: sql-debug-env description: > Interactive SQL debugging environment — give an agent a broken query, a schema, and some sample data, and see if it can fix it through iterative feedback from a real SQLite database. tags: - sql - debugging - optimization - database - code-repair tasks: - id: fix_syntax name: Fix SQL Syntax Errors description: > Query has typos in SQL keywords (SELEKT, WHER, etc). Agent needs to spot and fix the syntax errors to get the correct result set. difficulty: easy - id: fix_join name: Fix Wrong JOIN Logic description: > Query runs without errors but JOINs on the wrong column, producing garbage results. Agent has to figure out the correct join key. difficulty: medium - id: optimize_query name: Optimize Correlated Subquery description: > Query is correct but uses correlated subqueries that scale terribly. Agent must rewrite using JOINs or CTEs while keeping output identical. difficulty: hard server: dockerfile: server/Dockerfile port: 7860 client: module: sql_debug_env class: SQLDebugEnv