Add QueryExecutor that uses subprocess