#include using namespace std; #define int long long signed main(){ int q; cin >> q; int a, b, c, d; for(int i = 0; i < q; i++){ cin >> a >> b >> c >> d; printf("SELECT count(*) FROM point WHERE x BETWEEN %d AND %d AND y BETWEEN %d AND %d;", a, b, c, d); fflush(stdout); } }