began work on query by example code

fixed bug in selphin.py to re-add Reading.derivation