Show the number of patents expiring by year for...
Created on Apr 10, 2025

Prompt

Show the number of patents expiring by year for the next 10 years

Chart

Query Results

Query Results

SQL Query:

SELECT
    EXTRACT(YEAR FROM patent_expire_date) AS category,
    COUNT(*) AS value,
    'Patents' AS series,
    CAST(EXTRACT(YEAR FROM patent_expire_date) AS VARCHAR) AS label,
    FALSE AS highlight
FROM
    orange_book_patents
WHERE
    patent_expire_date >= CURRENT_DATE
    AND patent_expire_date <= CURRENT_DATE + INTERVAL '10 year'
GROUP BY
    category
ORDER BY
    category;

Results:

categoryvalueserieslabelhighlight
20251021Patents2025false
20261573Patents2026false
20272053Patents2027false
20281247Patents2028false
20291506Patents2029false
20301503Patents2030false
20311739Patents2031false
20321173Patents2032false
20331221Patents2033false
20341127Patents2034false
2035368Patents2035false
Chart Configuration
{
  "grid": {
    "left": "3%",
    "right": "4%",
    "bottom": "10%",
    "containLabel": true
  },
  "title": {
    "top": "20px",
    "left": "center",
    "text": "Number of Patents Expiring by Year (Next 10 Years)"
  },
  "xAxis": [
    {
      "data": [],
      "name": "Year",
      "type": "category",
      "nameGap": 30,
      "boundaryGap": false,
      "nameLocation": "middle"
    }
  ],
  "yAxis": [
    {
      "name": "Number of Patents",
      "type": "value",
      "nameGap": 50,
      "nameLocation": "middle"
    }
  ],
  "legend": {
    "top": "bottom",
    "data": [
      "Patents"
    ]
  },
  "series": [
    {
      "data": [
        1186,
        1573,
        2053,
        1247,
        1506,
        1503,
        1739,
        1173,
        1221,
        1127,
        289
      ],
      "name": "Patents",
      "type": "bar"
    }
  ],
  "toolbox": {
    "feature": {
      "restore": {
        "show": true
      },
      "dataView": {
        "show": true,
        "readOnly": false
      },
      "magicType": {
        "show": true,
        "type": [
          "line",
          "bar"
        ]
      },
      "saveAsImage": {
        "show": true
      }
    }
  },
  "tooltip": {
    "trigger": "axis",
    "axisPointer": {
      "type": "cross",
      "label": {
        "backgroundColor": "#6a7985"
      }
    }
  }
}