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