Reworking a bit the query after Spuds suggestions

Signed-off-by: emanuele <emanuele45@gmail.com>