select format from Decks as d,Events as e where ref=361821 && e.event=d.event :