RV, has already explained why it won't work. You can't RUN a SELECT Query. You can only run an ACTION query: Append, Delete, Insert, Update, Make Table, etc.
Writing that sort of SQL as a string is a resource eater and will necessitate regular compacts of the database instead of just saving the query as a defined QueryDef.