The Sturm-Liouville Eigenvalue Problem and NP-Complete Problems in the Quantum Setting with Queries