Added test2 with getopt to generate sampled SQ