I am working with SPARQL and having trouble understanding how it actually goes through the input file. For example, I have three orders of the same product from three different businesses. In my query, it works when there are only two purchases to two businesses, but when I add the third of each in, it goes through almost like a loop. It checks one purchase for the first business, two for the second, and three for the third. I am confused on why it would do something like a loop?
Mostly, I am having trouble understanding how SPARQL searches the input file when you press start.
Example of a query would be like
SELECT ?price
WHERE{
?test e:price ?price;
e:business ?business.
?test2 e:price ?price2;
e:business ?business2.
}