home / cp40x

names

5 rows where case_id = 2150496

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: role, seq

id ▼ case_id role surname forename occupation place_id raw_segment seq
4359325 2150496 2150496 plaintiff Bannester Henry     Bannester, Henry 0
4359326 2150496 2150496 defendant Byns John yeoman 586573 586573 Byns, John, of Barnesley, yeoman 0
4359327 2150496 2150496 defendant Rishworth Robert yeoman 744165 744165 Rishworth, Robert, of Bernesley, yeoman 1
4359328 2150496 2150496 defendant Horner Thomas of Knaresbrough yeoman   Horner, Thomas of Knaresbrough, yeoman 2
4359329 2150496 2150496 defendant Bothomley Thomas of Highley yeoman   Bothomley, Thomas of Highley, yeoman 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 14.715ms