Context-aware SQL