[
 {
  "command": "SELECT * FROM t;",
  "description": "Return all columns and rows"
 },
 {
  "command": "SELECT a, b FROM t WHERE x > 5;",
  "description": "Filter rows with a condition"
 },
 {
  "command": "SELECT DISTINCT a FROM t;",
  "description": "Unique values of a column"
 },
 {
  "command": "ORDER BY a DESC",
  "description": "Sort results descending"
 },
 {
  "command": "LIMIT 10 OFFSET 20",
  "description": "Paginate results"
 },
 {
  "command": "SELECT COUNT(*) FROM t;",
  "description": "Count rows"
 },
 {
  "command": "SELECT a, COUNT(*) FROM t GROUP BY a;",
  "description": "Count rows per group"
 },
 {
  "command": "GROUP BY a HAVING COUNT(*) > 1",
  "description": "Filter groups (finds duplicates)"
 },
 {
  "command": "INNER JOIN u ON t.id = u.t_id",
  "description": "Rows with matches in both tables"
 },
 {
  "command": "LEFT JOIN u ON t.id = u.t_id",
  "description": "All left rows, matched right rows or NULL"
 },
 {
  "command": "WHERE a IN (1,2,3)",
  "description": "Match any value in a list"
 },
 {
  "command": "WHERE a BETWEEN 1 AND 10",
  "description": "Inclusive range filter"
 },
 {
  "command": "WHERE name LIKE 'A%'",
  "description": "Pattern match (% any chars, _ one char)"
 },
 {
  "command": "WHERE a IS NULL",
  "description": "Test for NULL (never use = NULL)"
 },
 {
  "command": "COALESCE(a, 0)",
  "description": "First non-NULL value"
 },
 {
  "command": "CASE WHEN a > 0 THEN 'pos' ELSE 'neg' END",
  "description": "Conditional expression"
 },
 {
  "command": "INSERT INTO t (a,b) VALUES (1,'x');",
  "description": "Insert a row"
 },
 {
  "command": "UPDATE t SET a = 1 WHERE id = 5;",
  "description": "Update rows (always include WHERE)"
 },
 {
  "command": "DELETE FROM t WHERE id = 5;",
  "description": "Delete rows (always include WHERE)"
 },
 {
  "command": "CREATE TABLE t (id INTEGER PRIMARY KEY, name TEXT);",
  "description": "Create a table"
 },
 {
  "command": "ALTER TABLE t ADD COLUMN c TEXT;",
  "description": "Add a column"
 },
 {
  "command": "DROP TABLE t;",
  "description": "Delete a table (destructive)"
 },
 {
  "command": "CREATE INDEX idx_t_a ON t(a);",
  "description": "Speed up lookups on a column"
 },
 {
  "command": "WITH x AS (SELECT ...) SELECT * FROM x;",
  "description": "Common table expression"
 },
 {
  "command": "SELECT ... UNION SELECT ...;",
  "description": "Combine results, removing duplicates"
 },
 {
  "command": "SELECT ... WHERE id IN (SELECT t_id FROM u);",
  "description": "Subquery filter"
 },
 {
  "command": "ROW_NUMBER() OVER (PARTITION BY a ORDER BY b)",
  "description": "Window function: number rows per group"
 },
 {
  "command": "SUM(x), AVG(x), MIN(x), MAX(x)",
  "description": "Aggregate functions"
 },
 {
  "command": "BEGIN; ... COMMIT;",
  "description": "Group statements into a transaction"
 },
 {
  "command": "EXPLAIN SELECT ...;",
  "description": "Show the query plan"
 }
]