how can I transpose a query in the fastest way? Is there a function for this? which of the various methods is the fastest?