Back in 2007, as part of the celebration of Star Trek: The Next Generation‘s 20th anniversary, I wrote the novel Q & A, which was the ultimate Q story, showing that everything Q did in all his appearances was all geared toward one particular goal.
An excerpt:
Yay for multiverses! DeCandido takes threads from through-out the history of The Next Generation and crafts a solid, enjoyable adventure. I highly recommend this stand-alone novel to all Star Trek fans.
excellent review for a fun book!