Interactive query statement specification based on a database schema