view_election (view)
Data source: ParlGov · About: simonw/parlgov-datasette
13 rows where "election_date" is on date 2005-02-08
This data as json, CSV (advanced)
Suggested facets: election_date (date)
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DNK | Denmark | parliament | 2005-02-08 | 29.0 | 52 | 179 | V | Venstre | Liberal Party | 7.292 | 21 | 563 | 632 | 482 | 1605 |
DNK | Denmark | parliament | 2005-02-08 | 25.8 | 47 | 179 | Sd | Socialdemokraterne | Social Democrats | 3.8011 | 21 | 563 | 632 | 482 | 1629 |
DNK | Denmark | parliament | 2005-02-08 | 13.3 | 24 | 179 | DF | Dansk Folkeparti | Danish Peoples Party | 8.2269 | 21 | 563 | 632 | 482 | 1418 |
DNK | Denmark | parliament | 2005-02-08 | 10.3 | 18 | 179 | KF | Konservative | Conservatives | 7.2186 | 21 | 563 | 632 | 482 | 590 |
DNK | Denmark | parliament | 2005-02-08 | 9.2 | 17 | 179 | RV | Det Radikale Venstre | Danish Social Liberal Party | 4.8736 | 21 | 563 | 632 | 482 | 211 |
DNK | Denmark | parliament | 2005-02-08 | 6.0 | 11 | 179 | SF | Socialistisk Folkeparti | Socialist Peoples Party | 2.1347 | 21 | 563 | 632 | 482 | 1644 |
DNK | Denmark | parliament | 2005-02-08 | 3.4 | 6 | 179 | En-O | Enhedslisten – De Rød-Grønne | Red-Green Alliance | 0.8912 | 21 | 563 | 632 | 482 | 306 |
DNK | Denmark | parliament | 2005-02-08 | 1 | 179 | IA | Inuit Ataqatigiit | Community of the People | 1.3 | 21 | 563 | 632 | 482 | 1891 | |
DNK | Denmark | parliament | 2005-02-08 | 1 | 179 | Si | Siumut | Forward (Greenland) | 3.3 | 21 | 563 | 632 | 482 | 74 | |
DNK | Denmark | parliament | 2005-02-08 | 1 | 179 | FF | Hin føroyski fólkaflokkurin – radikalt sjálvstýri | People's Party (Faroe Islands) | 7.4 | 21 | 563 | 632 | 482 | 2574 | |
DNK | Denmark | parliament | 2005-02-08 | 1 | 179 | T | Tjóðveldi | Republic (Faroe Islands) | 1.3 | 21 | 563 | 632 | 482 | 2568 | |
DNK | Denmark | parliament | 2005-02-08 | 1.7 | 0 | 179 | KrF | Kristeligt Folkeparti | Christian People's Party | 5.6982 | 21 | 563 | 632 | 482 | 1331 |
DNK | Denmark | parliament | 2005-02-08 | 1.0 | 0 | 179 | CD | Centrumdemokraterne | Centre Democrats | 5.5609 | 21 | 563 | 632 | 482 | 1324 |
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;