Problem
guests in his house today. He wants to serve at least one dish to each of the guests. Chef can make two types of dishes. He needs one fruit and one vegetable to make the first type of dish and one vegetable and one fish to make the second type of dish. Now Chef has fruits, vegetables, and fishes in his house. Can he prepare at least dishes in total?
Input Format
- First line will contain , number of testcases. Then the testcases follow.
- Each testcase contains of a single line of input, four integers .
Output Format
For each test case, print "YES" if Chef can prepare at least dishes, otherwise print "NO". Print the output without quotes.
Constraints
Subtasks
- Subtask 1 (100 points): Original constraints
Sample 1:
4
2 1 2 1
3 2 2 2
4 2 6 3
3 1 3 1
YES
NO
YES
NO
Explanation:
Test case : Chef prepares one dish of the first type using one fruit and one vegetable and another dish of the second type using one vegetable and one fish.
Test case : Chef prepares two dishes of the first type using two fruit and two vegetable. Now all the vegetables are exhausted, hence he can't prepare any other dishes.
Test case : Chef can prepare a total of dishes, two dishes of the first type and three dishes of the second type.
ANSWER