graphics querying example