view_election (view)
Data source: ParlGov · About: simonw/parlgov-datasette
8 rows where "election_date" is on date 1937-10-23
This data as json, CSV (advanced)
Suggested facets: seats, 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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AUS | Australia | parliament | 1937-10-23 | 43.1 | 29 | 75 | ALP | Australian Labor Party | Australian Labor Party | 3.8833 | 33 | 745 | 746 | 1017 | 1253 |
AUS | Australia | parliament | 1937-10-23 | 33.68 | 28 | 75 | UAP | United Australia Party | United Australia Party | 7.4 | 33 | 745 | 746 | 1017 | 1912 |
AUS | Australia | parliament | 1937-10-23 | 11.5 | 12 | 75 | NCP|NPA | National (Country) Party | National Party of Australia | National (Country) Party | National Party of Australia | 7.8222 | 33 | 745 | 746 | 1017 | 184 |
AUS | Australia | parliament | 1937-10-23 | 3.4 | 3 | 75 | VCP | Victorian Country Party | Victorian Country Party | 7.4 | 33 | 745 | 746 | 1017 | 1920 |
AUS | Australia | parliament | 1937-10-23 | 0.7 | 1 | 75 | one-seat | one seat | one seat | 33 | 745 | 746 | 1017 | 2299 | |
AUS | Australia | parliament | 1937-10-23 | 4.2 | 1 | 75 | none | no party affiliation | no party affiliation | 33 | 745 | 746 | 1017 | 1396 | |
AUS | Australia | parliament | 1937-10-23 | 0.71 | 1 | 75 | IUAP-NSW | Independent UAP (NSW) | Independent UAP (NSW) | 33 | 745 | 746 | 1017 | 1941 | |
AUS | Australia | parliament | 1937-10-23 | 2.2 | 0 | 75 | SCP | Social Credit Party | Social Credit Party | 33 | 745 | 746 | 1017 | 1911 |
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;