Consider a set $P$ of $N$ points in the unit square and a set $L$ of $N$ non-vertical lines. Can we count the number of pairs $$\{(p,\ell)\in P\times L: p\; \text{lies above}\; \ell\}$$ in time $\tilde{O}(N)$?
(Here $\tilde{O}(N)$ means $O(N (\log N)^{O(1)})$, or, if you prefer, something looser, such as $O_{\epsilon}(N^{1+\epsilon})$ for $\epsilon>0$ arbitrary.)