Your question requires more inputs from you. Please update it correctly.
Based on what I understand:
I have created a code that reads the input from user (Parameter-name, parameter-data) and shows it in the output. Each record can be accessed by Parameter-name
import pandas as pd
n_times = int(input("How many input queries you want to add"))
res = []
for i in range(0,n_times):
paramname = input("Enter the id for the query ")
paramdata = input("Enter the sql query ")
#column3 = 'result from column2'
result = pd.read_sql(paramdata, conn)
#You can add code to check correct syntax here of input
df1 = pd.DataFrame(data=[[paramname,paramdata,result]],columns=
["Parameter-Name", "Parameter-Data","Result"])
df1.index = df1.index + 1
print(df1)
You can access the queries by index like this
df1.iloc[0]