RDF-Turtle and JSON-LD are really notations for inscribing RDF sentences to documents.
RDF Documents may reside on a Filesystem or be managed by a DBMS, Quad- or Triple-store.
SPARQL is a Declarative Query Language for performing Data Definition and Data Manipulation operations on Data Represented in RDF (i.e., Relations represented as subject->predicate->object 3-tuples).
SPARQL is handled by a SPARQL Processor (or Engine) that is typically a feature of an RDF-supporting DBMS, Quad- or Triple store.
You ability to use SPARQL is totally unaffected by your RDF being created using RDF-Turtle or JSON-LD notations.
One final thing, the body of a SPARQL Query is actually RDF-Turtle plus additional support of variables as another mechanism for entity denotation.