Add support for table.column.toQuery()

Add tests to support the behavior.
Merge pull request #61 from brianc/column-toQuery

Add support for table.column.toQuery()