read about query stuff, signature for it, extract preds out of item, typeclassify them