Skip to content

Commit

Permalink
feat: add complex query to census example
Browse files Browse the repository at this point in the history
  • Loading branch information
dalbertom committed Oct 23, 2024
1 parent a83fe51 commit 83aa643
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/proof-of-sql/examples/census/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,10 @@ fn main() {
&prover_setup,
&verifier_setup,
);
prove_and_verify_query(
"SELECT Geography, COUNT(*) AS num_geographies FROM income WHERE Households_Estimate_total > 2000000 GROUP BY Geography ORDER BY num_geographies DESC LIMIT 5",
&accessor,
&prover_setup,
&verifier_setup,
);
}

0 comments on commit 83aa643

Please sign in to comment.