#include #define rep(i,n)for(int i=0;i<(n);i++) using namespace std; int main() { int q; scanf("%d", &q); rep(i, q) { int a, b, c, d; scanf("%d%d%d%d", &a, &b, &c, &d); printf("select count(((x between %d and %d) and (y between %d and %d)) or null) from point;\n", a, b, c, d); fflush(stdout); } }