Revert "low-level queries"

Reverts frenetic-lang/frenetic#358