### Database Schema:
CREATE TABLE Ingredient (
	ingredient_id	INTEGER	NULL	PRIMARY KEY,
	category	TEXT	NULL,
	name	TEXT	NULL,
	plural	TEXT	NULL
);

CREATE TABLE Recipe (
	recipe_id	INTEGER	NULL	PRIMARY KEY,
	title	TEXT	NULL,
	subtitle	TEXT	NULL,
	servings	INTEGER	NULL,
	yield_unit	TEXT	NULL,
	prep_min	INTEGER	NULL,
	cook_min	INTEGER	NULL,
	stnd_min	INTEGER	NULL,
	source	TEXT	NULL,
	intro	TEXT	NULL,
	directions	TEXT	NULL
);

CREATE TABLE Nutrition (
	recipe_id	INTEGER	NULL	PRIMARY KEY,
	protein	REAL	NULL,
	carbo	REAL	NULL,
	alcohol	REAL	NULL,
	total_fat	REAL	NULL,
	sat_fat	REAL	NULL,
	cholestrl	REAL	NULL,
	sodium	REAL	NULL,
	iron	REAL	NULL,
	vitamin_c	REAL	NULL,
	vitamin_a	REAL	NULL,
	fiber	REAL	NULL,
	pcnt_cal_carb	REAL	NULL,
	pcnt_cal_fat	REAL	NULL,
	pcnt_cal_prot	REAL	NULL,
	calories	REAL	NULL,
	foreign key (recipe_id) references Recipe (recipe_id)
);

CREATE TABLE Quantity (
	quantity_id	INTEGER	NULL	PRIMARY KEY,
	recipe_id	INTEGER	NULL,
	ingredient_id	INTEGER	NULL,
	max_qty	REAL	NULL,
	min_qty	REAL	NULL,
	unit	TEXT	NULL,
	preparation	TEXT	NULL,
	optional	TEXT	NULL,
	foreign key (recipe_id) references Recipe (recipe_id),
	foreign key (recipe_id) references Nutrition (recipe_id),
	foreign key (ingredient_id) references Ingredient (ingredient_id)
);

### User's Query:
How many cups of almonds do you need for a chicken pocket sandwich?

### Extra Knowledge:
cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title
SELECT COUNT(*) FROM Recipe AS T1 INNER JOIN Quantity AS T2 ON T1.recipe_id = T2.recipe_id INNER JOIN Ingredient AS T3 ON T3.ingredient_id = T2.ingredient_id WHERE T1.title = 'Chicken Pocket Sandwich' AND T3.name = 'almonds' AND T2.unit = 'cup(s)'