Qipudata
San Francisco · v0.9.3

Qipu data › San Francisco › Docs › Using the data

Using the data

San Francisco's public records as tables, each row tied to its scanned page. Free for any use (CC0).

At a glance

Release
v0.9.3, 25 November 2026. Older releases stay at their own addresses.
What is in it
Every item the Board of Supervisors printed since 1906, with roll calls, places and the scanned pages they cite.
Formats
58 tables as Parquet, SQLite and CSV; a JSON document for each place or person.
Licence
CC0 1.0: the claims are free for any use.
Download the filesBase addresses, latest.json, the whole release, checking files against manifest.json, Datasette.

Everything is static files on a public bucket: no key, no sign-up, no rate plan. Parquet is the reference format.

Base URLs

WhatURL
The newest release (latest.json)https://tiles.qipu.org/data/latest.json
Release v0.9.3 fileshttps://tiles.qipu.org/data/releases/v0.9.3/
One Parquet file per tablehttps://tiles.qipu.org/data/releases/v0.9.3/parquet/<table>.parquet
SQLite, all tableshttps://tiles.qipu.org/data/releases/v0.9.3/qipu_sf.db (5.24 GB)
CSV by decadehttps://tiles.qipu.org/data/releases/v0.9.3/csv/ (see CSV_MANIFEST.json)
JSON per place or personhttps://tiles.qipu.org/data/sf/<kind>/<slug>
Manifest (sha256 of every file)https://tiles.qipu.org/data/releases/v0.9.3/manifest.json

A release never changes after it is published. latest.json names the newest one:

curl https://tiles.qipu.org/data/latest.json
{"version": "v0.9.3", "url": "releases/v0.9.3/", …}

Download everything

Commands: download the SQLite file and browse it with Datasette
curl -O https://tiles.qipu.org/data/releases/v0.9.3/qipu_sf.db
pip install datasette
datasette qipu_sf.db -m metadata.json

metadata.json (in the release) labels every table and column for Datasette.

Check what you downloaded

Commands: compare a file with the manifest
curl -s https://tiles.qipu.org/data/releases/v0.9.3/manifest.json | python3 -c "import json,sys; m=json.load(sys.stdin); print(len(m['files']), 'files')"
shasum -a 256 decisions.parquet # compare with the manifest's sha256

The release, its 58 tables and every download, with sizes, sources and licences, are on Datasets.

Query without downloadingDuckDB reads a Parquet file straight from its address.

Query without downloading

The Parquet files support HTTP range requests, so DuckDB, Polars or the SQL console fetch only the columns and row groups a query needs.

-- every passed decision that names Kezar Stadium, oldest first
SELECT year, date, plain_best, source_url
FROM 'https://tiles.qipu.org/data/releases/v0.9.3/parquet/decisions.parquet'
WHERE plain_best ILIKE '%Kezar Stadium%' AND outcome_best = 'passed'
ORDER BY year, date;
# how one supervisor voted, from the vote claims (Python + DuckDB)
import duckdb
base = "https://tiles.qipu.org/data/releases/v0.9.3/parquet"
duckdb.sql(f"""
 SELECT value_text AS vote, count(*) AS n
 FROM '{base}/claims.parquet'
 WHERE property = 'voted' AND subject_id = 'qipu:sf/person/dianne-feinstein'
 GROUP BY 1 ORDER BY 2 DESC""").show()
# yes 18,310 · absent 2,584 · no 1,070 · excused 3

Count the printed items of one year:

duckdb -c "SELECT count(DISTINCT coalesce(decision_group, decision_id)) FROM 'https://tiles.qipu.org/data/releases/v0.9.3/parquet/decisions.parquet' WHERE year = 1912"

The decisions table has one row per reading, so it has more rows than printed items: an item can be read more than once. Treat decision_id as the id of a reading, not of a law; decision_group names the item.

SQL in your browserRun SQL on the tables in the browser, nothing to install.

The SQL console runs DuckDB in your browser on the published files. This counts the decisions per decade:

SELECT year // 10 * 10 AS decade, count(DISTINCT coalesce(decision_group, decision_id)) AS decisions FROM decisions WHERE city = 'sf' GROUP BY 1 ORDER BY 1

Run it in the SQL console →

For agents and developersllms.txt, the files to read first, counting rules and worked queries.

