view_election (view)
Data source: ParlGov · About: simonw/parlgov-datasette
10 rows where "election_date" is on date 1992-04-09
This data as json, CSV (advanced)
Suggested facets: vote_share
country_name_short | country_name | election_type | election_date | vote_share | seats | seats_total | party_name_short | party_name | party_name_english | left_right | country_id | election_id | previous_parliament_election_id | previous_cabinet_id | party_id |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GBR | United Kingdom | parliament | 1992-04-09 | 41.9 | 336 | 651 | Con | Conservatives | Conservatives | 7.4261 | 44 | 514 | 490 | 515 | 773 |
GBR | United Kingdom | parliament | 1992-04-09 | 34.9 | 271 | 651 | Lab | Labour Party | Labour | 4.3562 | 44 | 514 | 490 | 515 | 1556 |
GBR | United Kingdom | parliament | 1992-04-09 | 17.8 | 20 | 651 | Lib | Liberals | Liberals | 4.2875 | 44 | 514 | 490 | 515 | 659 |
GBR | United Kingdom | parliament | 1992-04-09 | 0.8 | 9 | 651 | UUP | Ulster Unionist Party | Ulster Unionist Party | 8.3 | 44 | 514 | 490 | 515 | 1210 |
GBR | United Kingdom | parliament | 1992-04-09 | 0.5 | 4 | 651 | Plaid | Plaid Cymru | Plaid Cymru | 3.1183 | 44 | 514 | 490 | 515 | 311 |
GBR | United Kingdom | parliament | 1992-04-09 | 0.5 | 4 | 651 | SDLP | Social Democratic and Labour Party | Social Democratic and Labour Party | 3.3 | 44 | 514 | 490 | 515 | 1023 |
GBR | United Kingdom | parliament | 1992-04-09 | 1.9 | 3 | 651 | SNP | Scottish National Party – Pàrtaidh Nàiseanta na h-Alba | Scottish National Party | 3.5871 | 44 | 514 | 490 | 515 | 1284 |
GBR | United Kingdom | parliament | 1992-04-09 | 0.3 | 3 | 651 | DUP | Democratic Unionist Party | Democratic Unionist Party | 7.4 | 44 | 514 | 490 | 515 | 319 |
GBR | United Kingdom | parliament | 1992-04-09 | 0.1 | 1 | 651 | UPUP | Ulster Popular Unionist Party | Ulster Popular Unionist Party | 44 | 514 | 490 | 515 | 1566 | |
GBR | United Kingdom | parliament | 1992-04-09 | 0.5 | 0 | 651 | GP | Green Party | Green Party | 2.57 | 44 | 514 | 490 | 515 | 467 |
Advanced export
JSON shape: default, array, newline-delimited
CREATE VIEW view_election AS SELECT c.name_short AS country_name_short, c.name AS country_name, ii.short AS election_type, e.date AS election_date, vote_share, seats, seats_total, p.name_short AS party_name_short, p.name AS party_name, p.name_english AS party_name_english, vpp.left_right AS left_right, e.country_id AS country_id, er.election_id AS election_id, e.previous_parliament_election_id AS previous_parliament_election_id, e.previous_cabinet_id AS previous_cabinet_id, er.party_id AS party_id FROM (SELECT * FROM election_result WHERE vote_share NOT NULL OR seats NOT NULL) er LEFT OUTER JOIN election e ON er.election_id = e.id LEFT OUTER JOIN party p ON er.party_id = p.id LEFT OUTER JOIN viewcalc_party_position AS vpp ON er.party_id = vpp.party_id LEFT OUTER JOIN country c ON e.country_id = c.id LEFT OUTER JOIN info_id ii ON e.type_id = ii.id ORDER BY c.name_short, e.date, er.seats DESC;