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