Skip to content

Commit

Permalink
feat: expand examples of queries
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroLanaspa committed Oct 23, 2024
1 parent 084cc05 commit 2eea92b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/proof-of-sql/examples/movies/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,12 @@ fn main() {
&prover_setup,
&verifier_setup,
);

// Query 3: Calculate the average duration of movies by genre
prove_and_verify_query(
"SELECT genre, AVG(duration) AS avg_duration FROM movies GROUP BY genre ORDER BY avg_duration DESC",
&accessor,
&prover_setup,
&verifier_setup,
);
}

0 comments on commit 2eea92b

Please sign in to comment.