Alex Marquez claimed pole at the Grand Prix of Catalonia with a lap record, edging out Fabio Quartararo and Marc Marquez.