home / cp40x

names

5 rows where case_id = 2358127

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, forename, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
5004220 2358127 2358127 plaintiff Pontefract William prior of St John Evangelist, in   Pontefract, William, prior of St John Evangelist, in 0
5004221 2358127 2358127 defendant Burley William chapman 678339 678339 Burley, William, of Pontifract, chapman 0
5004222 2358127 2358127 defendant Hare John chaplain 678339 678339 Hare, John, of Pontifract, chaplain 1
5004223 2358127 2358127 defendant Blakall William tailor 678339 678339 Blakall, William, of Pontifract, tailor 2
5004224 2358127 2358127 defendant Danby William smith 678339 678339 Danby, William, of Pontifract, smith 3

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE names (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    case_id INTEGER NOT NULL REFERENCES cases(id) ON DELETE CASCADE,
    role TEXT NOT NULL CHECK (role IN ('plaintiff', 'defendant')),
    surname TEXT NOT NULL,
    forename TEXT,
    occupation TEXT,
    place_id INTEGER REFERENCES places(id),
    raw_segment TEXT NOT NULL,
    seq INTEGER NOT NULL DEFAULT 0
);
CREATE INDEX idx_names_case_id ON names(case_id);
CREATE INDEX idx_names_surname ON names(surname);
CREATE INDEX idx_names_place_id ON names(place_id);
CREATE INDEX idx_names_role_surname ON names(role, surname);
Powered by Datasette · Queries took 12.755ms