     
     var operatorStr = op.rawValue
     var predicate = NSPredicate(format: "%@ %@ \"%@\"", argumentArray: [key, operatorStr, value])
-    self.queryPerdicate = predicate
+    self.queryPredicate = predicate
   }
   
   func query(key: String, function: PQFunction) {

    self.batchSize = 0
    self.queryOffset = 0
    self.entity = entity
  }

  class func query(entity: String) -> ParrotQuery {
    return ParrotQuery(entity: entity)
  }

  func same() -> ParrotQuery {
    return ParrotQuery(entity: self.entity!)
  }

  func query(key: String, op: PQOperator, value: AnyObject) {

  case PQAverage = "average:"
}

class ParrotQuery: NSObject, NSCopying {
  var entity: String
  
  var compound: Bool
  var limitCount: UInt
  var batchSize: UInt
  var queryOffset: UInt
  
  var queryPredicate: NSPredicate?
  var sortDescriptors: Array<NSSortDescriptor>
  var expressionDescription: NSExpressionDescription?
  
  init(entity: String) {
