Parse query skeleton