Structured Case-based Reasoning for Inference-time Adaptation of Text-to-SQL parsers