return query result with metadata even if it's empty