missing a query to filter table