Cosette icon indicating copy to clipboard operation
Cosette copied to clipboard

Cosette is an automated SQL solver.

Results 27 Cosette issues
Sort by recently updated
recently updated
newest added

Building the image now works with the updated Dockerfile.

I use cosette online to prove the count projection equivalence. The answer should be not equivalent. Because count(*) will include NULL value, while count(column) will exclude NULL value. The following...

**setup:** ``` schema TrackSchema(TrackId: int, Name: varchar, AlbumId: int, MediaTypeId: int, GenreId: int, Composer: varchar, Milliseconds: int, Bytes: int, UnitPrice: numeric); table Track(TrackSchema); schema GenreSchema(GenreId: int, Name: varchar); table Genre(GenreSchema);...

**setup:** ``` schema TrackSchema(TrackId: int, Name: varchar, AlbumId: int, MediaTypeId: int, GenreId: int, Composer: varchar, Milliseconds: int, Bytes: int, UnitPrice: numeric); table Track(TrackSchema); schema PlaylistTrackSchema(PlaylistId: int, TrackId: int); table PlaylistTrack(PlaylistTrackSchema);...

**setup:** ``` schema InvoiceSchema(InvoiceId: int, CustomerId: int, InvoiceDate: date, BillingAddress: varchar, BillingCity: varchar, BillingState: varchar, BillingCountry: varchar, BillingPostalCode: varchar, Total: numeric); table Invoice(InvoiceSchema); query q1 `SELECT i.InvoiceId, i.CustomerId, count(i.CustomerId) FROM...

The following says "Invalid generated Coq file": ``` schema sch_flights(fid:int, month_id:int, day_of_month:int, day_of_week_id:int, carrier_id:string, flight_num:int, origin_city:string, origin_state:string, dest_city:string, dest_state:string, departure_delay:int, taxi_out:int, arrival_delay:int, canceled:int, actual_time:int, distance:int, capacity:int, price:int ); schema sch_carriers...

**setup:** schema AlbumSchema(AlbumId: int, Title: varchar, ArtistId: int); table Album(AlbumSchema); query q1 -- define query q1 `SELECT * FROM Album a`; query q2 -- define query q1 `SELECT a.AlbumId, a.Title,...

bug

``` /* define schema employee, here employee can contain any number of attributes, but it has to at least contain integer attributes eid and age */ schema customer(id:int, name:text, city:text);...

Input example: ```cosette /* define schema employee, here employee can contain any number of attributes, but it has to at least contain integer attributes eid and age */ schema customer(id:int,...