Implementation of fetch query part