Basic wine query implemented in query.php