view_election (view)
Data source: ParlGov · About: simonw/parlgov-datasette
7 rows where "election_date" is on date 2011-05-22
This data as json, CSV (advanced)
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CYP | Cyprus | parliament | 2011-05-22 | 34.28 | 20 | 56 | DISY | Dimokratikós Sinayermós | Democratic Rally | 8.6842 | 51 | 701 | 556 | 908 | 1575 |
CYP | Cyprus | parliament | 2011-05-22 | 32.67 | 19 | 56 | AKEL | Anorthotikó Kómma Ergazómenou Laoú | Progressive Party of Working People | 1.0526 | 51 | 701 | 556 | 908 | 572 |
CYP | Cyprus | parliament | 2011-05-22 | 15.76 | 9 | 56 | DIKO | Dimokratikó Kómma | Democratic Party | 5.1316 | 51 | 701 | 556 | 908 | 851 |
CYP | Cyprus | parliament | 2011-05-22 | 8.93 | 5 | 56 | EDEK | Kinima Sosialdimokraton EDEK | Movement for Social Democracy EDEK | 3.2895 | 51 | 701 | 556 | 908 | 945 |
CYP | Cyprus | parliament | 2011-05-22 | 3.88 | 2 | 56 | EK | Evropaiko Komma | European Party | 6.0 | 51 | 701 | 556 | 908 | 491 |
CYP | Cyprus | parliament | 2011-05-22 | 2.21 | 1 | 56 | KOP | Kinima Oikologoi Perivallontistoi | Ecological and Environmental Movement | 5.7895 | 51 | 701 | 556 | 908 | 1621 |
CYP | Cyprus | parliament | 2011-05-22 | 1.08 | 0 | 56 | ELAM | Ethniko Laiko Metopo | National Popular Front | 8.8 | 51 | 701 | 556 | 908 | 1768 |
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;