Building the inner query reusing buildSelectQuery