Write a SQL query:

SELECT
QUERY.NAME,
QUERY.DESCRIPTION,
'',
BASEDON.NAME as 'BASED ON QUERY NAME' ,
BASEDON.DESCRIPTION as 'BASED ON QUERY DESCRIPTION'
FROM
Queries2 QUERY
LEFT OUTER JOIN Queries2 BASEDON ON QUERY.SELECTFROMQID=BASEDON.QUERIESID
WHERE
QUERY.NAME = '<EXACT query name that someone is trying to delete>'