query graphic