follow this
1. Define 1st dataset
2. Map it in available values to create a drop down 1 with dataset 1.
3. create 2nd dataset with a sql input parameter.
4. in Dataset map map the sql input parameter with the first drop down output
5. Map it in available values to create a drop down 2.
hope this helps