{
  "demo": true,
  "endpoint": "/api/v1/db/nl-to-sql",
  "protocol": "L402",
  "price_sats": 15,
  "preview": {
    "sql_query": "SELECT u.id, u.username, SUM(i.amount_sats) AS total_sats_spent\nFROM users u\nJOIN invoices i ON u.id = i.user_id\nWHERE i.status = 'SETTLED' AND i.settled_at >= '2026-10-01' AND i.settled_at < '2026-11-01'\nGROUP BY u.id, u.username\nORDER BY total_sats_spent DESC\nLIMIT 10;",
    "dialect": "postgresql_dialect",
    "query_type": "SELECT_AGGREGATE_JOIN",
    "explanation": "Performs an INNER JOIN between users and invoices filtering on settled status in the October 2026 date range, aggregates total sats spent, sorts in descending order, and caps output to top 10 rows.",
    "safety_checked": true
  },
  "notice": "Pay 15 sats via L402 (or call via /mcp/context-code-solver) to execute live deterministic computation.",
  "upsell": {
    "message": "Upgrade to production tier for unlimited high-concurrency execution and live edge model compute.",
    "supported_payment_rails": [
      "Bitcoin Lightning (L402 / LSAT)",
      "Solana (x402 / SPL tokens)",
      "Base Ethereum (MPP / USDC)",
      "Garlicoin (L1 0-Conf / BSC WGRLC)"
    ],
    "starting_price_sats": 15,
    "portal_checkout": "https://diogenesgateway.com#payments",
    "free_developer_tier": "15 100% free coding tools available at https://diogenesgateway.com#one-click-connectors"
  }
}