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