Google 专利 bigquery 转发引用

Google patent bigquery forward citation

我想获取引用 2003 年至 2015 年期间提交的所有美国专利的专利列表(公开号、申请日期等)。不确定哪里出了问题,但我当前的代码(如下)没有返回任何结果。任何人都可以帮我修改代码吗?

SELECT c.publication_number AS Pub, c.category AS Cat, c.filing_date AS Date, p.publication_number AS Citedby, p.filing_date AS Cited_Date 
FROM `patents-public-data.patents.publications` AS p, UNNEST(citation) AS c 
WHERE c.publication_number LIKE ('US%') AND (c.filing_date BETWEEN 20030101 AND 20041231);

非常感谢您的帮助。

这是因为 citation.filing_date 在每一行中都有 0 值。查看 JSON 输出文件和 Date 字段:

[
  {
    "Citedby": "US-2014313399-A1",
    "Cited_Date": "20140630",
    "Pub": "US-8792047-B2",
    "Cat": "PRS",
    "Date": "0"
  },
  {
    "Citedby": "US-2013120526-A1",
    "Cited_Date": "20120731",
    "Pub": "US-2011134210-A1",
    "Cat": "PRS",
    "Date": "0"
  },
  {
    "Citedby": "US-2013242999-A1",
    "Cited_Date": "20120530",
    "Pub": "US-7616646-B1",
    "Cat": "PRS",
    "Date": "0"
  },

您不应该在 WHERE 子句中使用 (c.filing_date BETWEEN 20030101 AND 20041231)

SELECT p.publication_number AS Citedby, p.filing_date AS Cited_Date, c.publication_number AS Pub, c.category AS Cat, c.filing_date AS Date
FROM `patents-public-data.patents.publications` AS p, UNNEST(citation) AS c 
WHERE c.publication_number LIKE ('US%');

它打印出专利列表。或者您可以添加 (p.filing_date BETWEEN 20030101 AND 20151231),但请记住这是 publications.filing_date 而不是 citation.filing_date

希望对您有所帮助。