### Database Schema:
CREATE TABLE words (
	wid	INTEGER	NULL	PRIMARY KEY,
	word	TEXT	NULL,
	occurrences	INTEGER	NULL	DEFAULT 0
);

CREATE TABLE biwords (
	lid	INTEGER	NOT NULL	PRIMARY KEY,
	w1st	INTEGER	NOT NULL	PRIMARY KEY,
	w2nd	INTEGER	NOT NULL	PRIMARY KEY,
	occurrences	INTEGER	NULL	DEFAULT 0,
	foreign key (lid) references langs (lid),
	foreign key (w1st) references words (wid),
	foreign key (w2nd) references words (wid)
);

CREATE TABLE langs_words (
	lid	INTEGER	NOT NULL	PRIMARY KEY,
	wid	INTEGER	NOT NULL	PRIMARY KEY,
	occurrences	INTEGER	NULL,
	foreign key (lid) references langs (lid),
	foreign key (wid) references words (wid)
);

CREATE TABLE langs (
	lid	INTEGER	NULL	PRIMARY KEY,
	lang	TEXT	NULL,
	locale	TEXT	NULL,
	pages	INTEGER	NULL	DEFAULT 0,
	words	INTEGER	NULL	DEFAULT 0
);

CREATE TABLE pages (
	pid	INTEGER	NULL	PRIMARY KEY,
	lid	INTEGER	NULL,
	page	INTEGER	NULL	DEFAULT NULL,
	revision	INTEGER	NULL	DEFAULT NULL,
	title	TEXT	NULL,
	words	INTEGER	NULL	DEFAULT 0,
	foreign key (lid) references langs (lid)
);

CREATE TABLE pages_words (
	pid	INTEGER	NOT NULL	PRIMARY KEY,
	wid	INTEGER	NOT NULL	PRIMARY KEY,
	occurrences	INTEGER	NULL	DEFAULT 0,
	foreign key (wid) references words (wid),
	foreign key (pid) references pages (pid)
);

### User's Query:
List down the words with word id from 1 to 10 and write down a paired word for each of them.

### Extra Knowledge:
word id from 1 to 10 refers to wid BETWEEN 1 AND 10
SELECT T1.word AS W1, T3.word AS W2 FROM words AS T1 LEFT JOIN biwords AS T2 ON T1.wid = T2.w1st LEFT JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.wid <= 10 GROUP BY T1.wid