All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xsparql.base-1.1-negative.invalidLetBindOrderBySharedVariable.xsparql Maven / Gradle / Ivy

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