Complex sentence: The Scottish National Portrait Gallery is an art museum on Queen Street, Edinburgh, which holds the national collections of portraits, all of which are of, but not necessarily by, Scots.
Split into simpler sentences: The Scottish National Portrait Gallery is an art museum on Queen Street, Edinburgh. The gallery holds the national collections of portraits, all of which are of, but not necessarily by, Scots.