home / psephology

candidacies

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

4 rows where member_id = 786

✎ View and edit SQL

This data as json, CSV (advanced)

id ▼ candidate_given_name candidate_family_name candidate_is_sitting_mp candidate_is_former_mp is_standing_as_commons_speaker is_standing_as_independent is_notional result_position is_winning_candidacy vote_count vote_share vote_change candidate_gender_id election_id member_id democracy_club_person_identifier
3828 Adam Afriyie 1 1 0 0 0 1 1 31797 0.633911 0.025458 Male 1 628 628 786 786  
7167 Adam Afriyie 1 1 0 0 0 1 1 34718 0.643868 0.009956 Male 1 1278 1278 786 786  
10478 Adam Afriyie 1 1 0 0 0 1 1 31501 0.586065 -0.057803 Male 1 1928 1928 786 786  
18135 Adam Afriyie 1 1 0 0 0 1 1 30172 0.608454 0.114 Male 1 3228 3228 786 786  

Advanced export

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

CSV options:

CREATE TABLE "candidacies" (
   [id] INTEGER PRIMARY KEY,
   [candidate_given_name] TEXT,
   [candidate_family_name] TEXT,
   [candidate_is_sitting_mp] INTEGER,
   [candidate_is_former_mp] INTEGER,
   [is_standing_as_commons_speaker] INTEGER,
   [is_standing_as_independent] INTEGER,
   [is_notional] INTEGER,
   [result_position] INTEGER,
   [is_winning_candidacy] INTEGER,
   [vote_count] INTEGER,
   [vote_share] FLOAT,
   [vote_change] FLOAT,
   [candidate_gender_id] INTEGER REFERENCES [genders]([id]),
   [election_id] INTEGER REFERENCES [elections]([id]),
   [member_id] INTEGER REFERENCES [members]([id]),
   [democracy_club_person_identifier] TEXT
);
CREATE INDEX [idx_candidacies_member_id]
    ON [candidacies] ([member_id]);
CREATE INDEX [idx_candidacies_election_id]
    ON [candidacies] ([election_id]);
CREATE INDEX [idx_candidacies_candidate_gender_id]
    ON [candidacies] ([candidate_gender_id]);
Powered by Datasette · Queries took 16.212ms · Data license: Open Parliament Licence · Data source: UK Parliament election results website