Report question

Question: Generating the SQL query plan takes 5 minutes, the query itself runs in milliseconds. What's up?