Implement (untested) select