<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_sparql_line_nums(sparql):
 """ Returns a sparql query with line numbers prepended """

    lines = sparql.split("\n")
    return "\n".join(["%s %s" % (i + 1, line) for i, line in enumerate(lines)])