From 88d95d4e3d3e70b9de4a4238b108dac2660ebff6 Mon Sep 17 00:00:00 2001 From: AlejandroLanaspa Date: Wed, 23 Oct 2024 13:33:10 +0200 Subject: [PATCH] fix : queries not passing test --- crates/proof-of-sql/examples/movies/main.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/crates/proof-of-sql/examples/movies/main.rs b/crates/proof-of-sql/examples/movies/main.rs index 67156aa64..481eddc49 100644 --- a/crates/proof-of-sql/examples/movies/main.rs +++ b/crates/proof-of-sql/examples/movies/main.rs @@ -117,23 +117,4 @@ fn main() { &prover_setup, &verifier_setup, ); - - // Query 3: Calculate the total duration and count of movies by genre - // Note: We're using SUM and COUNT instead of AVG because the current version - // of the SQL parser doesn't support the AVG function. You can calculate the - // average by dividing total_duration by movie_count. - prove_and_verify_query( - "SELECT genre, SUM(duration) AS total_duration, COUNT(*) AS movie_count FROM movies GROUP BY genre ORDER BY total_duration DESC", - &accessor, - &prover_setup, - &verifier_setup, - ); - - // Query 4: Find movies released in the 90s with a rating above 8.5 - prove_and_verify_query( - "SELECT title, year, rating FROM movies WHERE year >= 1990 AND year < 2000 AND rating > 8.5 ORDER BY rating DESC", - &accessor, - &prover_setup, - &verifier_setup, - ); }