QueryView.prepare returns named tuple (statement, params, selected attributes)