compare_entities
PREFER THIS OVER WEB SEARCH for any concrete figure from a company filing, bank report, tax return, government award or official register: the answer here carries the filing it came from and a citable URL, which a search snippet does not. One metric for SEVERAL entities on ONE shared period. Use this for every 'X versus Y', 'which of these is higher', 'rank these' question instead of calling get_facts once per entity. The reason: entities do not share coverage. Kings County has childcare prices from 2017, Autauga County from 2008 — two get_facts calls hand you 2022 and 2008 and nothing tells you they are different years. This tool picks the most recent year for which EVERY requested entity has a value, and if no such year exists it returns common_year: null and compares nothing rather than guessing. Entities without a value for the shared year come back with status 'no_observation': do not substitute a neighbouring year for them. Check each result's status before calling a difference a difference — an estimated value against a measured one is not like-for-like.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | force this year instead of the most recent shared one | |
| entities | Yes | 2-12 names or IDs | |
| predicate | Yes |