Skip to content
AIDb

Prime Ministers of the United Kingdom

Every Prime Minister of Great Britain and the United Kingdom since Robert Walpole in 1721, with party, dates in office, predecessor and successor, and dates of birth and death. One row per term of office.

81 rows19 columns Updated Oct 9, 2026 CC0 1.0
Loading all 81 rows…
#

Columns

Stable keys — use them in the API, SQL and code

KeyNameTypeDescription
idStatementstringWikidata statement id of the term (stable row id).
nameNamestringOffice-holder's name.
entityWikidataentityWikidata item for the person.
officeOfficestringThe office held in this term, as named in Wikidata.
office_entityOffice (Wikidata)entityWikidata item for the office.
partyPartystringPolitical party at the start of the term (blank when Wikidata does not make it clear).
party_entityParty (Wikidata)entityWikidata item for the party.
term_startTook officedateStart of the term, at the precision Wikidata records (day, month or year).
term_endLeft officedateEnd of the term; blank for the incumbent or when unknown.
days_in_officeDays in officeinteger · daysLength of the term in days, when both dates are known to the day.
actingActingbooleanTrue when Wikidata marks the term as acting, interim or caretaker.
predecessorPredecessorstringWho this person replaced, as recorded on the term.
predecessor_entityPredecessor (Wikidata)entity—
successorSuccessorstringWho replaced this person, as recorded on the term.
successor_entitySuccessor (Wikidata)entity—
end_causeEnd causestringWhy the term ended (e.g. resignation, death in office), where recorded.
birth_dateBorndateDate of birth.
death_dateDieddateDate of death.
imagePortraitimagePortrait from Wikimedia Commons.

More in Politics & Government

Politics & Government

Every member of the U.S. Congress since 1789

Every person who has served in the U.S. Senate or House of Representatives since the First Congress in 1789, including current members and non-voting delegates, with party, chamber, state, first and last year of service and number of terms. One row per person.

12,770 rows · 11 h ago
Politics & Government

Heads of state of every country, all time

Everyone recorded in Wikidata as holding the head-of-state office of a present-day sovereign state — monarchs, presidents and their historical equivalents — with start and end dates and party. One row per term of office per country.

6,806 rows · 12 h ago
History & Events

Major battles in history

Battles recorded in Wikidata that have articles in at least 10 language editions of Wikipedia, with date, the war each was part of, location, present-day country, coordinates, participants and deaths where recorded. One row per battle.

2,633 rows · 2 d ago
Politics & Government

Party divisions of the U.S. Senate and House since 1789

How many seats each party held in the U.S. Senate and the House of Representatives at the start of every Congress since 1789, from the Senate Historical Office and the House Office of the Historian. One row per chamber per Congress.

238 rows · 2 d ago
Countries & Places

Countries of the world

Every present-day sovereign state with its ISO codes, capital, continent, area, population, official languages, currency, head of state and government, founding date, calling code, internet domain and flag. One row per country.

197 rows · 1 d ago
Politics & Government

Political regime of every country since 1789 (democracy or autocracy)

Whether each country was a closed autocracy, electoral autocracy, electoral democracy or liberal democracy in each year since 1789, using the Regimes of the World classification based on V-Dem data. One row is one country in one year.

30,427 rows · 19 d ago