Add project filtering to query.sql

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>