Take the high road to middle ground

See how to use Common Table Expressions to derive a more efficient median.