query-derivation