complete query system & sample data base