Replace -c option with -l (limit).  Add -x to limit to experiments.  Use generative select feature of sqlalchemy to construct query