i have to write one job which runs every one hour.the job will run query ,the query will pick sql ids of bad queries that is queries that are running for long time and still running currently.we will run this job every one hour so query has to pick bad queries that are running currently.the query o/p will be inserted into one table.i need query to pick bad queries that running currently