Added code to query virtuoso