Degeneracy loci and G2 Flags.