def q(self, q, inputs=None, limit='', offset='', history=False):
    """ query
    """
    if not q.strip().startswith("["): q = "[ {0} ]".format(q)
    args     = u'[ {:db/alias "%(store)s/%(db)s" %(hist)s} %(inputs)s ]' % dict(
      store  = self.store,
      db     = self.db,
      hist   = ':history true' if history==True else '',
      inputs = " ".join(inputs or []))
    data = {"args":   args, 
            "q":      q, 
            "offset": offset or '',
            "limit":  limit  or '',
            }
    return self.rest('GET', self.uri_q, data=data, parse=True)