Question: Which states border Utah?
SPARQL:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
PREFIX yago: <http://dbpedia.org/class/yago/>
SELECT DISTINCT ?uri ?string
WHERE 
{
         {res:Kansas dbpedia2:north ?string.}
         UNION
         {res:Kansas dbpedia2:northeast ?string.}
         UNION
         {res:Kansas dbpedia2:south ?string.}
         UNION
         {res:Kansas dbpedia2:southeast ?string.}
         UNION
         {res:Kansas dbpedia2:east ?string.}
         UNION
         {res:Kansas dbpedia2:west ?string.}
         OPTIONAL { ?uri rdf:type yago:StatesOfTheUnitedStates .
                    ?uri dbpedia2:name ?string . }
}