SELECT#
SELECT TUPLES WITH PREDICATES#
Search for frames with a car
SELECT id, frame
FROM MyVideo
WHERE ['car'] <@ FastRCNNObjectDetector(frame).labels
ORDER BY id;
Search frames with a pedestrian and a car
SELECT id, frame
FROM MyVideo
WHERE ['pedestrian', 'car'] <@ FastRCNNObjectDetector(frame).labels;
Search for frames containing greater than 3 cars
SELECT id FROM MyVideo
WHERE ArrayCount(FastRCNNObjectDetector(data).label, 'car') > 3
ORDER BY id;
SELECT TUPLES WITH MULTIPLE PREDICATES#
Compose multiple user-defined functions in a single query to construct semantically complex queries.
SELECT id, bbox, EmotionDetector(Crop(data, bbox))
FROM HAPPY JOIN LATERAL UNNEST(FaceDetector(data)) AS Face(bbox, conf)
WHERE id < 15;
SELECT TUPLES WITHOUT TABLE#
In EvaDB, we can compose a query that does not have a table source. This type of queries are usually expressions.
SELECT 1;
SELECT 1 > 2;
SELECT HomeRentalForecast(12);
Note
If you are interested in forecasting with EvaDB, go over the Time Series Forecasting page.