modified the query - added a general triple pattern