home / psephology

elections

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

14 rows where result_summary_id = 5

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: polling_on, invalid_vote_count, constituency_group_id, general_election_id, parliament_period_id, writ_issued_on, polling_on (date), declaration_at (date), writ_issued_on (date)

id ▼ polling_on is_notional valid_vote_count invalid_vote_count majority declaration_at constituency_group_id general_election_id result_summary_id electorate_id parliament_period_id writ_issued_on
12 2015-05-07 0 26837 95 3668 2015-05-08T02:17:00 Arfon 12 2 2 5 5 12 12 56 56 2015-03-30
117 2015-05-07 0 39399 61 5599 2015-05-08T02:46:00 Carmarthen East and Dinefwr 117 2 2 5 5 117 117 56 56 2015-03-30
185 2015-05-07 0 28913 65 5261 2015-05-08T03:24:00 Dwyfor Meirionnydd 185 2 2 5 5 185 185 56 56 2015-03-30
662 2017-06-08 0 28208 67 92 2017-06-09T01:59:00 Arfon 12 3 3 5 5 662 662 57 57 2017-05-03
767 2017-06-08 0 41029 45 3908 2017-06-09T01:57:00 Carmarthen East and Dinefwr 117 3 3 5 5 766 766 57 57 2017-05-03
835 2017-06-08 0 30348 67 4850 2017-06-09T02:45:00 Dwyfor Meirionnydd 185 3 3 5 5 834 834 57 57 2017-05-03
1312 2019-12-12 0 29074 92 2781 2019-12-13T01:55:00 Arfon 12 4 4 5 5 1311 1311 58 58 2019-11-05
1417 2019-12-12 0 41002 145 1809 2019-12-13T03:02:00 Carmarthen East and Dinefwr 117 4 4 5 5 1416 1416 58 58 2019-11-05
1424 2019-12-12 0 40105 117 6329 2019-12-13T03:23:00 Ceredigion 124 4 4 5 5 1423 1423 58 58 2019-11-05
1485 2019-12-12 0 29928 128 4740 2019-12-13T02:22:00 Dwyfor Meirionnydd 185 4 4 5 5 1484 1484 58 58 2019-11-05
2717 2010-05-06 0 38011 77 3481 2010-05-07T02:27:00 Carmarthen East and Dinefwr 117 1 1 5 5 2716 2716 55 55 2010-04-12
2785 2010-05-06 0 28906 62 6367 2010-05-07T02:36:00 Dwyfor Meirionnydd 185 1 1 5 5 2784 2784 55 55 2010-04-12
3374 2024-07-04 0 46302 155 14789   Ceredigion Preseli 774 6 6 5 5 3373 3373 59 59 2024-05-30
3434 2024-07-04 0 40395 215 15876   Dwyfor Meirionnydd 834 6 6 5 5 3433 3433 59 59 2024-05-30

Advanced export

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

CSV options:

CREATE TABLE "elections" (
   [id] INTEGER PRIMARY KEY,
   [polling_on] TEXT,
   [is_notional] INTEGER,
   [valid_vote_count] INTEGER,
   [invalid_vote_count] INTEGER,
   [majority] INTEGER,
   [declaration_at] TEXT,
   [constituency_group_id] INTEGER REFERENCES [constituency_groups]([id]),
   [general_election_id] INTEGER REFERENCES [general_elections]([id]),
   [result_summary_id] INTEGER REFERENCES [result_summaries]([id]),
   [electorate_id] INTEGER REFERENCES [electorates]([id]),
   [parliament_period_id] INTEGER REFERENCES [parliament_periods]([id]),
   [writ_issued_on] TEXT
);
CREATE INDEX [idx_elections_parliament_period_id]
    ON [elections] ([parliament_period_id]);
CREATE INDEX [idx_elections_electorate_id]
    ON [elections] ([electorate_id]);
CREATE INDEX [idx_elections_result_summary_id]
    ON [elections] ([result_summary_id]);
CREATE INDEX [idx_elections_general_election_id]
    ON [elections] ([general_election_id]);
CREATE INDEX [idx_elections_constituency_group_id]
    ON [elections] ([constituency_group_id]);
Powered by Datasette · Queries took 14.737ms · Data license: Open Parliament Licence · Data source: UK Parliament election results website