Generate argument pairs for queries like where(id=2)

def _standard_items(self, restrictions):
        """Generate argument pairs for queries like where(id=2)"""
        standard_items = self._build_where(restrictions, for_in=False)
        names = ["{}.{} == ?".format(pair[0], pair[1])
                 for pair in standard_items]
        values = [item[2] for item in standard_items]
        return (names, values)