for s in g: if s[2]<=t and s[3]<=e and s[4]<=q and s[6]<=r and (s[2]