Add query instructions