I have a query like this:
SELECT ?names ?country ?city
WHERE {
...
}
However my hw says to print only the names and the city, not the country. How can ask SPARQL not to include ?country
in the result set?
If it can't be done, I would like to know of course, so that I can stop searching Google.
Removing the ?country
from your query, to prevent it from printed out:
SELECT ?names ?city
WHERE {
...
}