code: def query_from_db():
      if request.method == "POST":
          query = request.form["query"]
          res = cursor.query(query).df()
          return {"api response": res.to_json()}
      return """<html>
                  <body>
                      <form method="POST"
                          enctype = "multipart/form-data">
                          <input type = "input" name = "query" placeholder="Enter query"/>
                          <input type = "submit"/>
                      </form>
                  </body>
              </html>"""
  
file_path: evadb/apps/rest/run_evadb.py
imports: import os
  from pathlib import Path
  from flask import Flask, flash, redirect, request
  from flask_restful import Api
  from werkzeug.utils import secure_filename
  import evadb
label_desc: Use image node_id 1 for calling a global function with example usage: query_from_db() and returns: str, dict