Add query component