A novel enumeration-based SQL synthesizer SQUARES is proposed, that uses a new line representation where each program line with its own subtree is represented, which allows a faster enumeration of programs when compared to the usual tree-based encoding.