
xsparql.base-1.1-negative.invalidLetBindOrderBySharedVariable.xsparql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xsparql-test-suite Show documentation
Show all versions of xsparql-test-suite Show documentation
XSPARQL compliance test suite
The newest version!
declare namespace foaf = "http://xmlns.com/foaf/0.1/";
{
let $discount := 0.15
let $shippingCost := 10
let $discountedPrice := 150
return
for $product $productPrice $finalPrice $discountedPrice
from
where {
$product :hasPrice $productPrice
bind($productPrice + $shippingCost AS $finalPrice))
}
order by ($finalPrice-$finalPrice*$discount AS $discountedPrice)
return
{
{$shippingCost}
{$productPrice}
{$finalPrice}
{$discountedPrice}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy