PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE rt_rechenreihen (
	id INTEGER NOT NULL, 
	name VARCHAR(200) NOT NULL, 
	typ VARCHAR(1) NOT NULL, 
	PRIMARY KEY (id)
);
INSERT INTO rt_rechenreihen VALUES(1,'1er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(2,'2er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(3,'3er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(4,'4er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(5,'5er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(6,'6er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(7,'7er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(8,'8er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(9,'9er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(10,'10er Reihe','*');
INSERT INTO rt_rechenreihen VALUES(11,'Quadratzahlen','*');
INSERT INTO rt_rechenreihen VALUES(12,'1er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(13,'2er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(14,'3er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(15,'4er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(16,'5er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(17,'6er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(18,'7er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(19,'8er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(20,'9er Reihe','/');
INSERT INTO rt_rechenreihen VALUES(21,'10er Reihe','/');
CREATE TABLE rt_reihe (
	id INTEGER NOT NULL, 
	"set" INTEGER NOT NULL, 
	a INTEGER NOT NULL, 
	b INTEGER NOT NULL, 
	PRIMARY KEY (id), 
	FOREIGN KEY("set") REFERENCES rt_rechenreihen (id)
);
INSERT INTO rt_reihe VALUES(1,1,1,1);
INSERT INTO rt_reihe VALUES(2,1,1,2);
INSERT INTO rt_reihe VALUES(3,1,1,3);
INSERT INTO rt_reihe VALUES(4,1,1,4);
INSERT INTO rt_reihe VALUES(5,1,1,5);
INSERT INTO rt_reihe VALUES(6,1,1,6);
INSERT INTO rt_reihe VALUES(7,1,1,7);
INSERT INTO rt_reihe VALUES(8,1,1,8);
INSERT INTO rt_reihe VALUES(9,1,1,9);
INSERT INTO rt_reihe VALUES(10,1,1,10);
INSERT INTO rt_reihe VALUES(11,1,1,1);
INSERT INTO rt_reihe VALUES(12,1,2,1);
INSERT INTO rt_reihe VALUES(13,1,3,1);
INSERT INTO rt_reihe VALUES(14,1,4,1);
INSERT INTO rt_reihe VALUES(15,1,5,1);
INSERT INTO rt_reihe VALUES(16,1,6,1);
INSERT INTO rt_reihe VALUES(17,1,7,1);
INSERT INTO rt_reihe VALUES(18,1,8,1);
INSERT INTO rt_reihe VALUES(19,1,9,1);
INSERT INTO rt_reihe VALUES(20,1,10,1);
INSERT INTO rt_reihe VALUES(21,2,2,1);
INSERT INTO rt_reihe VALUES(22,2,2,2);
INSERT INTO rt_reihe VALUES(23,2,2,3);
INSERT INTO rt_reihe VALUES(24,2,2,4);
INSERT INTO rt_reihe VALUES(25,2,2,5);
INSERT INTO rt_reihe VALUES(26,2,2,6);
INSERT INTO rt_reihe VALUES(27,2,2,7);
INSERT INTO rt_reihe VALUES(28,2,2,8);
INSERT INTO rt_reihe VALUES(29,2,2,9);
INSERT INTO rt_reihe VALUES(30,2,2,10);
INSERT INTO rt_reihe VALUES(31,2,1,2);
INSERT INTO rt_reihe VALUES(32,2,2,2);
INSERT INTO rt_reihe VALUES(33,2,3,2);
INSERT INTO rt_reihe VALUES(34,2,4,2);
INSERT INTO rt_reihe VALUES(35,2,5,2);
INSERT INTO rt_reihe VALUES(36,2,6,2);
INSERT INTO rt_reihe VALUES(37,2,7,2);
INSERT INTO rt_reihe VALUES(38,2,8,2);
INSERT INTO rt_reihe VALUES(39,2,9,2);
INSERT INTO rt_reihe VALUES(40,2,10,2);
INSERT INTO rt_reihe VALUES(41,3,3,1);
INSERT INTO rt_reihe VALUES(42,3,3,2);
INSERT INTO rt_reihe VALUES(43,3,3,3);
INSERT INTO rt_reihe VALUES(44,3,3,4);
INSERT INTO rt_reihe VALUES(45,3,3,5);
INSERT INTO rt_reihe VALUES(46,3,3,6);
INSERT INTO rt_reihe VALUES(47,3,3,7);
INSERT INTO rt_reihe VALUES(48,3,3,8);
INSERT INTO rt_reihe VALUES(49,3,3,9);
INSERT INTO rt_reihe VALUES(50,3,3,10);
INSERT INTO rt_reihe VALUES(51,3,1,3);
INSERT INTO rt_reihe VALUES(52,3,2,3);
INSERT INTO rt_reihe VALUES(53,3,3,3);
INSERT INTO rt_reihe VALUES(54,3,4,3);
INSERT INTO rt_reihe VALUES(55,3,5,3);
INSERT INTO rt_reihe VALUES(56,3,6,3);
INSERT INTO rt_reihe VALUES(57,3,7,3);
INSERT INTO rt_reihe VALUES(58,3,8,3);
INSERT INTO rt_reihe VALUES(59,3,9,3);
INSERT INTO rt_reihe VALUES(60,3,10,3);
INSERT INTO rt_reihe VALUES(61,4,4,1);
INSERT INTO rt_reihe VALUES(62,4,4,2);
INSERT INTO rt_reihe VALUES(63,4,4,3);
INSERT INTO rt_reihe VALUES(64,4,4,4);
INSERT INTO rt_reihe VALUES(65,4,4,5);
INSERT INTO rt_reihe VALUES(66,4,4,6);
INSERT INTO rt_reihe VALUES(67,4,4,7);
INSERT INTO rt_reihe VALUES(68,4,4,8);
INSERT INTO rt_reihe VALUES(69,4,4,9);
INSERT INTO rt_reihe VALUES(70,4,4,10);
INSERT INTO rt_reihe VALUES(71,4,1,4);
INSERT INTO rt_reihe VALUES(72,4,2,4);
INSERT INTO rt_reihe VALUES(73,4,3,4);
INSERT INTO rt_reihe VALUES(74,4,4,4);
INSERT INTO rt_reihe VALUES(75,4,5,4);
INSERT INTO rt_reihe VALUES(76,4,6,4);
INSERT INTO rt_reihe VALUES(77,4,7,4);
INSERT INTO rt_reihe VALUES(78,4,8,4);
INSERT INTO rt_reihe VALUES(79,4,9,4);
INSERT INTO rt_reihe VALUES(80,4,10,4);
INSERT INTO rt_reihe VALUES(81,5,5,1);
INSERT INTO rt_reihe VALUES(82,5,5,2);
INSERT INTO rt_reihe VALUES(83,5,5,3);
INSERT INTO rt_reihe VALUES(84,5,5,4);
INSERT INTO rt_reihe VALUES(85,5,5,5);
INSERT INTO rt_reihe VALUES(86,5,5,6);
INSERT INTO rt_reihe VALUES(87,5,5,7);
INSERT INTO rt_reihe VALUES(88,5,5,8);
INSERT INTO rt_reihe VALUES(89,5,5,9);
INSERT INTO rt_reihe VALUES(90,5,5,10);
INSERT INTO rt_reihe VALUES(91,5,1,5);
INSERT INTO rt_reihe VALUES(92,5,2,5);
INSERT INTO rt_reihe VALUES(93,5,3,5);
INSERT INTO rt_reihe VALUES(94,5,4,5);
INSERT INTO rt_reihe VALUES(95,5,5,5);
INSERT INTO rt_reihe VALUES(96,5,6,5);
INSERT INTO rt_reihe VALUES(97,5,7,5);
INSERT INTO rt_reihe VALUES(98,5,8,5);
INSERT INTO rt_reihe VALUES(99,5,9,5);
INSERT INTO rt_reihe VALUES(100,5,10,5);
INSERT INTO rt_reihe VALUES(101,6,6,1);
INSERT INTO rt_reihe VALUES(102,6,6,2);
INSERT INTO rt_reihe VALUES(103,6,6,3);
INSERT INTO rt_reihe VALUES(104,6,6,4);
INSERT INTO rt_reihe VALUES(105,6,6,5);
INSERT INTO rt_reihe VALUES(106,6,6,6);
INSERT INTO rt_reihe VALUES(107,6,6,7);
INSERT INTO rt_reihe VALUES(108,6,6,8);
INSERT INTO rt_reihe VALUES(109,6,6,9);
INSERT INTO rt_reihe VALUES(110,6,6,10);
INSERT INTO rt_reihe VALUES(111,6,1,6);
INSERT INTO rt_reihe VALUES(112,6,2,6);
INSERT INTO rt_reihe VALUES(113,6,3,6);
INSERT INTO rt_reihe VALUES(114,6,4,6);
INSERT INTO rt_reihe VALUES(115,6,5,6);
INSERT INTO rt_reihe VALUES(116,6,6,6);
INSERT INTO rt_reihe VALUES(117,6,7,6);
INSERT INTO rt_reihe VALUES(118,6,8,6);
INSERT INTO rt_reihe VALUES(119,6,9,6);
INSERT INTO rt_reihe VALUES(120,6,10,6);
INSERT INTO rt_reihe VALUES(121,7,7,1);
INSERT INTO rt_reihe VALUES(122,7,7,2);
INSERT INTO rt_reihe VALUES(123,7,7,3);
INSERT INTO rt_reihe VALUES(124,7,7,4);
INSERT INTO rt_reihe VALUES(125,7,7,5);
INSERT INTO rt_reihe VALUES(126,7,7,6);
INSERT INTO rt_reihe VALUES(127,7,7,7);
INSERT INTO rt_reihe VALUES(128,7,7,8);
INSERT INTO rt_reihe VALUES(129,7,7,9);
INSERT INTO rt_reihe VALUES(130,7,7,10);
INSERT INTO rt_reihe VALUES(131,7,1,7);
INSERT INTO rt_reihe VALUES(132,7,2,7);
INSERT INTO rt_reihe VALUES(133,7,3,7);
INSERT INTO rt_reihe VALUES(134,7,4,7);
INSERT INTO rt_reihe VALUES(135,7,5,7);
INSERT INTO rt_reihe VALUES(136,7,6,7);
INSERT INTO rt_reihe VALUES(137,7,7,7);
INSERT INTO rt_reihe VALUES(138,7,8,7);
INSERT INTO rt_reihe VALUES(139,7,9,7);
INSERT INTO rt_reihe VALUES(140,7,10,7);
INSERT INTO rt_reihe VALUES(141,8,8,1);
INSERT INTO rt_reihe VALUES(142,8,8,2);
INSERT INTO rt_reihe VALUES(143,8,8,3);
INSERT INTO rt_reihe VALUES(144,8,8,4);
INSERT INTO rt_reihe VALUES(145,8,8,5);
INSERT INTO rt_reihe VALUES(146,8,8,6);
INSERT INTO rt_reihe VALUES(147,8,8,7);
INSERT INTO rt_reihe VALUES(148,8,8,8);
INSERT INTO rt_reihe VALUES(149,8,8,9);
INSERT INTO rt_reihe VALUES(150,8,8,10);
INSERT INTO rt_reihe VALUES(151,8,1,8);
INSERT INTO rt_reihe VALUES(152,8,2,8);
INSERT INTO rt_reihe VALUES(153,8,3,8);
INSERT INTO rt_reihe VALUES(154,8,4,8);
INSERT INTO rt_reihe VALUES(155,8,5,8);
INSERT INTO rt_reihe VALUES(156,8,6,8);
INSERT INTO rt_reihe VALUES(157,8,7,8);
INSERT INTO rt_reihe VALUES(158,8,8,8);
INSERT INTO rt_reihe VALUES(159,8,9,8);
INSERT INTO rt_reihe VALUES(160,8,10,8);
INSERT INTO rt_reihe VALUES(161,9,9,1);
INSERT INTO rt_reihe VALUES(162,9,9,2);
INSERT INTO rt_reihe VALUES(163,9,9,3);
INSERT INTO rt_reihe VALUES(164,9,9,4);
INSERT INTO rt_reihe VALUES(165,9,9,5);
INSERT INTO rt_reihe VALUES(166,9,9,6);
INSERT INTO rt_reihe VALUES(167,9,9,7);
INSERT INTO rt_reihe VALUES(168,9,9,8);
INSERT INTO rt_reihe VALUES(169,9,9,9);
INSERT INTO rt_reihe VALUES(170,9,9,10);
INSERT INTO rt_reihe VALUES(171,9,1,9);
INSERT INTO rt_reihe VALUES(172,9,2,9);
INSERT INTO rt_reihe VALUES(173,9,3,9);
INSERT INTO rt_reihe VALUES(174,9,4,9);
INSERT INTO rt_reihe VALUES(175,9,5,9);
INSERT INTO rt_reihe VALUES(176,9,6,9);
INSERT INTO rt_reihe VALUES(177,9,7,9);
INSERT INTO rt_reihe VALUES(178,9,8,9);
INSERT INTO rt_reihe VALUES(179,9,9,9);
INSERT INTO rt_reihe VALUES(180,9,10,9);
INSERT INTO rt_reihe VALUES(181,10,10,1);
INSERT INTO rt_reihe VALUES(182,10,10,2);
INSERT INTO rt_reihe VALUES(183,10,10,3);
INSERT INTO rt_reihe VALUES(184,10,10,4);
INSERT INTO rt_reihe VALUES(185,10,10,5);
INSERT INTO rt_reihe VALUES(186,10,10,6);
INSERT INTO rt_reihe VALUES(187,10,10,7);
INSERT INTO rt_reihe VALUES(188,10,10,8);
INSERT INTO rt_reihe VALUES(189,10,10,9);
INSERT INTO rt_reihe VALUES(190,10,10,10);
INSERT INTO rt_reihe VALUES(191,10,1,10);
INSERT INTO rt_reihe VALUES(192,10,2,10);
INSERT INTO rt_reihe VALUES(193,10,3,10);
INSERT INTO rt_reihe VALUES(194,10,4,10);
INSERT INTO rt_reihe VALUES(195,10,5,10);
INSERT INTO rt_reihe VALUES(196,10,6,10);
INSERT INTO rt_reihe VALUES(197,10,7,10);
INSERT INTO rt_reihe VALUES(198,10,8,10);
INSERT INTO rt_reihe VALUES(199,10,9,10);
INSERT INTO rt_reihe VALUES(200,10,10,10);
INSERT INTO rt_reihe VALUES(201,11,1,1);
INSERT INTO rt_reihe VALUES(202,11,2,2);
INSERT INTO rt_reihe VALUES(203,11,3,3);
INSERT INTO rt_reihe VALUES(204,11,4,4);
INSERT INTO rt_reihe VALUES(205,11,5,5);
INSERT INTO rt_reihe VALUES(206,11,6,6);
INSERT INTO rt_reihe VALUES(207,11,7,7);
INSERT INTO rt_reihe VALUES(208,11,8,8);
INSERT INTO rt_reihe VALUES(209,11,9,9);
INSERT INTO rt_reihe VALUES(210,11,10,10);
INSERT INTO rt_reihe VALUES(211,12,1,1);
INSERT INTO rt_reihe VALUES(212,12,2,1);
INSERT INTO rt_reihe VALUES(213,12,3,1);
INSERT INTO rt_reihe VALUES(214,12,4,1);
INSERT INTO rt_reihe VALUES(215,12,5,1);
INSERT INTO rt_reihe VALUES(216,12,6,1);
INSERT INTO rt_reihe VALUES(217,12,7,1);
INSERT INTO rt_reihe VALUES(218,12,8,1);
INSERT INTO rt_reihe VALUES(219,12,9,1);
INSERT INTO rt_reihe VALUES(220,12,10,1);
INSERT INTO rt_reihe VALUES(221,13,2,2);
INSERT INTO rt_reihe VALUES(222,13,4,2);
INSERT INTO rt_reihe VALUES(223,13,6,2);
INSERT INTO rt_reihe VALUES(224,13,8,2);
INSERT INTO rt_reihe VALUES(225,13,10,2);
INSERT INTO rt_reihe VALUES(226,13,12,2);
INSERT INTO rt_reihe VALUES(227,13,14,2);
INSERT INTO rt_reihe VALUES(228,13,16,2);
INSERT INTO rt_reihe VALUES(229,13,18,2);
INSERT INTO rt_reihe VALUES(230,13,20,2);
INSERT INTO rt_reihe VALUES(231,14,3,3);
INSERT INTO rt_reihe VALUES(232,14,6,3);
INSERT INTO rt_reihe VALUES(233,14,9,3);
INSERT INTO rt_reihe VALUES(234,14,12,3);
INSERT INTO rt_reihe VALUES(235,14,15,3);
INSERT INTO rt_reihe VALUES(236,14,18,3);
INSERT INTO rt_reihe VALUES(237,14,21,3);
INSERT INTO rt_reihe VALUES(238,14,24,3);
INSERT INTO rt_reihe VALUES(239,14,27,3);
INSERT INTO rt_reihe VALUES(240,14,30,3);
INSERT INTO rt_reihe VALUES(241,15,4,4);
INSERT INTO rt_reihe VALUES(242,15,8,4);
INSERT INTO rt_reihe VALUES(243,15,12,4);
INSERT INTO rt_reihe VALUES(244,15,16,4);
INSERT INTO rt_reihe VALUES(245,15,20,4);
INSERT INTO rt_reihe VALUES(246,15,24,4);
INSERT INTO rt_reihe VALUES(247,15,28,4);
INSERT INTO rt_reihe VALUES(248,15,32,4);
INSERT INTO rt_reihe VALUES(249,15,36,4);
INSERT INTO rt_reihe VALUES(250,15,40,4);
INSERT INTO rt_reihe VALUES(251,16,5,5);
INSERT INTO rt_reihe VALUES(252,16,10,5);
INSERT INTO rt_reihe VALUES(253,16,15,5);
INSERT INTO rt_reihe VALUES(254,16,20,5);
INSERT INTO rt_reihe VALUES(255,16,25,5);
INSERT INTO rt_reihe VALUES(256,16,30,5);
INSERT INTO rt_reihe VALUES(257,16,35,5);
INSERT INTO rt_reihe VALUES(258,16,40,5);
INSERT INTO rt_reihe VALUES(259,16,45,5);
INSERT INTO rt_reihe VALUES(260,16,50,5);
INSERT INTO rt_reihe VALUES(261,17,6,6);
INSERT INTO rt_reihe VALUES(262,17,12,6);
INSERT INTO rt_reihe VALUES(263,17,18,6);
INSERT INTO rt_reihe VALUES(264,17,24,6);
INSERT INTO rt_reihe VALUES(265,17,30,6);
INSERT INTO rt_reihe VALUES(266,17,36,6);
INSERT INTO rt_reihe VALUES(267,17,42,6);
INSERT INTO rt_reihe VALUES(268,17,48,6);
INSERT INTO rt_reihe VALUES(269,17,54,6);
INSERT INTO rt_reihe VALUES(270,17,60,6);
INSERT INTO rt_reihe VALUES(271,18,7,7);
INSERT INTO rt_reihe VALUES(272,18,14,7);
INSERT INTO rt_reihe VALUES(273,18,21,7);
INSERT INTO rt_reihe VALUES(274,18,28,7);
INSERT INTO rt_reihe VALUES(275,18,35,7);
INSERT INTO rt_reihe VALUES(276,18,42,7);
INSERT INTO rt_reihe VALUES(277,18,49,7);
INSERT INTO rt_reihe VALUES(278,18,56,7);
INSERT INTO rt_reihe VALUES(279,18,63,7);
INSERT INTO rt_reihe VALUES(280,18,70,7);
INSERT INTO rt_reihe VALUES(281,19,8,8);
INSERT INTO rt_reihe VALUES(282,19,16,8);
INSERT INTO rt_reihe VALUES(283,19,24,8);
INSERT INTO rt_reihe VALUES(284,19,32,8);
INSERT INTO rt_reihe VALUES(285,19,40,8);
INSERT INTO rt_reihe VALUES(286,19,48,8);
INSERT INTO rt_reihe VALUES(287,19,56,8);
INSERT INTO rt_reihe VALUES(288,19,64,8);
INSERT INTO rt_reihe VALUES(289,19,72,8);
INSERT INTO rt_reihe VALUES(290,19,80,8);
INSERT INTO rt_reihe VALUES(291,20,9,9);
INSERT INTO rt_reihe VALUES(292,20,18,9);
INSERT INTO rt_reihe VALUES(293,20,27,9);
INSERT INTO rt_reihe VALUES(294,20,36,9);
INSERT INTO rt_reihe VALUES(295,20,45,9);
INSERT INTO rt_reihe VALUES(296,20,54,9);
INSERT INTO rt_reihe VALUES(297,20,63,9);
INSERT INTO rt_reihe VALUES(298,20,72,9);
INSERT INTO rt_reihe VALUES(299,20,81,9);
INSERT INTO rt_reihe VALUES(300,20,90,9);
INSERT INTO rt_reihe VALUES(301,21,10,10);
INSERT INTO rt_reihe VALUES(302,21,20,10);
INSERT INTO rt_reihe VALUES(303,21,30,10);
INSERT INTO rt_reihe VALUES(304,21,40,10);
INSERT INTO rt_reihe VALUES(305,21,50,10);
INSERT INTO rt_reihe VALUES(306,21,60,10);
INSERT INTO rt_reihe VALUES(307,21,70,10);
INSERT INTO rt_reihe VALUES(308,21,80,10);
INSERT INTO rt_reihe VALUES(309,21,90,10);
INSERT INTO rt_reihe VALUES(310,21,100,10);
COMMIT;
