Find the uuid of cards in which the old school format is restricted or banned.
old school format refers to format = 'oldschool'; restricted or banned refers to status = 'banned' or 'restricted'
SELECT uuid FROM legalities WHERE format = 'oldschool' AND (status = 'Banned' OR status = 'Restricted')