inline query cases for better reuse of results