Add query and extract job