home / psephology

result_summaries

Data license: Open Parliament Licence · Data source: UK Parliament election results website

7 rows where to_political_party_id = 3

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: is_from_commons_speaker

id ▼ short_summary summary is_from_commons_speaker is_from_independent is_to_commons_speaker is_to_independent from_political_party_id to_political_party_id
1 Lab hold Labour hold 0 0 0 0 Labour 3 Labour 3
12 Lab gain from LD Labour gain from Liberal Democrats 0 0 0 0 Liberal Democrat 4 Labour 3
14 Lab gain from Con Labour gain from Conservatives 0 0 0 0 Conservative 1 Labour 3
30 Lab gain from SNP Labour gain from SNP 0 0 0 0 Scottish National Party 11 Labour 3
43 Lab gain from Res Labour gain from Respect Party 0 0 0 0 Respect Party 35 Labour 3
44 Lab gain from BGPV Labour gain from Blaenau Gwent People's Voice 0 0 0 0 Blaenau Gwent People's Voice 193 Labour 3
48 Lab gain from Spk Labour gain from Speaker 1 0 0 0   Labour 3

Advanced export

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

CSV options:

CREATE TABLE "result_summaries" (
   [id] INTEGER PRIMARY KEY,
   [short_summary] TEXT,
   [summary] TEXT,
   [is_from_commons_speaker] INTEGER,
   [is_from_independent] INTEGER,
   [is_to_commons_speaker] INTEGER,
   [is_to_independent] INTEGER,
   [from_political_party_id] INTEGER REFERENCES [political_parties]([id]),
   [to_political_party_id] INTEGER REFERENCES [political_parties]([id])
);
CREATE INDEX [idx_result_summaries_to_political_party_id]
    ON [result_summaries] ([to_political_party_id]);
CREATE INDEX [idx_result_summaries_from_political_party_id]
    ON [result_summaries] ([from_political_party_id]);
Powered by Datasette · Queries took 10.897ms · Data license: Open Parliament Licence · Data source: UK Parliament election results website