/* (Q7bis) Find the highest bid ever made for a bicycle or tricycle. */ LET $cycles := document("RainbowCore/Kweelt/R/items.xml")//item_tuple[ contains(description/text(), "Bicycle") OR contains(description/text(), "Tricycle") ], $b := document("RainbowCore/Kweelt/R/bids.xml")//bid_tuple[ itemno = $cycles/itemno ] RETURN NUMFORMAT("#####.##", max(-1, $b/bid/text()) )