There's no way around SQL, really. I mean, the nuclear option - burn it and hope that one of the myriad dialects will suffice for a given question. A monumental effort fraught with unforeseen problems no doubt, nearly as foolish an undertaking as attempting to disambiguate the dialects of
c... But dataframes, with only a few thousand questions, surely, we can scope.