modified query.py so as to take dict type to drop columns, modified auto_exam to test examples