sed '1d;s/\(.*\) \(.*\) \(.*\) \(.*\)/SELECT count(*) FROM point WHERE x>=\1 AND x<=\2 AND y>=\3 AND y<=\4/'