def sqlors(left, lst):
 if (isinstance(lst, iters) and (len(lst) == 1)):
  lst = lst[0]
 if isinstance(lst, iters):
  return (((('(' + left) + (' OR ' + left).join([aparam() for x in lst])) + ')'), lst)
 elif (not list):
  return ('', [])
 else:
  return ((left + aparam()), [lst])

def sqlors ( left , lst ) : if ( isinstance ( lst , iters ) and ( len ( lst ) == 1 ) ) : lst = lst [ 0 ] if isinstance ( lst , iters ) : return ( ( ( ( '(' + left ) + ( ' OR ' + left ) . join ( [ aparam ( ) for x in lst ] ) ) + ')' ) , lst ) elif ( not list ) : return ( '' , [ ] ) else : return ( ( left + aparam ( ) ) , [ lst ] )
left is a sql clause like tablename .