The example revenue query can return several values per fiscal year
A note on the first example query (consolidated annual revenue for NVDA). Each 10-K also reports prior years as comparatives, and the card says restatements appear as later filings rather than corrections, so the query can return more than one value for the same period end: the original and later comparatives, which differ after a restatement or reclassification, with nothing in the row to say which filing each came from. Matching through the Report, (r:Report)-[:REPORT_HAS_FACT]->(f), and returning r.filing_date makes the choice explicit: the earliest filing for "as first reported", the latest filing on or before a date for "as known then", which is what a backtest needs. Separately, since superseded snapshots are removed, anyone who needs to reproduce a result later should keep their own copy of the snapshot they used.
Thanks, you're right. Each 10-K carries the prior years as comparatives, so that query returns one row per filing that reports the period (NVDA's FY2024 revenue comes back three times), and nothing in the row says which filing it came from. NVDA's figures happen to agree, but a restated period would show two values with no way to tell them apart.
I've changed the example to go through the Report, as you suggested, and return the form, filing date and accession number. There's also a note on choosing: the earliest filing for "as first reported", and the latest filing on or before a date for "as known then". The Versioning section now also says to keep your own copy of a snapshot if you need to reproduce a result, since superseded snapshots are removed. The card updates with the next snapshot.