Question 1: 
Generate a complete and complex sqlite  .test file using different Tcl commands. Do not reuse previous solutions. Ensure you write a single .test 
file without any comments that ends with a "finish_test".

Solution 1:
set testdir [file dirname $argv0]
source $testdir/tester.tcl
set testprefix sync

proc sync_proc {} {
  global syncargs
  lappend syncargs
  expr {[llength $syncargs] <= 2}
}

do_test sync-1.1 {
  execsql {
    CREATE TABLE a(x);
    INSERT INTO a VALUES(1),(2),(3);
  }
  execsql {SELECT count(*) FROM a}
} {3}

do_execsql_test sync-1.2 {
  BEGIN;
  INSERT INTO a VALUES(4);
  COMMIT;
  SELECT count(*) FROM a;
} {4}

ifcapable journalMode {
  catchsql {PRAGMA journal_mode=WAL}
} {0 {}}

finish_test


Question 2:
Generate a complete and complex sqlite  .test file using different Tcl commands. Do not reuse previous solutions. Ensure you write a single .test 
file without any comments that ends with a "finish_test".

Solution 2:
