# Qipu data: San Francisco > Qipu data is an open catalogue of San Francisco public records read from scans held by the Internet Archive: what the Board of Supervisors decided from 1906 on and how each supervisor voted, plus statements and money tables from city reports. The records are tables of small rows (decisions, votes, claims, figures), and every row names the source it was read from: 87% of decision rows and 76% of facts link to the exact scanned page, and the rest open the volume, a page that may be one or two off, or a City record. The rows were read by language models and by rules, they contain errors, and a person has checked 100 of them at random (88 of the 94 that could be judged were right, 4 wrong); the facts are released CC0. How it is made: most of the text is the OCR the Internet Archive publishes with each scan, and pages that hold tables are read again from the page image by an open OCR model, Unlimited-OCR-2. Claude Haiku 5.5 reads the pages into decisions and claims (roll calls are found by rules), Claude Sonnet 5.5 cleans the tables against their scan, and code checks each quote against its page and each printed total against its parts. [Method](https://data.qipu.org/usa/san-francisco/docs/method/). Measured costs: reading a Board page into decisions costs $1.24 per 1,000 pages (Claude Haiku 5.5 at batch prices, on the 40-page test set); OCR of table pages $0.21 per 1,000 pages, at 15 to 18 pages a minute on one rented RTX 3090 GPU; cleaning a table against its scan about $0.027 a table at batch prices (the Controller's 558 tables) ([Cost and scale](https://data.qipu.org/usa/san-francisco/docs/method/#scale)). Everything is static files: no key, no sign-up. Nothing here needs JavaScript. If you can only fetch URLs, use the checked answers and the per-person or per-place JSON. If you can run code, query the Parquet files over HTTP with DuckDB. ## Start here - [datapackage-index.json](https://data.qipu.org/usa/san-francisco/datapackage-index.json): every file in one short list (name, URL, rows, bytes, one line each); read it before the full datapackage.json. - [Checked answers, Ask the tables (HTML)](https://data.qipu.org/usa/san-francisco/ask/tables/#checked): nine questions with a checked answer, readable without JavaScript, at #eq1906 #ggbridge #milk_allies #kopp_noes #split_decade #taxrate #taxrate_cross #dept1938 #airport_rev. - [The same nine as JSON](https://data.qipu.org/usa/san-francisco/ask/tables/ask_pinned.json): one object keyed by the question text, each `{id, q, answer, sql, cols, rows, hash, release, checked, scans, limits, chart}`. - [Checked answers, agent Ask (HTML)](https://data.qipu.org/usa/san-francisco/ask/#checked): six questions answered by the agent over the city reports and the Board record; each saved answer opens at once at `https://data.qipu.org/usa/san-francisco/ask/?q=&saved=1`. - [The same six as JSON](https://data.qipu.org/usa/san-francisco/ask/ask_examples.json): `{note, answers: [{id, url, question, checked, answer, lines: [{date, text, scans}], figures: [{what, value, period, page_url, check}], sources: [{page_url, label}], model}]}`. - A new question needs a browser: the agent Ask takes one to four minutes and costs the site up to $1; the tables Ask writes SQL in a few seconds; the browser runs it, or you run it yourself (see Ask below). - [City reports, one page per report](https://data.qipu.org/usa/san-francisco/reports/): 458 San Francisco government reports, each page showing the statements read as full sentences (8,086 of the 16,040 in `igs_claims`), readable without JavaScript, at `https://data.qipu.org/usa/san-francisco/reports//`; the slug is the report's archive.org identifier in lower case, and a statement's anchor is `#s-` + the first 12 hex digits of its `claim_id`. [reports/index.json](https://data.qipu.org/usa/san-francisco/reports/index.json) lists every report; `reports/.json` holds one report's row and all its statements with the table's column names, and `shown` says which ones the page shows. - [Method](https://data.qipu.org/usa/san-francisco/docs/method/): how pages and tables are read, what was measured, what is not done. - [For agents and developers](https://data.qipu.org/usa/san-francisco/docs/data/#agents): this guide as a page, with the Ask service. - [datapackage.json](https://data.qipu.org/usa/san-francisco/datapackage.json): every file with its URL, size and sha256; columns and types of the main tables (Frictionless Data Package). - [dataset.jsonld](https://data.qipu.org/usa/san-francisco/dataset.jsonld): schema.org DataCatalog and Datasets, every Parquet table as a distribution. - [llms-full.txt](https://data.qipu.org/llms-full.txt): the column lists of the main tables with the meaning of each column. ## State of the releases - The site pages describe release v0.9.2 of 21 November 2026, the release `https://tiles.qipu.org/data/latest.json` names. The queries below were run on its files on 21 November 2026. - The per-entity JSON under `https://tiles.qipu.org/data/sf/` is built from v0.9.2 too (each file says so in `release`). - Some site pages are still built from earlier releases and say so in their header: 33 organisation pages in the older graph template, and 63 organisation pages of v0.7.1 for organisations no decision is about, and four place pages of v0.7.1 that the place index lists. A number on them can differ from the files; the files are the release. The other 1,277 such pages of v0.7.1 now hold a short notice that the release has no page for the organisation, and so do 161 old place pages; 205 old place data files hold no records. The supervisors' pages, the record and entity pages (ballot measures; organisations, projects, places, laws and events under `graph/`), and the place pages and the place app are built from v0.9.2, and the graph pages take their decision lines from v0.9.2 (their links and counts are those of 20 October 2026); the supervisors' pages count votes by the rule below. - Say which release a number comes from. ## Files - [One Parquet file per table](https://tiles.qipu.org/data/releases/v0.9.2/manifest.json): `https://tiles.qipu.org/data/releases/v0.9.2/parquet/{table}.parquet`. 58 tables; the manifest lists every file with size and sha256. HTTP range requests work. - [SQLite, all public tables](https://tiles.qipu.org/data/releases/v0.9.2/qipu_sf.db): 5.22 GB. - [CSV folder](https://tiles.qipu.org/data/releases/v0.9.2/csv/CSV_MANIFEST.json): `https://tiles.qipu.org/data/releases/v0.9.2/csv/{file}`; the manifest lists the files (decisions.csv, votes.csv, roll_calls.csv, pages.csv, sources.csv, places_core.csv, and claims by kind and decade as .csv.gz). The folder itself has no listing. - Per-entity JSON: `https://tiles.qipu.org/data/sf/{kind}/{slug}`, for example [sf/person/harvey-milk](https://tiles.qipu.org/data/sf/person/harvey-milk) (0.5 MB) or [sf/place/street/haight-st](https://tiles.qipu.org/data/sf/place/street/haight-st). A person file holds every vote as a row (`votes_columns`, `votes`). Files of long-serving supervisors are large (Quentin L. Kopp: 7.8 MB). The slug is the end of the id: `qipu:sf/person/quentin-l-kopp`. Look ids up in [the people list](https://data.qipu.org/usa/san-francisco/explore/people/) or in `persons.parquet` (`person_id`, `display_name`). In a person JSON, `votes` says yes / no / absent where `x_roll_call_votes.vote` says aye / no / absent (`vote_words` gives the mapping). The top of each person file carries `release`, `votes_rule`, `vote_words`, `votes_total` and `votes_by_year`, before the `votes` rows. `votes_rule` reads: "one vote per printed roll call that names this person, as x_roll_call_votes holds them with repeat readings of the same roll call left out (x_roll_calls.duplicate_of is null); a roll call attached to the wrong item still counts once, under that item". So a supervisor's totals per year can be read without the `votes` array: for every supervisor they sit in the first 2 KB of the file (send `Range: bytes=0-2047`; the longest, Warren Shannon's, end at byte 1,801). - Per-record JSON is cached: tiles.qipu.org keeps a copy at the edge for up to seven days (the cache is cleared when a release is published), and a browser may keep its own copy for up to four hours; data.qipu.org/sf/... is not cached at the edge. Each document names its release at the top, so check it. - Which URL gives JSON: `https://tiles.qipu.org/data/sf/{kind}/{slug}` returns the JSON whatever the request asks for. `https://data.qipu.org/sf/{kind}/{slug}` answers by the request's Accept header: with no Accept header, `*/*`, `application/json` or `application/ld+json` it returns the JSON; when the Accept header includes `text/html`, as a browser's and many fetch tools' do, it answers 303 and sends you to the record's page on this site. Use the tiles URL, or send `Accept: application/json`. - [Table pages](https://data.qipu.org/usa/san-francisco/datasets/decisions/): `https://data.qipu.org/usa/san-francisco/datasets/{table}/` describes one table and its columns. Prefer these to the full data dictionary, which is about 0.3 MB. - [Controller's annual reports 1932–1979](https://tiles.qipu.org/data/datasets/sf-controller-reports/2026-11-24/README.md): `https://tiles.qipu.org/data/datasets/sf-controller-reports/2026-11-24/sfctl_{values,series,tables}.parquet` (and `.csv`). 4,763 tables, 141,060 printed figures, each with `scan_url`. - [Statements from city reports (IGS collection)](https://tiles.qipu.org/data/datasets/igs-claims/2026-11-20/README.md): `https://tiles.qipu.org/data/datasets/igs-claims/2026-11-20/igs_claims.parquet` (and `.csv`). 15,893 statements from 458 government reports, 1904 to 2021, each with `page_url` and a quote found on its page (`quote_check`: 15,526 exact, 367 close). The release also has an `igs_claims` table (16,040 rows) with other columns. If a request is refused (HTTP 403): requests that carry Python urllib's default User-Agent header (`Python-urllib/3.x`, which pandas also sends for URLs) are refused. python-requests, DuckDB, curl and browsers are not. With urllib or pandas, set a User-Agent header (tested 20 November 2026): ``` import urllib.request, json req = urllib.request.Request("https://tiles.qipu.org/data/latest.json", headers={"User-Agent": "my-research-script/1.0"}) print(json.load(urllib.request.urlopen(req))["version"]) # v0.9.2 from 21 November 2026 import pandas as pd df = pd.read_csv("https://tiles.qipu.org/data/datasets/sf-controller-reports/2026-11-24/sfctl_tables.csv", storage_options={"User-Agent": "my-research-script/1.0"}) # 4,763 rows ``` ## The main tables - `decisions`: one row per reading of a printed item (756,856 rows for 556,528 items in v0.9.2). `date`, `kind`, `plain_best` (one-line summary written by a model), `outcome_best`, `decision_group`, `source_url` (the scan page). - `x_roll_calls`: one row per printed roll call (`rollcall_id`, `year`, `date`, `duplicate_of`, `counts_match`, `page_url`); `counts_match` is true when every printed count (ayes, noes, absent) equals the number of names read from that roll call (150,253 of the 166,328 roll calls that are not repeats, 90%). `x_roll_call_votes`: one row per name on a roll call (`rollcall_id`, `person_id`, `vote`: aye, no, absent, excused). - `claims`: one statement per row (`subject_id`, `property`, `value_text`, `rank`, `licence`, `page_id`, `page_url`, `quote`). `persons`, `places`, `instruments`, `sources`, `pages` describe the things the rows point to. ## Counting rules - Decisions: `count(DISTINCT decision_group)`, never `count(*)`. An item read by more than one pass has more than one row. - Votes: count rows of `x_roll_call_votes` joined to `x_roll_calls` where `duplicate_of IS NULL`. By this rule Harvey Milk voted No 232 times in 1978, in v0.8.0 and in v0.9.2 (run 21 November 2026). Without the `duplicate_of` filter the count is 235. His page on the site and his JSON file show 232 too. 210 is the count of his preferred vote claims in `claims`, which leaves out the votes on roll calls attached to the wrong item. - Vote claims (`claims` where `property = 'voted'`): do not use them for counts per supervisor; use `x_roll_call_votes` as above. Use preferred vote claims (`rank = 'preferred'`) only for a decision's own vote. Counts over preferred vote claims run low; see the misplaced roll calls below. - Roll calls go from 1906 to 1998 in print. The Board had 18 members until 1931 and 11 after, so compare shares, not counts. ## Worked queries All four were run with DuckDB 2.0 on 21 November 2026, on the files of v0.9.2, and returned the results shown. One supervisor's votes in one year (Kopp, 1980: aye 1,455, absent 663, no 330, excused 1): ``` SELECT v.vote, count(*) AS n FROM 'https://tiles.qipu.org/data/releases/v0.9.2/parquet/x_roll_call_votes.parquet' v JOIN 'https://tiles.qipu.org/data/releases/v0.9.2/parquet/x_roll_calls.parquet' r USING (rollcall_id) WHERE v.person_id = 'qipu:sf/person/quentin-l-kopp' AND r.year = 1980 AND r.duplicate_of IS NULL GROUP BY 1 ORDER BY 2 DESC; ``` A decision by date and keyword (one row: a resolution, passed, "Congress urged to pass a preliminary survey to test whether a Golden Gate bridge is practicable", scan page n1070 of the 1918 Journal): ``` SELECT date, kind, outcome_best, plain_best, decision_group, source_url FROM 'https://tiles.qipu.org/data/releases/v0.9.2/parquet/decisions.parquet' WHERE date = '1918-11-12' AND plain_best ILIKE '%Golden Gate%' QUALIFY row_number() OVER (PARTITION BY decision_group ORDER BY decision_id) = 1; ``` A Controller series by its label (38 rows: 30 from tables corrected against the scan, 6 from the missed-table pass, which is not yet checked on a sealed sample, and 2 as first read; join `sfctl_tables` on `table_id` and keep `cleaning = 'corrected against the scan'` for checked rows only. The tax rate per $100 of assessed value was 4.04 in 1930-31 and 3.48 in 1933-34): ``` SELECT year, period, amount, scan_url FROM 'https://tiles.qipu.org/data/datasets/sf-controller-reports/2026-11-24/sfctl_series.parquet' WHERE entity = 'Total Levy' AND unit = 'number' AND NOT duplicate ORDER BY year; ``` A claim to its scanned page (returns https://archive.org/details/journalofproceed43sanfrich/page/n13): ``` SELECT c.claim_id, c.property, c.value_text, c.rank, c.page_id, 'https://archive.org/details/' || split_part(c.page_id, ':', 1) || '/page/n' || p.display_n AS scan FROM 'https://tiles.qipu.org/data/releases/v0.9.2/parquet/claims.parquet' c JOIN 'https://tiles.qipu.org/data/releases/v0.9.2/parquet/pages.parquet' p USING (page_id) WHERE c.claim_id = 'c:e9c231a38c1e469f0946fb2a82ccea1d'; ``` ## From a row to its scan - `page_id` is `{identifier}:{leaf}`: the archive.org item and the leaf number of the image in the scan. - The link is `https://archive.org/details/{identifier}/page/n{display_n}`. `display_n` is the page's index in the archive.org viewer and is usually a little lower than the leaf; take it from `pages` (or from `claims.display_n`). Do not put the leaf in the link. - Most tables already carry the finished link: `claims.page_url`, `decisions.source_url`, `x_roll_calls.page_url`, `sfctl_values.scan_url`. - Read the scan before you quote a row. The one-line summaries are written by a model. ## Known faults - Accuracy of published facts: in October 2026, 400 facts of every kind, drawn after the public-copy filter was applied to a build that was not released, were read against their pages: 13.9% were wrong or partly wrong, and 13.5% on the v0.9 candidate; the kinds of fact behind most errors are no longer in the public copy. On 20 November 2026, 400 claims read from scans in this release (drawn from its candidate; all 400 are in the published files, unchanged) were checked on a sealed sample: 25 of the 399 that could be judged were wrong or partly wrong, 6.3% (95% interval 4.3–9.1%, best read as the low end). Outcome claims are the weakest kind measured (9 of 50, about 1 in 5, wrong or partly wrong) and votes the strongest (8 of 265, 3.0%). A person checked 100 claims at random: 88 of the 94 that could be judged were right, 2 partly right, 4 wrong. - Misplaced roll calls: 11,385 printed roll calls are attached to the item before the one they belong to (being fixed). Votes per supervisor are right when each printed roll call is counted once (the rule above). What is wrong is the item: the item before shows two roll calls and the item they belong to shows none. Vote claims on these roll calls are never the preferred reading, so counts over preferred vote claims leave them out and run low. Example: on 5 January 1948, Resolution 7122 (airport bonds) also carries the roll call of Resolution 7124 (sewer bonds), https://archive.org/details/journalofproceed43sanfrich/page/n13. - Repeated readings: one printed item can have several rows in `decisions` and one roll call can be stored twice. Use the counting rules above. - Licences: from v0.9.2, `claims` holds only the CC0 core (CC0, PDDL, public domain). The 184 claims under CC BY are in `https://tiles.qipu.org/data/releases/v0.9.2/open_attrib/claims_cc_by.parquet`, with the credit for each source in `open_attrib/ATTRIBUTION.md`; 13,249 claims under other terms are not published. - Text after 1951: the Parquet files carry the summaries of records dated after 1951, with the names of private people masked in sensitive records. The record pages of the site show less of that text than the files hold. - Summaries can be wrong where the row is right, for example a tax rate turned into "2026 dollars". Money totals from `decisions.amounts` are partial: the column is filled on a minority of rows. - Controller tables: the `cleaning` column says how far each table was checked. 519 tables are `corrected against the scan`, 61 are `checked against the scan: right as first read`, 384 are `read from the scan in the missed-table pass` (1,463 of their 1,525 printed totals add up; not yet checked on a sealed sample), and the other 3,799 are `first read` (counted in `sfctl_tables.parquet` of the 2026-11-24 edition). In a sealed sample of 60 corrected money tables, 18 were fully right before the correction and 58 after; the sample covers the corrected tables only. Tax-rate tables now run from 1930 to 1979; those of 1977–79 are laid out differently, so check the scan. Pages printed sideways with no archive text may still hide a table. Labels vary between reports, so match loosely. - IGS statements: only 20 pages of each report were read. Each row's quote was found on its page; the summary beside it is written by a model. ## Ask - [POST https://data.qipu.org/api/ask](https://data.qipu.org/usa/san-francisco/datasets/#ask): body `{"q": "{question, 3 to 300 characters}"}`. It returns one read-only SQL query and a note, not an answer and not rows; you run the SQL yourself on the Parquet files. There is no GET form (GET returns 405). Each call spends model money: 6 questions a minute and 60 a day per address, and a sitewide cap of $10 a day, after which it returns 429 until midnight UTC. Use the checked answers first. ## Licence and citation - Facts read from public records: CC0 1.0. The scans keep their holders' rights; link to them. - Cite the page for a fact: San Francisco Board of Supervisors, Journal of Proceedings, 1918, https://archive.org/details/journalofproceed1918sanfrich/page/n1070. - Cite the dataset: Qipu (2026). San Francisco public records, release v0.9.2 [data set]. 21 November 2026. https://data.qipu.org/usa/san-francisco/. CC0 1.0. ## What is published - [The release files and their manifest](https://tiles.qipu.org/data/releases/v0.9.2/manifest.json) (size and sha256 of every file), [every release](https://tiles.qipu.org/data/releases.json), and [the changelog](https://tiles.qipu.org/data/releases/v0.9.2/CHANGELOG.md). - How the release was made: [runs](https://tiles.qipu.org/data/releases/v0.9.2/parquet/runs.parquet) (45 runs with model, pages and cost; [table page](https://data.qipu.org/usa/san-francisco/datasets/runs/)), [field_scores](https://tiles.qipu.org/data/releases/v0.9.2/parquet/field_scores.parquet) (36 measured scores; [table page](https://data.qipu.org/usa/san-francisco/datasets/field_scores/)). - [Controller tables, edition 2026-11-24](https://tiles.qipu.org/data/datasets/sf-controller-reports/2026-11-24/README.md) and [IGS statements, 2026-11-20](https://tiles.qipu.org/data/datasets/igs-claims/2026-11-20/README.md). - The checked answers: [Ask the tables](https://data.qipu.org/usa/san-francisco/ask/tables/#checked) and [agent Ask](https://data.qipu.org/usa/san-francisco/ask/#checked) (JSON links under Start here). - Not published: the code of the pipeline, the working copy with the unmasked text, the checkers' transcripts and the sealed samples' claim lists. There is no DOI and no deposit in a repository ([Stability](https://data.qipu.org/usa/san-francisco/docs/changelog/#stability)). ## Optional - [Data model](https://data.qipu.org/usa/san-francisco/docs/data-dictionary/#data-model): claims, ids, tables, how a row gets to its scan. - [Datasets](https://data.qipu.org/usa/san-francisco/datasets/): every dataset with source, coverage, licence, quality, downloads. - [Documentation](https://data.qipu.org/usa/san-francisco/docs/): the guide for people. - [Accuracy](https://data.qipu.org/usa/san-francisco/docs/accuracy/): what was measured and how. - [Known limits](https://data.qipu.org/usa/san-francisco/docs/accuracy/#known-limits) - [Privacy](https://data.qipu.org/usa/san-francisco/docs/privacy/): names of private people are withheld in sensitive records. - [Corrections and takedown](https://data.qipu.org/usa/san-francisco/docs/corrections/) - [Changelog of the release](https://tiles.qipu.org/data/releases/v0.9.2/CHANGELOG.md)