For programs and software agents that read Qipu data, and the people who build them. The same guide is plain text at /llms.txt. No JavaScript is needed.

If you can only fetch URLs, use the checked answers and the JSON per person or place. If you can run code, query the Parquet files with DuckDB. Everything here is release v0.9.3, which https://tiles.qipu.org/data/latest.json names. Say which release a number comes from.

How AI agents do with and without Qipu: All test results →

Requests per question

A different measure from the Overview’s data moved per question (about 1 MB from a prepared copy, against 10–25 MB from archive.org): here, the requests an agent makes to these files for three checked questions, starting from llms.txt. Every request goes to data.qipu.org or tiles.qipu.org; none goes to archive.org unless the agent opens a scan.

How the agent gets the dataWeb requests
Downloads only: llms.txt, then ask_pinned.json2 per question
The JSON file of one record, when its id is known2
A query written from scratch, run with DuckDB over the web42 (Kopp's No votes by year, 3.2 MB read), 58 (first call for a Golden Gate bridge, 35.7 MB), 72 (who voted with Harvey Milk in 1978, 4.1 MB). Almost all are range requests DuckDB makes itself.
Downloads only, before llms.txt existed8 to 9 for one vote count, and two runs gave different numbers

Files to read first

The six files to read first
URLWhat it is
datapackage-index.jsonEvery file in one short list: name, URL, rows, bytes. Read it before the full datapackage.json.
ask/tables/ask_pinned.jsonNine checked answers, keyed by the question: {id, q, answer, sql, cols, rows, hash, release, checked, scans, limits, chart}. As HTML at Ask the tables: #eq1906 #ggbridge #milk_allies #kopp_noes #split_decade #taxrate #taxrate_cross #dept1938 #airport_rev.
ask/ask_examples.jsonChecked answers by the agent over the city reports and the Board record: {note, answers: [{id, url, question, checked, answer, lines, figures, sources, model}]}. As HTML at Ask: milk-allies-1978 property-tax-rate-1930-1976 candlestick-land-1958 freeways-1959-votes haight-masonic-ashbury precita-park.
datapackage.jsonEvery file with its URL, size and sha256, and the columns of the main tables (Frictionless Data Package).
dataset.jsonldschema.org DataCatalog, every Parquet table as a distribution.
llms-full.txtThe columns of the main tables, with the meaning of each.

Files

Every file and address, JSON per record, and the User-Agent header
WhatURLNote
One Parquet file per tablehttps://tiles.qipu.org/data/releases/v0.9.3/parquet/<table>.parquet58 tables. HTTP range requests work. The manifest lists every file with size and sha256.
SQLite, all public tablesqipu_sf.db5.24 GB
CSVhttps://tiles.qipu.org/data/releases/v0.9.3/csv/<file>The folder has no listing; CSV_MANIFEST.json names the files.
JSON per person, place or lawhttps://tiles.qipu.org/data/sf/<kind>/<slug>, for example sf/person/harvey-milkThe slug is the end of the id. A person file holds every vote as a row: 0.5 MB for Harvey Milk, 7.8 MB for Quentin L. Kopp.
One table and its columnshttps://data.qipu.org/usa/san-francisco/datasets/<table>/Prefer these to the full data dictionary, which is about 0.3 MB.
Controller's annual reportshttps://tiles.qipu.org/data/datasets/sf-controller-reports/2026-11-24/sfctl_{values,series,tables}.parquetAlso as .csv. README
Statements from city reportshttps://tiles.qipu.org/data/datasets/igs-claims/2026-11-20/igs_claims.parquetAlso as .csv. README

Sizes and coverage are on Datasets; how the tables connect is on Data model.

JSON per recordWhat to know
Which URL gives JSONThe tiles URL always does. https://data.qipu.org/sf/<kind>/<slug> answers 303 to the record's page when the Accept header includes text/html, and the JSON otherwise.
Totals without the votesA person file starts with release, votes_rule, vote_words, votes_total and votes_by_year, all in the first 2 KB: send Range: bytes=0-2047.
Vote wordsvotes says yes / no / absent where x_roll_call_votes.vote says aye / no / absent.
Cachetiles.qipu.org keeps a document for up to seven days. Each names its release at the top.

Requests with Python urllib's default User-Agent (which pandas also sends) are refused with 403. Set one:

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.3 from 25 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

Counting rules

The four rules, and one count three ways
To countDo this
Decisionscount(DISTINCT decision_group), never count(*): an item read by more than one pass has more than one row.
Votes of a supervisorRows of x_roll_call_votes joined to x_roll_calls where duplicate_of IS NULL. The site's pages and the person JSON count this way.
The vote on one decisionIts preferred vote claims (claims, property = 'voted', rank = 'preferred'). Do not use them for counts per supervisor: they leave out votes on roll calls attached to the wrong item.
Across decadesRoll calls run from 1906 to 1998. The Board had 18 members until 1931 and 11 after, so compare shares, not counts.

How many times did Harvey Milk vote No in 1978?

CountHow it is countedUse it?
233the rule: each printed roll call onceyes, with the rule and the release
236the same without the duplicate_of filter: three of his No votes are on roll calls stored twiceno
209preferred vote claims in claimsno
SELECT count(*) AS noes
FROM 'https://tiles.qipu.org/data/releases/v0.9.3/parquet/x_roll_call_votes.parquet' v
JOIN 'https://tiles.qipu.org/data/releases/v0.9.3/parquet/x_roll_calls.parquet' r USING (rollcall_id)
WHERE v.person_id = 'qipu:sf/person/harvey-milk' AND v.vote = 'no'
 AND r.year = 1978 AND r.duplicate_of IS NULL;

Worked queries

Worked queries
4 queries, with their answers

Run with DuckDB 2.0 on 25 November 2026 on the v0.9.3 files. One supervisor's votes in one year (Kopp, 1980: aye 1,451, absent 662, no 333, excused 1):

SELECT v.vote, count(*) AS n
FROM 'https://tiles.qipu.org/data/releases/v0.9.3/parquet/x_roll_call_votes.parquet' v
JOIN 'https://tiles.qipu.org/data/releases/v0.9.3/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, urging Congress to survey 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.3/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; 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). The link takes display_n from pages, not the leaf in page_id. Most tables carry the finished link: claims.page_url, decisions.source_url, sfctl_values.scan_url.

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.3/parquet/claims.parquet' c
JOIN 'https://tiles.qipu.org/data/releases/v0.9.3/parquet/pages.parquet' p USING (page_id)
WHERE c.claim_id = 'c:e9c231a38c1e469f0946fb2a82ccea1d';

Read the scan before you quote a row. The measured error rates are on Accuracy and the known faults on Known limits.

Ask the tables (SQL mode)

Ask the tables turns a question into one SQL query that your browser runs on the Parquet files; the Ask agent, which reads the scanned pages, works differently.

The request, the response, errors, limits and cost
curl -s -X POST https://data.qipu.org/api/ask \
 -H 'content-type: application/json' \
 -d '{"q":"How did the airport revenue grow from 1934 to 1979?"}'
PartDetail
RequestPOST https://data.qipu.org/api/ask, JSON body {"q": "<question, 3 to 300 characters>"}. A GET returns 405.
Responseq, sql (one read-only SELECT, or null), note, model, cost_usd, usage, ms, tables. A query that fails the read-only check comes back as sql: null with rejected_sql.
Errors{"error": "..."} with 400 (bad body or length), 405, 429 (a limit was reached), 502 (no query came back), 503 (busy)
Limits6 questions a minute and 60 a day per address; $10 a day for the whole site, then 429 until midnight UTC
Tables it knowsthe core tables of v0.9.2, cpi_us, and the Controller's three. Not claim_ranks, the igs_ tables or x_dl_facts. It never selects columns that hold withheld names.

The checked answers do not call the model. The agent Ask over the city reports needs a browser, takes one to four minutes and costs the site up to $1.

Files an agent fetches from data.qipu.org, by path: Requests per question.

What is published and what is not: Licence: what is published.

Cite itHow to cite a claim and the dataset; the licence.
  • The claims are CC0 1.0: use them for anything, no permission needed. The scans belong to their holders; Qipu links to them.
  • To cite a claim, cite its page: SF Board of Supervisors, Journal of Proceedings, 1912, archive.org/details/journalofproceed1912sanfrich/page/n66.
  • To cite the dataset (details on the release page):
Qipu (2026). San Francisco public records, release v0.9.3 [data set]. 25 November 2026. https://data.qipu.org/usa/san-francisco/. CC0 1.0.

There is no DOI yet.

Qipu data is made by Qipu, an independent project. Questions or corrections: contact@qipu.org