File size: 1,138 Bytes
50bf486
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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