13. A system for translating a Simple Protocol and RDF Query Language (SPARQL) query into a Structured Query Language (SQL) query, the system comprising: a processor; and a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a processor to cause the processor to perform a method comprising: generating one or more graphs from the SPARQL query, wherein the one or more graphs comprise a plurality of nodes; assigning a priority to each of the plurality of nodes and generate a priority queue based on the assigned priority; selecting the node having a highest assigned priority from the priority queue; navigating the one or more graphs to traverse to one or more reached nodes of the plurality of nodes connected to the selected node, comprising: identifying data corresponding to the one or more reached nodes; for each reached node having a variable component, updating the priority of the reached node based on the identified data for the reached node; and updating an order of the plurality of nodes in the priority queue based on the updated priorities; generating an access plan element of the SQL query for the one or more reached nodes traversed and the selected node; repeating the selecting of the node having the highest assigned priority from the priority queue, the navigating of the one or more graphs to traverse to the one or more reached nodes, and the generating of the access plan element of the SQL query until the priority queue is empty; and generating an access plan for the SQL query comprising the access plan elements generated for the plurality of nodes.
13. A system for translating a Simple Protocol and RDF Query Language (SPARQL) query into a Structured Query Language (SQL) query, the system comprising: a processor; and a computer readable storage medium having program instructions embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, the program instructions executable by a processor to cause the processor to perform a method comprising: generating one or more graphs from the SPARQL query, wherein the one or more graphs comprise a plurality of nodes; assigning a priority to each of the plurality of nodes and generate a priority queue based on the assigned priority; selecting the node having a highest assigned priority from the priority queue; navigating the one or more graphs to traverse to one or more reached nodes of the plurality of nodes connected to the selected node, comprising: identifying data corresponding to the one or more reached nodes; for each reached node having a variable component, updating the priority of the reached node based on the identified data for the reached node; and updating an order of the plurality of nodes in the priority queue based on the updated priorities; generating an access plan element of the SQL query for the one or more reached nodes traversed and the selected node; repeating the selecting of the node having the highest assigned priority from the priority queue, the navigating of the one or more graphs to traverse to the one or more reached nodes, and the generating of the access plan element of the SQL query until the priority queue is empty; and generating an access plan for the SQL query comprising the access plan elements generated for the plurality of nodes. 17. The system of claim 13 , wherein the assigning of the priority to each of the plurality of nodes comprises: determining a given node of the plurality of nodes has a constant component; determining statistics indicating a number of times the given node appears in a database; when the statistics return a low frequency for the given node, assigning the given node a high priority in comparison to nodes for which the statistics return a high frequency; and when the statistics return the high frequency for the given node, assigning the given node a low priority in comparison to nodes for which the statistics return the low frequency.