Connects to a generic provider with the given connection string and returns the result of evaluating the query.